mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-27 04:41:39 +00:00
Merge branch 'options-menu' into music-attenuation
This commit is contained in:
commit
d21b2d7deb
2 changed files with 4 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ namespace SWA
|
|||
boost::shared_ptr<Hedgehog::Database::CDatabase> m_spDatabase;
|
||||
SWA_INSERT_PADDING(0x8C);
|
||||
xpointer<CSoundAdministrator> m_pSoundAdministrator;
|
||||
SWA_INSERT_PADDING(0x15C);
|
||||
SWA_INSERT_PADDING(0x158);
|
||||
be<uint32_t> m_Score;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -24,6 +24,8 @@ PPC_FUNC(sub_82624308)
|
|||
return;
|
||||
|
||||
m_lastCheckpointScore = pGameDocument->m_pMember->m_Score;
|
||||
|
||||
printf("[*] Score: %d\n", m_lastCheckpointScore);
|
||||
}
|
||||
|
||||
/* Hook function that resets the score
|
||||
|
|
@ -41,7 +43,7 @@ PPC_FUNC(sub_8245F048)
|
|||
if (!pGameDocument)
|
||||
return;
|
||||
|
||||
printf("[*] Resetting score to %d\n", m_lastCheckpointScore);
|
||||
printf("[*] Score: %d\n", m_lastCheckpointScore);
|
||||
|
||||
pGameDocument->m_pMember->m_Score = m_lastCheckpointScore;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue