1
0
Fork 0

Cleanup: Adjust comments for the Subdirectory enum

pull/12611/head
Sadie del Solar 2024-05-01 13:51:30 -07:00
parent ee7df74fa1
commit 4c8c67b8b5
2 changed files with 43 additions and 42 deletions

View File

@ -38,23 +38,24 @@ extern std::string _config_file;
extern std::string _highscore_file;
static const char * const _subdirs[] = {
"",
"save" PATHSEP,
"save" PATHSEP "autosave" PATHSEP,
"scenario" PATHSEP,
"scenario" PATHSEP "heightmap" PATHSEP,
"gm" PATHSEP,
"data" PATHSEP,
"baseset" PATHSEP,
"newgrf" PATHSEP,
"lang" PATHSEP,
"ai" PATHSEP,
"ai" PATHSEP "library" PATHSEP,
"game" PATHSEP,
"game" PATHSEP "library" PATHSEP,
"screenshot" PATHSEP,
"social_integration" PATHSEP,
"", ///< BASE_DIR
"save" PATHSEP, ///< SAVE_DIR
"save" PATHSEP "autosave" PATHSEP, ///< AUTOSAVE_DIR
"scenario" PATHSEP, ///< SCENARIO_DIR
"scenario" PATHSEP "heightmap" PATHSEP, ///< HEIGHTMAP_DIR
"gm" PATHSEP, ///< OLD_GM_DIR
"data" PATHSEP, ///< OLD_DATA_DIR
"baseset" PATHSEP, ///< BASESET_DIR
"newgrf" PATHSEP, ///< NEWGRF_DIR
"lang" PATHSEP, ///< LANG_DIR
"ai" PATHSEP, ///< AI_DIR
"ai" PATHSEP "library" PATHSEP, ///< AI_LIBRARY_DIR
"game" PATHSEP, ///< GAME_DIR
"game" PATHSEP "library" PATHSEP, ///< GAME_LIBRARY_DIR
"screenshot" PATHSEP, ///< SCREENSHOT_DIR
"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);
/**

View File

@ -120,7 +120,7 @@ enum Subdirectory {
NEWGRF_DIR, ///< Subdirectory for all NewGRFs
LANG_DIR, ///< Subdirectory for all translation 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_LIBRARY_DIR, ///< Subdirectory for all GS libraries
SCREENSHOT_DIR, ///< Subdirectory for all screenshots