|
AMFP Enhanced
C++ reference: the code this unofficial fork added
|
choose the main init config. More...
#include <string>Go to the source code of this file.
Functions | |
| const wchar_t * | LuxChooseInitConfig (bool(*afFileExists)(const wchar_t *)) |
| afFileExists is injected so tests need no file system. | |
| std::string | LuxStartMapFromCommandLine (const std::string &asLine) |
| Start map given as "-map \<file\>"; anything else (e.g. | |
| bool | LuxStartInOptionsFromCommandLine (const std::string &asLine) |
| AMFP-2026: "-options" anywhere on the command line (Steam appends its own arguments): open the title menu with Options showing, no logos. | |
Variables | |
| static const wchar_t *const | kLuxInitConfig2026 = L"amfp_enhanced/main_init.cfg" |
| static const wchar_t *const | kLuxInitConfigStock = L"config/main_init.cfg" |
choose the main init config.
The Enhanced exe prefers amfp_enhanced/main_init.cfg, which points at our own game.cfg, resources.cfg (with /amfp_enhanced/override first) and lang folder, so the Steam install's files are never edited. Unit tested in tests/cpp/test_init_config_path.cpp.
Definition in file LuxInitConfigPath.h.
|
inline |
afFileExists is injected so tests need no file system.
Definition at line 15 of file LuxInitConfigPath.h.
|
inline |
Start map given as "-map \<file\>"; anything else (e.g.
the launcher path Steam passes with "%command%") is not a map. Stock took any command line minus 5 characters as a map.
Definition at line 25 of file LuxInitConfigPath.h.
|
inline |
AMFP-2026: "-options" anywhere on the command line (Steam appends its own arguments): open the title menu with Options showing, no logos.
Steam's "Run Settings Launcher" on macOS starts the game this way (tools/macos/steam_starter.c), standing in for the old 32-bit settings launcher.
Definition at line 38 of file LuxInitConfigPath.h.
|
static |
Definition at line 9 of file LuxInitConfigPath.h.
|
static |
Definition at line 10 of file LuxInitConfigPath.h.