mirror of https://github.com/OpenTTD/OpenTTD
Cleanup: Adjust comments for the Subdirectory enum
parent
ee7df74fa1
commit
4c8c67b8b5
|
@ -38,23 +38,24 @@ extern std::string _config_file;
|
||||||
extern std::string _highscore_file;
|
extern std::string _highscore_file;
|
||||||
|
|
||||||
static const char * const _subdirs[] = {
|
static const char * const _subdirs[] = {
|
||||||
"",
|
"", ///< BASE_DIR
|
||||||
"save" PATHSEP,
|
"save" PATHSEP, ///< SAVE_DIR
|
||||||
"save" PATHSEP "autosave" PATHSEP,
|
"save" PATHSEP "autosave" PATHSEP, ///< AUTOSAVE_DIR
|
||||||
"scenario" PATHSEP,
|
"scenario" PATHSEP, ///< SCENARIO_DIR
|
||||||
"scenario" PATHSEP "heightmap" PATHSEP,
|
"scenario" PATHSEP "heightmap" PATHSEP, ///< HEIGHTMAP_DIR
|
||||||
"gm" PATHSEP,
|
"gm" PATHSEP, ///< OLD_GM_DIR
|
||||||
"data" PATHSEP,
|
"data" PATHSEP, ///< OLD_DATA_DIR
|
||||||
"baseset" PATHSEP,
|
"baseset" PATHSEP, ///< BASESET_DIR
|
||||||
"newgrf" PATHSEP,
|
"newgrf" PATHSEP, ///< NEWGRF_DIR
|
||||||
"lang" PATHSEP,
|
"lang" PATHSEP, ///< LANG_DIR
|
||||||
"ai" PATHSEP,
|
"ai" PATHSEP, ///< AI_DIR
|
||||||
"ai" PATHSEP "library" PATHSEP,
|
"ai" PATHSEP "library" PATHSEP, ///< AI_LIBRARY_DIR
|
||||||
"game" PATHSEP,
|
"game" PATHSEP, ///< GAME_DIR
|
||||||
"game" PATHSEP "library" PATHSEP,
|
"game" PATHSEP "library" PATHSEP, ///< GAME_LIBRARY_DIR
|
||||||
"screenshot" PATHSEP,
|
"screenshot" PATHSEP, ///< SCREENSHOT_DIR
|
||||||
"social_integration" PATHSEP,
|
"social_integration" PATHSEP, ///< SOCIAL_INTEGRATION_DIR
|
||||||
};
|
};
|
||||||
|
// This should line up with the "Subdirectory" enum defined in fileio_type.h
|
||||||
static_assert(lengthof(_subdirs) == NUM_SUBDIRS);
|
static_assert(lengthof(_subdirs) == NUM_SUBDIRS);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -120,7 +120,7 @@ enum Subdirectory {
|
||||||
NEWGRF_DIR, ///< Subdirectory for all NewGRFs
|
NEWGRF_DIR, ///< Subdirectory for all NewGRFs
|
||||||
LANG_DIR, ///< Subdirectory for all translation files
|
LANG_DIR, ///< Subdirectory for all translation files
|
||||||
AI_DIR, ///< Subdirectory for all %AI files
|
AI_DIR, ///< Subdirectory for all %AI files
|
||||||
AI_LIBRARY_DIR,///< Subdirectory for all %AI libraries
|
AI_LIBRARY_DIR, ///< Subdirectory for all %AI libraries
|
||||||
GAME_DIR, ///< Subdirectory for all game scripts
|
GAME_DIR, ///< Subdirectory for all game scripts
|
||||||
GAME_LIBRARY_DIR, ///< Subdirectory for all GS libraries
|
GAME_LIBRARY_DIR, ///< Subdirectory for all GS libraries
|
||||||
SCREENSHOT_DIR, ///< Subdirectory for all screenshots
|
SCREENSHOT_DIR, ///< Subdirectory for all screenshots
|
||||||
|
|
Loading…
Reference in New Issue