summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-03-17 18:35:18 +0100
committerGitHub <noreply@github.com>2020-03-17 18:35:18 +0100
commit1ab6702ea681946a2947190f612e539452c3d152 (patch)
tree82d6518ad97081e3438c6e03d916e6b72d05ebce /src/control
parentMerge pull request #344 from erorcun/erorcun (diff)
parentUse WriteDataToBufferPointer (diff)
downloadre3-1ab6702ea681946a2947190f612e539452c3d152.tar
re3-1ab6702ea681946a2947190f612e539452c3d152.tar.gz
re3-1ab6702ea681946a2947190f612e539452c3d152.tar.bz2
re3-1ab6702ea681946a2947190f612e539452c3d152.tar.lz
re3-1ab6702ea681946a2947190f612e539452c3d152.tar.xz
re3-1ab6702ea681946a2947190f612e539452c3d152.tar.zst
re3-1ab6702ea681946a2947190f612e539452c3d152.zip
Diffstat (limited to 'src/control')
-rw-r--r--src/control/Cranes.cpp4
-rw-r--r--src/control/Cranes.h3
-rw-r--r--src/control/Garages.cpp2
-rw-r--r--src/control/Garages.h2
4 files changed, 10 insertions, 1 deletions
diff --git a/src/control/Cranes.cpp b/src/control/Cranes.cpp
index c8d64077..4c1bf2c8 100644
--- a/src/control/Cranes.cpp
+++ b/src/control/Cranes.cpp
@@ -9,4 +9,6 @@ WRAPPER bool CCranes::HaveAllCarsBeenCollectedByMilitaryCrane() { EAXJMP(0x544BE
WRAPPER void CCranes::ActivateCrane(float, float, float, float, float, float, float, float, bool, bool, float, float) { EAXJMP(0x543650); }
WRAPPER void CCranes::DeActivateCrane(float, float) { EAXJMP(0x543890); }
WRAPPER void CCranes::InitCranes(void) { EAXJMP(0x543360); }
-WRAPPER void CCranes::UpdateCranes(void) { EAXJMP(0x5439E0); } \ No newline at end of file
+WRAPPER void CCranes::UpdateCranes(void) { EAXJMP(0x5439E0); }
+WRAPPER void CCranes::Save(uint8*, uint32*) { EAXJMP(0x545210); }
+WRAPPER void CranesLoad(uint8*, uint32) { EAXJMP(0x5454d0); }
diff --git a/src/control/Cranes.h b/src/control/Cranes.h
index 4625463e..9f606c9f 100644
--- a/src/control/Cranes.h
+++ b/src/control/Cranes.h
@@ -14,4 +14,7 @@ public:
static void DeActivateCrane(float, float);
static void InitCranes(void);
static void UpdateCranes(void);
+ static void Save(uint8*, uint32*);
};
+
+void CranesLoad(uint8*, uint32); // is this really outside CCranes?
diff --git a/src/control/Garages.cpp b/src/control/Garages.cpp
index 8270780d..9f300257 100644
--- a/src/control/Garages.cpp
+++ b/src/control/Garages.cpp
@@ -31,6 +31,8 @@ CGarage(&CGarages::Garages)[NUM_GARAGES] = *(CGarage(*)[NUM_GARAGES])(uintptr*)0
WRAPPER void CGarages::Init(void) { EAXJMP(0x421C60); }
WRAPPER void CGarages::Update(void) { EAXJMP(0x421E40); }
+WRAPPER void CGarages::Load(uint8* buf, uint32 size) { EAXJMP(0x428940); }
+WRAPPER void CGarages::Save(uint8* buf, uint32 *size) { EAXJMP(0x4284e0); }
bool
CGarages::IsModelIndexADoor(uint32 id)
diff --git a/src/control/Garages.h b/src/control/Garages.h
index fe0d1a20..5e106ade 100644
--- a/src/control/Garages.h
+++ b/src/control/Garages.h
@@ -147,6 +147,8 @@ public:
static void PlayerArrestedOrDied();
static void Init(void);
static void Update(void);
+ static void Load(uint8 *buf, uint32 size);
+ static void Save(uint8 *buf, uint32 *size);
static int16 AddOne(float, float, float, float, float, float, uint8, uint32);
static void SetTargetCarForMissonGarage(int16, CVehicle*);
static bool HasCarBeenDroppedOffYet(int16);