MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / SetCache

Method SetCache

src/SB/Core/x/xsavegame.cpp:1422–1436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1420}
1421
1422S32 XSGAutoData::SetCache(S32 targ, S32 game, S32 physicalSlot)
1423{
1424 this->Discard();
1425 this->isg_monitor = this->HWConnect(targ);
1426 if (this->isg_monitor == NULL)
1427 {
1428 return 0;
1429 }
1430
1431 this->lastTarg = targ;
1432 this->lastGame = game;
1433 this->lastPhysicalSlot = physicalSlot;
1434 this->flg_autodata |= 1;
1435 return 1;
1436}
1437
1438void XSGAutoData::Discard()
1439{

Callers 3

zSaveLoad_DoAutoSaveFunction · 0.80
zSaveLoad_SaveGameFunction · 0.80
zSaveLoad_LoadGameFunction · 0.80

Calls 2

DiscardMethod · 0.95
HWConnectMethod · 0.95

Tested by

no test coverage detected