mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-27 12:51:42 +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;
|
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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue