mirror of https://github.com/axmolengine/axmol.git
fixed no json file bug
This commit is contained in:
parent
4b691cf7e9
commit
c016f80f58
|
@ -410,8 +410,11 @@ void readResFile()
|
|||
filecfg.append("/");
|
||||
filecfg.append("fileinfo_debug.json");
|
||||
FILE * pFile = fopen (filecfg.c_str() , "r");
|
||||
rapidjson::FileStream inputStream(pFile);
|
||||
g_filecfgjson.ParseStream<0>(inputStream);
|
||||
if(pFile)
|
||||
{
|
||||
rapidjson::FileStream inputStream(pFile);
|
||||
g_filecfgjson.ParseStream<0>(inputStream);
|
||||
}
|
||||
fclose(pFile);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue