2008-08-31 10:50:05 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
2009-08-21 20:21:05 +00:00
|
|
|
/*
|
|
|
|
* This file is part of OpenTTD.
|
|
|
|
* 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.
|
|
|
|
* 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.
|
|
|
|
* 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/>.
|
|
|
|
*/
|
|
|
|
|
2008-08-31 10:50:05 +00:00
|
|
|
/** @file fileio_type.h Types for Standard In/Out file operations */
|
|
|
|
|
|
|
|
#ifndef FILEIO_TYPE_H
|
|
|
|
#define FILEIO_TYPE_H
|
|
|
|
|
|
|
|
#include "core/enum_type.hpp"
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The different kinds of subdirectories OpenTTD uses
|
|
|
|
*/
|
|
|
|
enum Subdirectory {
|
|
|
|
BASE_DIR, ///< Base directory for all subdirectories
|
|
|
|
SAVE_DIR, ///< Base directory for all savegames
|
|
|
|
AUTOSAVE_DIR, ///< Subdirectory of save for autosaves
|
|
|
|
SCENARIO_DIR, ///< Base directory for all scenarios
|
|
|
|
HEIGHTMAP_DIR, ///< Subdirectory of scenario for heightmaps
|
|
|
|
GM_DIR, ///< Subdirectory for all music
|
|
|
|
DATA_DIR, ///< Subdirectory for all data (GRFs, sample.cat, intro game)
|
|
|
|
LANG_DIR, ///< Subdirectory for all translation files
|
2009-01-12 17:11:45 +00:00
|
|
|
AI_DIR, ///< Subdirectory for all AI files
|
2009-01-14 15:20:06 +00:00
|
|
|
AI_LIBRARY_DIR,///< Subdirectory for all AI libraries
|
2008-08-31 10:50:05 +00:00
|
|
|
NUM_SUBDIRS, ///< Number of subdirectories
|
|
|
|
NO_DIRECTORY, ///< A path without any base directory
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Types of searchpaths OpenTTD might use
|
|
|
|
*/
|
|
|
|
enum Searchpath {
|
|
|
|
SP_FIRST_DIR,
|
|
|
|
SP_WORKING_DIR = SP_FIRST_DIR, ///< Search in the working directory
|
|
|
|
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
|
|
|
|
SP_INSTALLATION_DIR, ///< Search in the installation directory
|
|
|
|
SP_APPLICATION_BUNDLE_DIR, ///< Search within the application bundle
|
2009-01-17 16:53:32 +00:00
|
|
|
SP_AUTODOWNLOAD_DIR, ///< Search within the autodownload directory
|
2008-08-31 10:50:05 +00:00
|
|
|
NUM_SEARCHPATHS
|
|
|
|
};
|
|
|
|
|
2010-03-23 22:25:43 +00:00
|
|
|
DECLARE_POSTFIX_INCREMENT(Searchpath)
|
2008-08-31 10:50:05 +00:00
|
|
|
|
|
|
|
#endif /* FILEIO_TYPE_H */
|