loslib.c中
lua_pushinteger(L, system(luaL_optstring(L, 1, NULL)));
报错
改:
FILE *fp = popen(luaL_optstring(L, 1, NULL),"r");
int ret = 0;
if (fp == NULL) {
ret = -1;
}
lua_pushinteger(L, 0);
if (!fp) {
pclose(fp);
}
在AssetsManager.cpp中
// system(command.c_str());
改
FILE *fp = popen(command.c_str(), "r");
if(fp != NULL)
{
pclose(fp);
}
bitcode 改为NO
网友评论