MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / ApplyToRuntime

Function ApplyToRuntime

engine/Poseidon/UI/Settings/GameSettingsConfig.cpp:63–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61{
62 const std::string& dir = GamePaths::Instance().UserDir();
63 return dir + "game.cfg";
64}
65
66std::string JoinPath(std::string dir, const char* filename)
67{
68 if (!dir.empty() && dir.back() != '/' && dir.back() != '\\')
69 dir += '/';
70 return dir + filename;
71}
72
73std::string LegacyPlayerPrefsPath()
74{
75 if (const char* userDir = std::getenv("POSEIDON_USER_DIR"); userDir && userDir[0] != '\0')

Callers 1

LoadGameSettingsFunction · 0.85

Calls 4

SetLanguageFunction · 0.85
RStringClass · 0.50

Tested by

no test coverage detected