~ubuntu-branches/debian/squeeze/openttd/squeeze

« back to all changes in this revision

Viewing changes to src/fileio_type.h

  • Committer: Bazaar Package Importer
  • Author(s): Jordi Mallach, Matthijs Kooijman, Jordi Mallach
  • Date: 2009-04-15 18:22:10 UTC
  • mfrom: (1.1.6 upstream) (2.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090415182210-22ktb8kdbp2tf3bm
[ Matthijs Kooijman ]
* New upstream release.
* Remove Debian specific desktop file, upstream provides one now. 
* Add debian/watch file.

[ Jordi Mallach ]
* Bump Standards-Version to 3.8.1, with no changes required.
* Move to debhelper compat 7. Bump Build-Depends accordingly.
* Use dh_prep.
* Add "set -e" to config script.
* Remove a few extra doc files that get installed by upstream Makefile.
* Add more complete copyright information.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $Id: fileio_type.h 15126 2009-01-17 16:53:32Z rubidium $ */
 
2
 
 
3
/** @file fileio_type.h Types for Standard In/Out file operations */
 
4
 
 
5
#ifndef FILEIO_TYPE_H
 
6
#define FILEIO_TYPE_H
 
7
 
 
8
#include "core/enum_type.hpp"
 
9
 
 
10
/**
 
11
 * The different kinds of subdirectories OpenTTD uses
 
12
 */
 
13
enum Subdirectory {
 
14
        BASE_DIR,      ///< Base directory for all subdirectories
 
15
        SAVE_DIR,      ///< Base directory for all savegames
 
16
        AUTOSAVE_DIR,  ///< Subdirectory of save for autosaves
 
17
        SCENARIO_DIR,  ///< Base directory for all scenarios
 
18
        HEIGHTMAP_DIR, ///< Subdirectory of scenario for heightmaps
 
19
        GM_DIR,        ///< Subdirectory for all music
 
20
        DATA_DIR,      ///< Subdirectory for all data (GRFs, sample.cat, intro game)
 
21
        LANG_DIR,      ///< Subdirectory for all translation files
 
22
        AI_DIR,        ///< Subdirectory for all AI files
 
23
        AI_LIBRARY_DIR,///< Subdirectory for all AI libraries
 
24
        NUM_SUBDIRS,   ///< Number of subdirectories
 
25
        NO_DIRECTORY,  ///< A path without any base directory
 
26
};
 
27
 
 
28
/**
 
29
 * Types of searchpaths OpenTTD might use
 
30
 */
 
31
enum Searchpath {
 
32
        SP_FIRST_DIR,
 
33
        SP_WORKING_DIR = SP_FIRST_DIR, ///< Search in the working directory
 
34
        SP_PERSONAL_DIR,               ///< Search in the personal directory
 
35
        SP_SHARED_DIR,                 ///< Search in the shared directory, like 'Shared Files' under Windows
 
36
        SP_BINARY_DIR,                 ///< Search in the directory where the binary resides
 
37
        SP_INSTALLATION_DIR,           ///< Search in the installation directory
 
38
        SP_APPLICATION_BUNDLE_DIR,     ///< Search within the application bundle
 
39
        SP_AUTODOWNLOAD_DIR,           ///< Search within the autodownload directory
 
40
        NUM_SEARCHPATHS
 
41
};
 
42
 
 
43
DECLARE_POSTFIX_INCREMENT(Searchpath);
 
44
 
 
45
#endif /* FILEIO_TYPE_H */