summaryrefslogtreecommitdiffstats
path: root/src/Zones.cpp
diff options
context:
space:
mode:
authorFire_Head <Fire-Head@users.noreply.github.com>2019-06-12 11:58:11 +0200
committerGitHub <noreply@github.com>2019-06-12 11:58:11 +0200
commitea7d5d93b0d1a3d9689ed3f7290302c057ab226a (patch)
treea45953c15754c723d8feb3baded075dff633127f /src/Zones.cpp
parentMerge pull request #3 from GTAmodding/master (diff)
parentMerge pull request #9 from ShFil119/COnscreenTimer (diff)
downloadre3-ea7d5d93b0d1a3d9689ed3f7290302c057ab226a.tar
re3-ea7d5d93b0d1a3d9689ed3f7290302c057ab226a.tar.gz
re3-ea7d5d93b0d1a3d9689ed3f7290302c057ab226a.tar.bz2
re3-ea7d5d93b0d1a3d9689ed3f7290302c057ab226a.tar.lz
re3-ea7d5d93b0d1a3d9689ed3f7290302c057ab226a.tar.xz
re3-ea7d5d93b0d1a3d9689ed3f7290302c057ab226a.tar.zst
re3-ea7d5d93b0d1a3d9689ed3f7290302c057ab226a.zip
Diffstat (limited to 'src/Zones.cpp')
-rw-r--r--src/Zones.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/Zones.cpp b/src/Zones.cpp
index 0f9bedfb..d4ce07f6 100644
--- a/src/Zones.cpp
+++ b/src/Zones.cpp
@@ -1,9 +1,12 @@
#include "common.h"
#include "patcher.h"
-#include "World.h"
-#include "Clock.h"
+
#include "Zones.h"
+#include "Clock.h"
+#include "Text.h"
+#include "World.h"
+
eLevelName &CTheZones::m_CurrLevel = *(eLevelName*)0x8F2BC8;
CZone *&CTheZones::m_pPlayersZone = *(CZone**)0x8F254C;
int16 &CTheZones::FindIndex = *(int16*)0x95CC40;
@@ -40,6 +43,10 @@ CheckZoneInfo(CZoneInfo *info)
assert(info->gangThreshold[7] <= info->gangThreshold[8]);
}
+wchar* CZone::GetTranslatedName() {
+ return TheText.Get(name);
+}
+
void
CTheZones::Init(void)
{
@@ -615,6 +622,7 @@ CTheZones::InitialiseAudioZoneArray(void)
}
STARTPATCHES
+ InjectHook(0x4B5DD0, &CZone::GetTranslatedName, PATCH_JUMP);
InjectHook(0x4B5DE0, CTheZones::Init, PATCH_JUMP);
InjectHook(0x4B61D0, CTheZones::Update, PATCH_JUMP);
InjectHook(0x4B6210, CTheZones::CreateZone, PATCH_JUMP);