Changeset - r10749:829a30ffaeca
[Not reviewed]
master
0 3 0
rubidium - 15 years ago 2009-01-14 15:20:06
rubidium@openttd.org
(svn r15082) -Codechange: make the AI library path also a searchdir instead of manually manufacturing it into a searchdir.
3 files changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/ai/ai_scanner.cpp
Show inline comments
 
@@ -133,7 +133,7 @@ void AIScanner::ScanAIDir()
 
	FOR_ALL_SEARCHPATHS(sp) {
 
		FioAppendDirectory(buf, MAX_PATH, sp, AI_DIR);
 
		if (FileExists(buf)) this->ScanDir(buf, false);
 
		ttd_strlcat(buf, "library" PATHSEP, MAX_PATH);
 
		FioAppendDirectory(buf, MAX_PATH, sp, AI_LIBRARY_DIR);
 
		if (FileExists(buf)) this->ScanDir(buf, true);
 
	}
 
}
src/fileio.cpp
Show inline comments
 
@@ -218,6 +218,7 @@ const char *_subdirs[NUM_SUBDIRS] = {
 
	"data" PATHSEP,
 
	"lang" PATHSEP,
 
	"ai" PATHSEP,
 
	"ai" PATHSEP "library" PATHSEP,
 
};
 

	
 
const char *_searchpaths[NUM_SEARCHPATHS];
src/fileio_type.h
Show inline comments
 
@@ -20,6 +20,7 @@ enum Subdirectory {
 
	DATA_DIR,      ///< Subdirectory for all data (GRFs, sample.cat, intro game)
 
	LANG_DIR,      ///< Subdirectory for all translation files
 
	AI_DIR,        ///< Subdirectory for all AI files
 
	AI_LIBRARY_DIR,///< Subdirectory for all AI libraries
 
	NUM_SUBDIRS,   ///< Number of subdirectories
 
	NO_DIRECTORY,  ///< A path without any base directory
 
};
0 comments (0 inline, 0 general)