summaryrefslogtreecommitdiff
path: root/src/fileio.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-12-09 16:52:43 +0000
committerfrosch <frosch@openttd.org>2012-12-09 16:52:43 +0000
commitedd9c0553a7ff735000cc52c9b02fa33db767521 (patch)
tree76e8bfb70df3f1b2ff3789f2e2ebf022ba0f8290 /src/fileio.cpp
parent1c71fbe0f0a909b0fa865fcb1a83532c6ab871fd (diff)
downloadopenttd-edd9c0553a7ff735000cc52c9b02fa33db767521.tar.xz
(svn r24804) -Add: Separate subdirectory for screenshots.
Diffstat (limited to 'src/fileio.cpp')
-rw-r--r--src/fileio.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fileio.cpp b/src/fileio.cpp
index 7e4d21f01..924141a85 100644
--- a/src/fileio.cpp
+++ b/src/fileio.cpp
@@ -283,6 +283,7 @@ static const char * const _subdirs[] = {
"ai" PATHSEP "library" PATHSEP,
"game" PATHSEP,
"game" PATHSEP "library" PATHSEP,
+ "screenshot" PATHSEP,
};
assert_compile(lengthof(_subdirs) == NUM_SUBDIRS);
@@ -1202,7 +1203,7 @@ void DeterminePaths(const char *exe)
#endif
static const Subdirectory default_subdirs[] = {
- SAVE_DIR, AUTOSAVE_DIR, SCENARIO_DIR, HEIGHTMAP_DIR, BASESET_DIR, NEWGRF_DIR, AI_DIR, AI_LIBRARY_DIR, GAME_DIR, GAME_LIBRARY_DIR
+ SAVE_DIR, AUTOSAVE_DIR, SCENARIO_DIR, HEIGHTMAP_DIR, BASESET_DIR, NEWGRF_DIR, AI_DIR, AI_LIBRARY_DIR, GAME_DIR, GAME_LIBRARY_DIR, SCREENSHOT_DIR
};
for (uint i = 0; i < lengthof(default_subdirs); i++) {