This commit is contained in:
aozhiwei 2021-03-26 17:44:14 +08:00
parent a13f4d0147
commit 6e0392cb3c

View File

@ -1,5 +1,8 @@
#include "precompile.h" #include "precompile.h"
#include <unistd.h>
#include <fcntl.h>
#include <a8/stringlist.h> #include <a8/stringlist.h>
#include <a8/csvreader.h> #include <a8/csvreader.h>
@ -464,7 +467,10 @@ private:
} else { } else {
itr->second.clear(); itr->second.clear();
} }
f8::ReadJsonMetaFile(res_path + meta.map_pic() + ".layers.json", itr->second); std::string filename = res_path + "map" + meta.map_pic() + ".layers.json";
if (access("test.c", F_OK) != -1) {
f8::ReadJsonMetaFile(filename, itr->second);
}
} }
} }
} }