diff options
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/squirrel.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/script/squirrel.cpp b/src/script/squirrel.cpp index 0465bd31c..bc02be5f4 100644 --- a/src/script/squirrel.cpp +++ b/src/script/squirrel.cpp @@ -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(); } |