fileio_type.h

Go to the documentation of this file.
00001 /* $Id: fileio_type.h 25975 2013-11-13 19:32:37Z rubidium $ */
00002 
00003 /*
00004  * This file is part of OpenTTD.
00005  * 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.
00006  * 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.
00007  * 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/>.
00008  */
00009 
00012 #ifndef FILEIO_TYPE_H
00013 #define FILEIO_TYPE_H
00014 
00015 #include "core/enum_type.hpp"
00016 
00020 enum Subdirectory {
00021   BASE_DIR,      
00022   SAVE_DIR,      
00023   AUTOSAVE_DIR,  
00024   SCENARIO_DIR,  
00025   HEIGHTMAP_DIR, 
00026   OLD_GM_DIR,    
00027   OLD_DATA_DIR,  
00028   BASESET_DIR,   
00029   NEWGRF_DIR,    
00030   LANG_DIR,      
00031   AI_DIR,        
00032   AI_LIBRARY_DIR,
00033   GAME_DIR,      
00034   GAME_LIBRARY_DIR, 
00035   SCREENSHOT_DIR,   
00036   NUM_SUBDIRS,   
00037   NO_DIRECTORY,  
00038 };
00039 
00043 enum Searchpath {
00044   SP_FIRST_DIR,
00045   SP_WORKING_DIR = SP_FIRST_DIR, 
00046 #if defined(WITH_XDG_BASEDIR) && defined(WITH_PERSONAL_DIR)
00047   SP_PERSONAL_DIR_XDG,           
00048 #endif
00049   SP_PERSONAL_DIR,               
00050   SP_SHARED_DIR,                 
00051   SP_BINARY_DIR,                 
00052   SP_INSTALLATION_DIR,           
00053   SP_APPLICATION_BUNDLE_DIR,     
00054   SP_AUTODOWNLOAD_DIR,           
00055   NUM_SEARCHPATHS
00056 };
00057 
00058 DECLARE_POSTFIX_INCREMENT(Searchpath)
00059 
00060 #endif /* FILEIO_TYPE_H */