Merge branch 'options-menu' into music-attenuation

This commit is contained in:
Hyper 2024-11-20 04:57:17 +00:00
commit d21b2d7deb
2 changed files with 4 additions and 2 deletions

View file

@ -17,7 +17,7 @@ namespace SWA
boost::shared_ptr<Hedgehog::Database::CDatabase> m_spDatabase; boost::shared_ptr<Hedgehog::Database::CDatabase> m_spDatabase;
SWA_INSERT_PADDING(0x8C); SWA_INSERT_PADDING(0x8C);
xpointer<CSoundAdministrator> m_pSoundAdministrator; xpointer<CSoundAdministrator> m_pSoundAdministrator;
SWA_INSERT_PADDING(0x15C); SWA_INSERT_PADDING(0x158);
be<uint32_t> m_Score; be<uint32_t> m_Score;
}; };

View file

@ -24,6 +24,8 @@ PPC_FUNC(sub_82624308)
return; return;
m_lastCheckpointScore = pGameDocument->m_pMember->m_Score; m_lastCheckpointScore = pGameDocument->m_pMember->m_Score;
printf("[*] Score: %d\n", m_lastCheckpointScore);
} }
/* Hook function that resets the score /* Hook function that resets the score
@ -41,7 +43,7 @@ PPC_FUNC(sub_8245F048)
if (!pGameDocument) if (!pGameDocument)
return; return;
printf("[*] Resetting score to %d\n", m_lastCheckpointScore); printf("[*] Score: %d\n", m_lastCheckpointScore);
pGameDocument->m_pMember->m_Score = m_lastCheckpointScore; pGameDocument->m_pMember->m_Score = m_lastCheckpointScore;
} }