mirror of https://github.com/axmolengine/axmol.git
update runtime
This commit is contained in:
parent
c016f80f58
commit
0d65057116
|
@ -376,10 +376,6 @@ bool CreateDir(const char *sPathName)
|
||||||
void updateResFileInfo(string filename,string filetime)
|
void updateResFileInfo(string filename,string filetime)
|
||||||
{
|
{
|
||||||
|
|
||||||
if(!g_filecfgjson.IsObject())
|
|
||||||
{
|
|
||||||
g_filecfgjson.SetObject();
|
|
||||||
}
|
|
||||||
if (g_filecfgjson.HasMember(filename.c_str())) {
|
if (g_filecfgjson.HasMember(filename.c_str())) {
|
||||||
g_filecfgjson.RemoveMember(filename.c_str());
|
g_filecfgjson.RemoveMember(filename.c_str());
|
||||||
}
|
}
|
||||||
|
@ -414,8 +410,12 @@ void readResFile()
|
||||||
{
|
{
|
||||||
rapidjson::FileStream inputStream(pFile);
|
rapidjson::FileStream inputStream(pFile);
|
||||||
g_filecfgjson.ParseStream<0>(inputStream);
|
g_filecfgjson.ParseStream<0>(inputStream);
|
||||||
|
fclose(pFile);
|
||||||
|
}
|
||||||
|
if(!g_filecfgjson.IsObject())
|
||||||
|
{
|
||||||
|
g_filecfgjson.SetObject();
|
||||||
}
|
}
|
||||||
fclose(pFile);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool FileServer::recv_file(int fd)
|
bool FileServer::recv_file(int fd)
|
||||||
|
|
Loading…
Reference in New Issue