OpenTTD: src/fileio_type.h Source File

OpenTTD

- Main Page
- Related Pages
- Modules
- Namespaces
- Data Structures
- Files

- File List
- Globals

fileio_type.h
Go to the documentation of this file.
1 /* $Id: fileio_type.h 25975 2013-11-13 19:32:37Z rubidium $ */
2
3 /*
4 * This file is part of OpenTTD.
5 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
6 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
7 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
8 */
9
12 #ifndef FILEIO_TYPE_H
13 #define FILEIO_TYPE_H
14
15 #include "core/enum_type.hpp"
16
20 enum Subdirectory {
21 BASE_DIR,
22 SAVE_DIR,
23 AUTOSAVE_DIR,
24 SCENARIO_DIR,
25 HEIGHTMAP_DIR,
26 OLD_GM_DIR,
27 OLD_DATA_DIR,
28 BASESET_DIR,
29 NEWGRF_DIR,
30 LANG_DIR,
31 AI_DIR,
32 AI_LIBRARY_DIR,
33 GAME_DIR,
34 GAME_LIBRARY_DIR,
35 SCREENSHOT_DIR,
36 NUM_SUBDIRS,
37 NO_DIRECTORY,
38 };
39
43 enum Searchpath {
44 SP_FIRST_DIR,
45 SP_WORKING_DIR = SP_FIRST_DIR,
46 #if defined(WITH_XDG_BASEDIR) && defined(WITH_PERSONAL_DIR)
47 SP_PERSONAL_DIR_XDG,
48 #endif
49 SP_PERSONAL_DIR,
50 SP_SHARED_DIR,
51 SP_BINARY_DIR,
52 SP_INSTALLATION_DIR,
53 SP_APPLICATION_BUNDLE_DIR,
54 SP_AUTODOWNLOAD_DIR,
55 NUM_SEARCHPATHS
56 };
57
58 DECLARE_POSTFIX_INCREMENT(Searchpath)
59
60 #endif /* FILEIO_TYPE_H */