OpenTTD Source 20250428-master-ga5578166bb
|
Types for Standard In/Out file operations. More...
#include "core/enum_type.hpp"
Go to the source code of this file.
Data Structures | |
struct | FiosType |
Elements of a file system that are recognized. More... | |
class | FileHandle |
struct | FileHandle::FileDeleter |
Helper to close a FILE * with a std::unique_ptr . More... | |
Variables | |
constexpr FiosType | FIOS_TYPE_DRIVE {FT_NONE, DFT_FIOS_DRIVE} |
constexpr FiosType | FIOS_TYPE_PARENT {FT_NONE, DFT_FIOS_PARENT} |
constexpr FiosType | FIOS_TYPE_DIR {FT_NONE, DFT_FIOS_DIR} |
constexpr FiosType | FIOS_TYPE_DIRECT {FT_NONE, DFT_FIOS_DIRECT} |
constexpr FiosType | FIOS_TYPE_FILE {FT_SAVEGAME, DFT_GAME_FILE} |
constexpr FiosType | FIOS_TYPE_OLDFILE {FT_SAVEGAME, DFT_OLD_GAME_FILE} |
constexpr FiosType | FIOS_TYPE_SCENARIO {FT_SCENARIO, DFT_GAME_FILE} |
constexpr FiosType | FIOS_TYPE_OLD_SCENARIO {FT_SCENARIO, DFT_OLD_GAME_FILE} |
constexpr FiosType | FIOS_TYPE_PNG {FT_HEIGHTMAP, DFT_HEIGHTMAP_PNG} |
constexpr FiosType | FIOS_TYPE_BMP {FT_HEIGHTMAP, DFT_HEIGHTMAP_BMP} |
constexpr FiosType | FIOS_TYPE_JSON {FT_TOWN_DATA, DFT_TOWN_DATA_JSON} |
constexpr FiosType | FIOS_TYPE_INVALID {FT_INVALID, DFT_INVALID} |
Types for Standard In/Out file operations.
Definition in file fileio_type.h.
enum AbstractFileType : uint8_t |
The different abstract types of files that the system knows about.
Enumerator | |
---|---|
FT_NONE | nothing to do |
FT_SAVEGAME | old or new savegame |
FT_SCENARIO | old or new scenario |
FT_HEIGHTMAP | heightmap file |
FT_TOWN_DATA | town data file |
FT_INVALID | Invalid or unknown file type. |
Definition at line 16 of file fileio_type.h.
enum DetailedFileType : uint8_t |
Kinds of files in each AbstractFileType.
Enumerator | |
---|---|
DFT_OLD_GAME_FILE | Old save game or scenario file. |
DFT_GAME_FILE | Save game or scenario file. |
DFT_HEIGHTMAP_BMP | BMP file. |
DFT_HEIGHTMAP_PNG | PNG file. |
DFT_TOWN_DATA_JSON | JSON file. |
DFT_FIOS_DRIVE | A drive (letter) entry. |
DFT_FIOS_PARENT | A parent directory entry. |
DFT_FIOS_DIR | A directory entry. |
DFT_FIOS_DIRECT | Direct filename. |
DFT_END | End of this enum. Supports a compile time size check against _fios_colours in fios_gui.cpp. |
DFT_INVALID | Unknown or invalid file. |
Definition at line 27 of file fileio_type.h.
enum SaveLoadOperation : uint8_t |
Operation performed on the file.
Enumerator | |
---|---|
SLO_CHECK | Load file for checking and/or preview. |
SLO_LOAD | File is being loaded. |
SLO_SAVE | File is being saved. |
SLO_INVALID | Unknown file operation. |
Definition at line 51 of file fileio_type.h.
enum Searchpath : uint8_t |
Types of searchpaths OpenTTD might use.
Definition at line 112 of file fileio_type.h.
enum Subdirectory : uint8_t |
The different kinds of subdirectories OpenTTD uses.
Definition at line 87 of file fileio_type.h.
|
constexpr |
Definition at line 79 of file fileio_type.h.
|
constexpr |
Definition at line 71 of file fileio_type.h.
|
constexpr |
Definition at line 72 of file fileio_type.h.
|
constexpr |
Definition at line 69 of file fileio_type.h.
|
constexpr |
Definition at line 74 of file fileio_type.h.
|
constexpr |
Definition at line 82 of file fileio_type.h.
|
constexpr |
Definition at line 80 of file fileio_type.h.
|
constexpr |
Definition at line 77 of file fileio_type.h.
|
constexpr |
Definition at line 75 of file fileio_type.h.
|
constexpr |
Definition at line 70 of file fileio_type.h.
|
constexpr |
Definition at line 78 of file fileio_type.h.
|
constexpr |
Definition at line 76 of file fileio_type.h.