23 #include "OptionInfo.h" 30 enum ScrollType { SCROLL_NONE, SCROLL_TRIGGER, SCROLL_AUTO };
32 enum KeyboardType { KEYBOARD_OFF, KEYBOARD_ON, KEYBOARD_VIRTUAL };
34 enum SaveSort { SORT_NAME_ASC, SORT_NAME_DESC, SORT_DATE_ASC, SORT_DATE_DESC };
36 enum MusicFormat { MUSIC_AUTO, MUSIC_FLAC, MUSIC_OGG, MUSIC_MP3, MUSIC_MOD, MUSIC_WAV, MUSIC_ADLIB, MUSIC_MIDI };
38 enum SoundFormat { SOUND_AUTO, SOUND_14, SOUND_10 };
40 enum VideoFormat { VIDEO_FMV, VIDEO_SLIDE };
65 #include "Options.inc.h" 73 bool init(
int argc,
char *argv[]);
75 void load(
const std::string &filename =
"options");
77 void save(
const std::string &filename =
"options");
107 const std::map<std::string, ModInfo> &
getModInfos();
void userSplitMasters()
Splits the game's User folder by master mod, creating a subfolder for each one and moving the appprop...
Definition: Options.cpp:809
void updateOptions()
Updates the game's options with those in the configuration file, if it exists yet, and any supplied on the command line.
Definition: Options.cpp:867
void updateMods()
Refreshes the mods and filemaps.
Definition: Options.cpp:541
void switchDisplay()
Switches old/new display options for temporarily testing a new display setup.
Definition: Options.cpp:1119
void mapResources()
Maps resources in active mods to the virtual file system.
Definition: Options.cpp:719
std::string getActiveMaster()
returns the id of the active master mod
Definition: Options.cpp:650
const std::vector< std::string > & getDataList()
Returns the game's list of possible Data folders.
Definition: Options.cpp:1047
void setDataFolder(const std::string &folder)
Changes the game's current Data folder where resources and X-Com files are loaded from...
Definition: Options.cpp:1038
void create()
Sets up the options by creating their OptionInfo metadata.
Definition: Options.cpp:59
std::string getUserFolder()
Returns the game's User folder where saves are stored in.
Definition: Options.cpp:1057
bool init(int argc, char *argv[])
Handles the initialization of setting up default options and finding and loading any existing ones...
Definition: Options.cpp:504
std::string getConfigFolder()
Returns the game's Config folder where settings are stored in.
Definition: Options.cpp:1068
const std::map< std::string, ModInfo > & getModInfos()
Gets the map of mod ids to mod infos.
Definition: Options.cpp:439
std::string getDataFolder()
Returns the game's current Data folder where resources and X-Com files are loaded from...
Definition: Options.cpp:1028
void save(const std::string &filename)
Saves options to a YAML file.
Definition: Options.cpp:984
void resetDefault()
Resets the options back to their defaults.
Definition: Options.cpp:333
const std::vector< OptionInfo > & getOptionInfo()
Returns the game's list of all available option information.
Definition: Options.cpp:1087
void setFolders()
Sets up the game's Data folder where the data files are loaded from and the User folder and Config fo...
Definition: Options.cpp:753
void load(const std::string &filename)
Loads options from a YAML file.
Definition: Options.cpp:900
Definition: BaseInfoState.cpp:40
std::string getMasterUserFolder()
Returns the game's User folder for the currently loaded master mod.
Definition: Options.cpp:1078
void backupDisplay()
Saves display settings temporarily to be able to revert to old ones.
Definition: Options.cpp:1096