Changeset - r22429:35339f6d50a5
[Not reviewed]
master
0 3 0
alberth - 8 years ago 2016-09-04 12:46:07
alberth@openttd.org
(svn r27636) -Codechange: Rename FileType to AbstractFileType.
3 files changed with 13 insertions and 13 deletions:
0 comments (0 inline, 0 general)
src/fileio_type.h
Show inline comments
 
@@ -14,6 +14,14 @@
 

	
 
#include "core/enum_type.hpp"
 

	
 
/** The different abstract types of files that the system knows about. */
 
enum AbstractFileType {
 
	FT_NONE,      ///< nothing to do
 
	FT_SAVEGAME,  ///< old or new savegame
 
	FT_SCENARIO,  ///< old or new scenario
 
	FT_HEIGHTMAP, ///< heightmap file
 
};
 

	
 
/**
 
 * The different kinds of subdirectories OpenTTD uses
 
 */
src/fios_gui.cpp
Show inline comments
 
@@ -738,7 +738,7 @@ static WindowDesc _save_dialog_desc(
 
 * These values are used to convert the file/operations mode into a corresponding file type.
 
 * So each entry, as expressed by the related comment, is based on the enum
 
 */
 
static const FileType _file_modetotype[] = {
 
static const AbstractFileType _file_modetotype[] = {
 
	FT_SAVEGAME,  // used for SLD_LOAD_GAME
 
	FT_SCENARIO,  // used for SLD_LOAD_SCENARIO
 
	FT_SAVEGAME,  // used for SLD_SAVE_GAME
src/saveload/saveload.h
Show inline comments
 
@@ -33,20 +33,12 @@ enum SaveOrLoadMode {
 
	SL_LOAD_CHECK =  5, ///< Load for game preview.
 
};
 

	
 
/** The different types of files that the system knows about. */
 
enum FileType {
 
	FT_NONE,      ///< nothing to do
 
	FT_SAVEGAME,  ///< old or new savegame
 
	FT_SCENARIO,  ///< old or new scenario
 
	FT_HEIGHTMAP, ///< heightmap file
 
};
 

	
 
/** Deals with the type of the savegame, independent of extension */
 
struct FileToSaveLoad {
 
	SaveOrLoadMode mode;  ///< savegame/scenario type (old, new)
 
	FileType filetype;    ///< what type of file are we dealing with
 
	char name[MAX_PATH];  ///< name
 
	char title[255];      ///< internal name of the game
 
	SaveOrLoadMode mode;       ///< savegame/scenario type (old, new)
 
	AbstractFileType filetype; ///< what type of file are we dealing with
 
	char name[MAX_PATH];       ///< name
 
	char title[255];           ///< internal name of the game
 
};
 

	
 
/** Types of save games. */
0 comments (0 inline, 0 general)