# fileio_type.h

Go to the documentation of this file.

    00001 /* $Id$ */
    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   NUM_SUBDIRS,
    00036   NO_DIRECTORY,
    00037 };
    00038
    00042 enum Searchpath {
    00043   SP_FIRST_DIR,
    00044   SP_WORKING_DIR = SP_FIRST_DIR,
    00045   SP_PERSONAL_DIR,
    00046   SP_SHARED_DIR,
    00047   SP_BINARY_DIR,
    00048   SP_INSTALLATION_DIR,
    00049   SP_APPLICATION_BUNDLE_DIR,
    00050   SP_AUTODOWNLOAD_DIR,
    00051   NUM_SEARCHPATHS
    00052 };
    00053
    00054 DECLARE_POSTFIX_INCREMENT(Searchpath)
    00055
    00056 #endif /* FILEIO_TYPE_H */