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

Function UpdateUserProfile

engine/Poseidon/UI/OptionsUIApp.cpp:378–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376 snprintf(buffer, sizeof(buffer), "%s%s.sqc", (const char*)dir, (const char*)CurrentCampaign);
377 SaveMission(buffer);
378
379 StartMission(disp, true);
380}
381
382static void UpdateUserProfile()
383{
384 InputSubsystem::Instance().LoadKeys();
385 UserConfig_LoadDifficulties(USER_CONFIG);
386
387 GEngine->LoadConfig();
388 GScene->LoadConfig();
389 if (GSoundsys)
390 {
391 GSoundsys->LoadConfig();
392 }
393 LoadGameSettings();

Callers 1

OnChildDestroyedMethod · 0.85

Calls 4

LoadGameSettingsFunction · 0.85
LoadKeysMethod · 0.80
LoadConfigMethod · 0.45

Tested by

no test coverage detected