|
AMFP Enhanced
C++ reference: the code this unofficial fork added
|
self-setup on first start. More...
#include <cctype>#include <string>Go to the source code of this file.
Functions | |
| bool | LuxSetupSetCfgValue (std::string &asText, const std::string &asKey, const std::string &asValue) |
| Replaces the quoted value of Key = "..." (any spacing); false if the key is missing. | |
| bool | LuxSetupMainInit (std::string &asText) |
| main_init.cfg for the fork: our resources, game.cfg, key / settings defaults and language folders. | |
| bool | LuxSetupSetBinding (std::string &asText, const std::string &asAction, const std::string &asSecondary) |
| The Secondary binding of <Action Primary="..." Secondary="..." />; false if the action is missing. | |
| bool | LuxSetupUserKeys (std::string &asText) |
| Latest hint on D-pad right, last note on D-pad left (stock: hint on L3, note unbound). | |
| void | LuxSetupSetAttr (std::string &asText, const std::string &asElement, const std::string &asAttr, const std::string &asValue) |
| Sets attr="value" on the first <Element ...> tag, adding the attribute (or the element). | |
| void | LuxSetupMainSettings (std::string &asText) |
| default_main_settings: the graphics defaults of the Modern preset. | |
| void | LuxSetupUserSettings (std::string &asText) |
| default_user_settings: the Modern preset for new profiles (LuxPresets.h). | |
| bool | LuxSetupResources (std::string &asText) |
| resources.cfg: our override folder first, so our files win bare-name lookups. | |
Variables | |
| static const char *const | kLuxSetupDir = "amfp_enhanced" |
self-setup on first start.
A player unzips AMFP Enhanced into the game folder (no installer); on the first start the game writes its amfp_enhanced/ config from the install's own stock files, the same files tools/install_enhanced.py writes: main_init.cfg (pointing at our files), game.cfg (a copy), resources.cfg (our override folder first), default_user_keys_sdl2.cfg (hint / note on the D-pad), default_main_settings_sdl2.cfg (graphics defaults), default_user_settings.cfg (Modern preset), and copies of the stock language files next to ours. Stock files are only read, never changed. The text changes here are pure, unit tested in tests/cpp/test_self_setup.cpp.
Definition in file LuxSelfSetup.h.
|
inline |
Replaces the quoted value of Key = "..." (any spacing); false if the key is missing.
Definition at line 20 of file LuxSelfSetup.h.
|
inline |
main_init.cfg for the fork: our resources, game.cfg, key / settings defaults and language folders.
Definition at line 46 of file LuxSelfSetup.h.
|
inline |
The Secondary binding of <Action Primary="..." Secondary="..." />; false if the action is missing.
Definition at line 62 of file LuxSelfSetup.h.
|
inline |
Latest hint on D-pad right, last note on D-pad left (stock: hint on L3, note unbound).
Definition at line 77 of file LuxSelfSetup.h.
|
inline |
Sets attr="value" on the first <Element ...> tag, adding the attribute (or the element).
Definition at line 84 of file LuxSelfSetup.h.
|
inline |
default_main_settings: the graphics defaults of the Modern preset.
Definition at line 113 of file LuxSelfSetup.h.
|
inline |
default_user_settings: the Modern preset for new profiles (LuxPresets.h).
Definition at line 122 of file LuxSelfSetup.h.
|
inline |
resources.cfg: our override folder first, so our files win bare-name lookups.
Definition at line 131 of file LuxSelfSetup.h.
|
static |
Definition at line 17 of file LuxSelfSetup.h.