mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-28 13:21:42 +00:00
Move Voice Language patch to resident_patches
This commit is contained in:
parent
e545a95141
commit
ba0e4b204f
3 changed files with 22 additions and 11 deletions
|
|
@ -5,6 +5,16 @@
|
|||
|
||||
namespace SWA
|
||||
{
|
||||
enum ELanguage : uint32_t
|
||||
{
|
||||
eLanguage_English,
|
||||
eLanguage_Japanese,
|
||||
eLanguage_German,
|
||||
eLanguage_French,
|
||||
eLanguage_Italian,
|
||||
eLanguage_Spanish
|
||||
};
|
||||
|
||||
enum EVoiceLanguage : uint32_t
|
||||
{
|
||||
eVoiceLanguage_English,
|
||||
|
|
@ -28,7 +38,7 @@ namespace SWA
|
|||
|
||||
xpointer<void> m_pVftable;
|
||||
xpointer<CMember> m_pMember;
|
||||
SWA_INSERT_PADDING(0x04);
|
||||
be<ELanguage> m_Language;
|
||||
be<EVoiceLanguage> m_VoiceLanguage;
|
||||
SWA_INSERT_PADDING(0x0C);
|
||||
be<uint32_t> m_Region;
|
||||
|
|
|
|||
|
|
@ -27,15 +27,5 @@ void AudioPatches::Update(float deltaTime)
|
|||
*pEffectsVolume = Config::EffectsVolume;
|
||||
}
|
||||
|
||||
PPC_FUNC_IMPL(__imp__sub_824EB9B0);
|
||||
PPC_FUNC(sub_824EB9B0)
|
||||
{
|
||||
auto pApplicationDocument = (SWA::CApplicationDocument*)g_memory.Translate(ctx.r4.u32);
|
||||
|
||||
pApplicationDocument->m_VoiceLanguage = (SWA::EVoiceLanguage)Config::VoiceLanguage.Value;
|
||||
|
||||
__imp__sub_824EB9B0(ctx, base);
|
||||
}
|
||||
|
||||
// Stub volume setter.
|
||||
GUEST_FUNCTION_STUB(sub_82E58728);
|
||||
|
|
|
|||
|
|
@ -31,6 +31,17 @@ PPC_FUNC(sub_824DCF38)
|
|||
__imp__sub_824DCF38(ctx, base);
|
||||
}
|
||||
|
||||
// Load voice language files.
|
||||
PPC_FUNC_IMPL(__imp__sub_824EB9B0);
|
||||
PPC_FUNC(sub_824EB9B0)
|
||||
{
|
||||
auto pApplicationDocument = (SWA::CApplicationDocument*)g_memory.Translate(ctx.r4.u32);
|
||||
|
||||
pApplicationDocument->m_VoiceLanguage = (SWA::EVoiceLanguage)Config::VoiceLanguage.Value;
|
||||
|
||||
__imp__sub_824EB9B0(ctx, base);
|
||||
}
|
||||
|
||||
// CApplicationDocument::LoadArchiveDatabases
|
||||
PPC_FUNC_IMPL(__imp__sub_824EFD28);
|
||||
PPC_FUNC(sub_824EFD28)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue