summaryrefslogtreecommitdiff
path: root/src/fileio_type.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-11-13 19:32:37 +0000
committerrubidium <rubidium@openttd.org>2013-11-13 19:32:37 +0000
commitee137a5cedd8440441057d80b42eab4f30217bd8 (patch)
tree6beb34177de1f52ee70a89173e8ea506ba18c837 /src/fileio_type.h
parentdef597fe315dd6d778f27deb0961b9c54121e96b (diff)
downloadopenttd-ee137a5cedd8440441057d80b42eab4f30217bd8.tar.xz
(svn r25975) -Feature [FS#5385]: XDG base directory support
Diffstat (limited to 'src/fileio_type.h')
-rw-r--r--src/fileio_type.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fileio_type.h b/src/fileio_type.h
index 3f21be6dd..87cb2d1a8 100644
--- a/src/fileio_type.h
+++ b/src/fileio_type.h
@@ -43,6 +43,9 @@ enum Subdirectory {
enum Searchpath {
SP_FIRST_DIR,
SP_WORKING_DIR = SP_FIRST_DIR, ///< Search in the working directory
+#if defined(WITH_XDG_BASEDIR) && defined(WITH_PERSONAL_DIR)
+ SP_PERSONAL_DIR_XDG, ///< Search in the personal directory from the XDG specification
+#endif
SP_PERSONAL_DIR, ///< Search in the personal directory
SP_SHARED_DIR, ///< Search in the shared directory, like 'Shared Files' under Windows
SP_BINARY_DIR, ///< Search in the directory where the binary resides