Use relative path in the cocos2dxLuaLoader for showing useless msg when lua script trigger errors

This commit is contained in:
samuele3hu 2014-07-17 23:53:36 +08:00
parent ea2165e6ba
commit b482a5e971
1 changed files with 0 additions and 2 deletions

View File

@ -77,7 +77,6 @@ extern "C"
pos = prefix.find("?.lua"); pos = prefix.find("?.lua");
chunkName = prefix.substr(0, pos) + filename + BYTECODE_FILE_EXT; chunkName = prefix.substr(0, pos) + filename + BYTECODE_FILE_EXT;
chunkName = utils->fullPathForFilename(chunkName.c_str());
if (utils->isFileExist(chunkName)) if (utils->isFileExist(chunkName))
{ {
chunk = utils->getFileData(chunkName.c_str(), "rb", &chunkSize); chunk = utils->getFileData(chunkName.c_str(), "rb", &chunkSize);
@ -86,7 +85,6 @@ extern "C"
else else
{ {
chunkName = prefix.substr(0, pos) + filename + NOT_BYTECODE_FILE_EXT; chunkName = prefix.substr(0, pos) + filename + NOT_BYTECODE_FILE_EXT;
chunkName = utils->fullPathForFilename(chunkName.c_str());
if (utils->isFileExist(chunkName)) if (utils->isFileExist(chunkName))
{ {
chunk = utils->getFileData(chunkName.c_str(), "rb", &chunkSize); chunk = utils->getFileData(chunkName.c_str(), "rb", &chunkSize);