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_GM, 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 bool load(
const std::string &filename =
"options");
77 bool save(
const std::string &filename =
"options");
109 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:859
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:910
void updateMods()
Refreshes the mods and filemaps.
Definition: Options.cpp:553
std::vector< const ModInfo * > getActiveMods()
Returns a list of currently active mods.
Definition: Options.cpp:1152
void switchDisplay()
Switches old/new display options for temporarily testing a new display setup.
Definition: Options.cpp:1196
void mapResources()
Maps resources in active mods to the virtual file system.
Definition: Options.cpp:770
std::string getActiveMaster()
Gets the currently active master mod.
Definition: Options.cpp:672
const std::vector< std::string > & getDataList()
Returns the game's list of possible Data folders.
Definition: Options.cpp:1101
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:1092
void create()
Sets up the options by creating their OptionInfo metadata.
Definition: Options.cpp:60
std::string getUserFolder()
Returns the game's User folder where saves are stored in.
Definition: Options.cpp:1111
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:1122
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:1082
void updateReservedSpace()
Updates the reservedSpace for master mods if necessary.
Definition: Options.cpp:719
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:1141
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:803
bool save(const std::string &filename)
Saves options to a YAML file.
Definition: Options.cpp:1031
bool load(const std::string &filename)
Loads options from a YAML file.
Definition: Options.cpp:944
Definition: BaseInfoState.cpp:40
std::string getMasterUserFolder()
Returns the game's User folder for the currently loaded master mod.
Definition: Options.cpp:1132
void backupDisplay()
Saves display settings temporarily to be able to revert to old ones.
Definition: Options.cpp:1173