diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2025-12-24 19:57:36 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-24 16:57:36 -0800 |
| commit | 229527daf71c76965ef0735abca530cee68b7358 (patch) | |
| tree | 0325055c01866d359b1556a2cbc6b65cbd238466 /src/d/d_save.cpp | |
| parent | cefe919b8d39cb5b60d79b1dc7452e80abdf9657 (diff) | |
Resolve all gameInfo fakematches (#2995)
* Clean up various inlines/fakematches/comments
* Copy OptRuby inline name from TWW debug
* Resolve all dEvt_control_c related fakematches, return pointer instead of reference
* Fix some more missing inline usages
Diffstat (limited to 'src/d/d_save.cpp')
| -rw-r--r-- | src/d/d_save.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/d/d_save.cpp b/src/d/d_save.cpp index 0395d351dc..9b8f2d1805 100644 --- a/src/d/d_save.cpp +++ b/src/d/d_save.cpp @@ -973,18 +973,18 @@ void dSv_player_info_c::init() { void dSv_player_config_c::init() { #if VERSION == VERSION_GCN_JPN - unk0 = 0; + mRuby = 0; #else - unk0 = 1; + mRuby = 1; #endif #if PLATFORM_GCN if (OSGetSoundMode() == OS_SOUND_MODE_MONO) { mSoundMode = OS_SOUND_MODE_MONO; - Z2AudioMgr::mAudioMgrPtr->setOutputMode(OS_SOUND_MODE_MONO); + mDoAud_setOutputMode(OS_SOUND_MODE_MONO); } else { mSoundMode = OS_SOUND_MODE_STEREO; - Z2AudioMgr::mAudioMgrPtr->setOutputMode(OS_SOUND_MODE_STEREO); + mDoAud_setOutputMode(OS_SOUND_MODE_STEREO); } #endif @@ -1798,13 +1798,13 @@ int dSv_info_c::card_to_memory(char* i_cardPtr, int i_dataNum) { #if PLATFORM_GCN if (OSGetSoundMode() == OS_SOUND_MODE_MONO) { - g_dComIfG_gameInfo.info.getPlayer().getConfig().setSound(OS_SOUND_MODE_MONO); - Z2AudioMgr::mAudioMgrPtr->setOutputMode(OS_SOUND_MODE_MONO); - } else if (g_dComIfG_gameInfo.info.getPlayer().getConfig().getSound() == 2) { - Z2AudioMgr::mAudioMgrPtr->setOutputMode(2); + dComIfGs_setOptSound(OS_SOUND_MODE_MONO); + mDoAud_setOutputMode(OS_SOUND_MODE_MONO); + } else if (dComIfGs_getOptSound() == 2) { + mDoAud_setOutputMode(2); } else { - g_dComIfG_gameInfo.info.getPlayer().getConfig().setSound(OS_SOUND_MODE_STEREO); - Z2AudioMgr::mAudioMgrPtr->setOutputMode(OS_SOUND_MODE_STEREO); + dComIfGs_setOptSound(OS_SOUND_MODE_STEREO); + mDoAud_setOutputMode(OS_SOUND_MODE_STEREO); } #endif |
