MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / restoreAgent

Function restoreAgent

TheForceEngine/TFE_Input/replay.cpp:1116–1123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1114 }
1115
1116 void restoreAgent()
1117 {
1118 // We always restore the first agent in the list
1119 s_agentId = 0;
1120 s_agentData[s_agentId] = replayAgent.agentData;
1121 agentMenu_setAgentName(replayAgent.agentData.name);
1122 agent_writeSavedData(s_agentId, &replayAgent);
1123 }
1124
1125 void restoreGameSettings()
1126 {

Callers 1

endReplayFunction · 0.85

Calls 2

agentMenu_setAgentNameFunction · 0.85
agent_writeSavedDataFunction · 0.85

Tested by

no test coverage detected