From 75bca8e31eef877cc6df83146c665f86ad6f8583 Mon Sep 17 00:00:00 2001 From: Fire-Head Date: Thu, 13 Jun 2019 03:35:26 +0300 Subject: CPad done --- src/control/Population.cpp | 4 ++++ src/control/Population.h | 7 +++++++ src/control/Replay.cpp | 1 + src/control/Replay.h | 1 + 4 files changed, 13 insertions(+) create mode 100644 src/control/Population.cpp create mode 100644 src/control/Population.h (limited to 'src/control') diff --git a/src/control/Population.cpp b/src/control/Population.cpp new file mode 100644 index 00000000..3626381d --- /dev/null +++ b/src/control/Population.cpp @@ -0,0 +1,4 @@ +#include "common.h" +#include "Population.h" + +Bool &CPopulation::ms_bGivePedsWeapons = *(Bool*)0x95CCF6; \ No newline at end of file diff --git a/src/control/Population.h b/src/control/Population.h new file mode 100644 index 00000000..e01d2712 --- /dev/null +++ b/src/control/Population.h @@ -0,0 +1,7 @@ +#pragma once + +class CPopulation +{ +public: + static Bool &ms_bGivePedsWeapons; +}; \ No newline at end of file diff --git a/src/control/Replay.cpp b/src/control/Replay.cpp index 6cfbd846..b1bdc1bf 100644 --- a/src/control/Replay.cpp +++ b/src/control/Replay.cpp @@ -3,5 +3,6 @@ #include "Replay.h" uint8 &CReplay::Mode = *(uint8*)0x95CD5B; +Bool &CReplay::bPlayingBackFromFile = *(Bool*)0x95CD58; WRAPPER void CReplay::Display(void) { EAXJMP(0x595EE0); } diff --git a/src/control/Replay.h b/src/control/Replay.h index eca818d6..e7a195dc 100644 --- a/src/control/Replay.h +++ b/src/control/Replay.h @@ -6,4 +6,5 @@ public: static void Display(void); static uint8 &Mode; + static Bool &bPlayingBackFromFile; }; -- cgit v1.2.3