|
AMFP Enhanced
C++ reference: the code this unofficial fork added
|
the game folder the Windows exe works from. More...
#include <string>Go to the source code of this file.
Functions | |
| template<class tStr> | |
| tStr | LuxParentDir (const tStr &asPath) |
| The folder of a file path ("C:/a/b/c.exe" -> "C:/a/b"); either slash; "" if none. | |
| template<class tStr> | |
| bool | LuxDirNameIs (const tStr &asDir, const char *asName) |
| Last path component, compared case-insensitively against an ASCII name. | |
| template<class tStr> | |
| tStr | LuxGameRootFromExe (const tStr &asExePath) |
| Game folder for an exe at <game>/amfp_enhanced/bin/<exe>; "" when the exe is elsewhere. | |
the game folder the Windows exe works from.
The 64-bit exe and its DLLs live in <game>/amfp_enhanced/bin, apart from the original game's 32-bit DLLs of the same names. The root launcher (aamfp_enhanced.exe, Steam, shortcuts) starts it with the game folder as working directory; when it is started from bin directly, it switches there itself. Pure (paths as strings), unit tested in tests/cpp/test_game_root.cpp.
Definition in file LuxGameRoot.h.
|
inline |
The folder of a file path ("C:/a/b/c.exe" -> "C:/a/b"); either slash; "" if none.
Definition at line 15 of file LuxGameRoot.h.
|
inline |
Last path component, compared case-insensitively against an ASCII name.
Definition at line 25 of file LuxGameRoot.h.
|
inline |
Game folder for an exe at <game>/amfp_enhanced/bin/<exe>; "" when the exe is elsewhere.
Definition at line 44 of file LuxGameRoot.h.