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

Method InitializeMemorySystem

apps/cwr/GameBase/GameBase.cpp:33–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31#endif
32
33namespace Poseidon
34{
35void ApplyGamePathsToLegacyGlobals();
36}
37
38namespace
39{
40void PrintMPCompatibilityTuple(const Poseidon::Application& app)
41{
42 const auto& appConfig = Poseidon::Foundation::AppConfig::Instance();
43 std::printf("mp_actual_version=%d\n", MP_VERSION_ACTUAL);
44 std::printf("mp_required_version=%d\n", MP_VERSION_REQUIRED);
45 std::printf("version_tag=%s\n", (const char*)Poseidon::GetVersionTag());
46 std::printf("version_string=%s\n", (const char*)Poseidon::GetVersionString());
47 std::printf("dev_mode=%s\n", appConfig.DevMode() ? "true" : "false");
48 std::printf("demo=%s\n", app.IsDemo() ? "true" : "false");
49 std::printf("mod_names=%s\n", (const char*)Poseidon::ModSystem::GetModNames());
50 std::printf("mod_paths=%s\n", (const char*)Poseidon::ModSystem::GetModList());
51}

Callers

nothing calls this directly

Calls 3

InitLibraryElementFunction · 0.85
InitDefaultsFunction · 0.85
SetMemorySystemReadyFunction · 0.50

Tested by

no test coverage detected