MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / Execute

Method Execute

ogsr_engine/xrGame/console_commands.cpp:437–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

435public:
436 CCC_DemoRecord(LPCSTR N) : IConsole_Command(N) {}
437 virtual void Execute(LPCSTR args)
438 {
439 if (!g_pGameLevel)
440 { // level not loaded
441 Log("Demo Record is disabled when level is not loaded.");
442 return;
443 }
444
445 Console->Hide();
446
447 if (MainMenu()->IsActive())
448 MainMenu()->Activate(false);
449
450 string_path fn_;
451 strconcat(sizeof(fn_), fn_, args, ".xrdemo");
452 string_path fn;
453 FS.update_path(fn, "$game_saves$", fn_);
454
455 g_pGameLevel->Cameras().AddCamEffector(xr_new<CDemoRecord>(fn));
456 }
457};
458
459class CCC_DemoPlay : public IConsole_Command

Callers

nothing calls this directly

Calls 7

LogFunction · 0.85
MainMenuFunction · 0.85
AddCamEffectorMethod · 0.80
HideMethod · 0.45
IsActiveMethod · 0.45
ActivateMethod · 0.45
update_pathMethod · 0.45

Tested by

no test coverage detected