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

Function xSGT_LoadPrefsCB

src/SB/Game/zSaveLoad.cpp:2364–2382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2362}
2363
2364S32 xSGT_LoadPrefsCB(void* vp, st_XSAVEGAME_DATA* xsgdata, st_XSAVEGAME_READCONTEXT* rctxt, U32 ui,
2365 S32 i)
2366{
2367 U32 stereo;
2368
2369 xSGReadData(xsgdata, rctxt, &stereo, 1);
2370 xSGReadData(xsgdata, rctxt, &gSnd.categoryVolFader[2], 1);
2371 xSGReadData(xsgdata, rctxt, &gSnd.categoryVolFader[0], 1);
2372 xSGReadData(xsgdata, rctxt, &globals.option_vibration, 1);
2373 if (globals.option_vibration != 0)
2374 {
2375 xPadRumbleEnable(globals.currentActivePad, 1);
2376 }
2377 else
2378 {
2379 xPadRumbleEnable(globals.currentActivePad, 0);
2380 }
2381 return 1;
2382}
2383
2384U32 zSaveLoad_slotIsEmpty(U32 slot)
2385{

Callers

nothing calls this directly

Calls 2

xSGReadDataFunction · 0.50
xPadRumbleEnableFunction · 0.50

Tested by

no test coverage detected