mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-23 00:10:01 +00:00
Add GetTranslatedName to CZone
This commit is contained in:
parent
8ec8c0c5db
commit
c95f1ce2ce
|
@ -1,9 +1,12 @@
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "patcher.h"
|
#include "patcher.h"
|
||||||
#include "World.h"
|
|
||||||
#include "Clock.h"
|
|
||||||
#include "Zones.h"
|
#include "Zones.h"
|
||||||
|
|
||||||
|
#include "Clock.h"
|
||||||
|
#include "Text.h"
|
||||||
|
#include "World.h"
|
||||||
|
|
||||||
eLevelName &CTheZones::m_CurrLevel = *(eLevelName*)0x8F2BC8;
|
eLevelName &CTheZones::m_CurrLevel = *(eLevelName*)0x8F2BC8;
|
||||||
CZone *&CTheZones::m_pPlayersZone = *(CZone**)0x8F254C;
|
CZone *&CTheZones::m_pPlayersZone = *(CZone**)0x8F254C;
|
||||||
int16 &CTheZones::FindIndex = *(int16*)0x95CC40;
|
int16 &CTheZones::FindIndex = *(int16*)0x95CC40;
|
||||||
|
@ -40,6 +43,10 @@ CheckZoneInfo(CZoneInfo *info)
|
||||||
assert(info->gangThreshold[7] <= info->gangThreshold[8]);
|
assert(info->gangThreshold[7] <= info->gangThreshold[8]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wchar* CZone::GetTranslatedName() {
|
||||||
|
return TheText.Get(name);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
CTheZones::Init(void)
|
CTheZones::Init(void)
|
||||||
{
|
{
|
||||||
|
@ -615,6 +622,7 @@ CTheZones::InitialiseAudioZoneArray(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
STARTPATCHES
|
STARTPATCHES
|
||||||
|
InjectHook(0x4B5DD0, &CZone::GetTranslatedName, PATCH_JUMP);
|
||||||
InjectHook(0x4B5DE0, CTheZones::Init, PATCH_JUMP);
|
InjectHook(0x4B5DE0, CTheZones::Init, PATCH_JUMP);
|
||||||
InjectHook(0x4B61D0, CTheZones::Update, PATCH_JUMP);
|
InjectHook(0x4B61D0, CTheZones::Update, PATCH_JUMP);
|
||||||
InjectHook(0x4B6210, CTheZones::CreateZone, PATCH_JUMP);
|
InjectHook(0x4B6210, CTheZones::CreateZone, PATCH_JUMP);
|
||||||
|
|
|
@ -27,6 +27,8 @@ public:
|
||||||
CZone *child;
|
CZone *child;
|
||||||
CZone *parent;
|
CZone *parent;
|
||||||
CZone *next;
|
CZone *next;
|
||||||
|
|
||||||
|
wchar *GetTranslatedName();
|
||||||
};
|
};
|
||||||
|
|
||||||
class CZoneInfo
|
class CZoneInfo
|
||||||
|
|
Loading…
Reference in a new issue