diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ai/ai_scanner.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ai/ai_scanner.cpp b/src/ai/ai_scanner.cpp index be0dfa59d..0d4feb34d 100644 --- a/src/ai/ai_scanner.cpp +++ b/src/ai/ai_scanner.cpp @@ -89,6 +89,11 @@ void AIScanner::ScanDir(const char *dirname, bool library_scan, bool library_rec ttd_strlcat(main_script, "main.nut", sizeof(main_script)); if (!FioCheckFileExists(info_script, AI_DIR) || !FioCheckFileExists(main_script, AI_DIR)) continue; +#ifdef WIN32 + /* Windows doesn't care about the case */ + strtolower(main_script); +#endif + DEBUG(ai, 6, "Loading AI at location '%s'", main_script); this->engine->LoadScript(info_script); } else { @@ -101,6 +106,11 @@ void AIScanner::ScanDir(const char *dirname, bool library_scan, bool library_rec ttd_strlcat(main_script, "main.nut", sizeof(main_script)); if (!FioCheckFileExists(library_script, AI_LIBRARY_DIR) || !FioCheckFileExists(main_script, AI_LIBRARY_DIR)) continue; +#ifdef WIN32 + /* Windows doesn't care about the case */ + strtolower(main_script); +#endif + DEBUG(ai, 6, "Loading AI Library at location '%s'", main_script); this->engine->LoadScript(library_script); } |