(svn r23605) -Add: GAME_DIR and CONTENT_TYPE_GAME, and read gamescript from that directory

This commit is contained in:
truebrain
2011-12-19 20:54:37 +00:00
parent 12aa5b6a58
commit b4f832f29f
7 changed files with 19 additions and 4 deletions

View File

@@ -449,6 +449,8 @@ SQRESULT Squirrel::LoadFile(HSQUIRRELVM vm, const char *filename, SQBool printer
if (strncmp(this->GetAPIName(), "AI", 2) == 0) {
file = FioFOpenFile(filename, "rb", AI_DIR, &size);
if (file == NULL) file = FioFOpenFile(filename, "rb", AI_LIBRARY_DIR, &size);
} else if (strncmp(this->GetAPIName(), "GS", 2) == 0) {
file = FioFOpenFile(filename, "rb", GAME_DIR, &size);
} else {
NOT_REACHED();
}