summaryrefslogtreecommitdiffstats
path: root/src/control/Replay.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-12-02 10:38:39 +0100
committeraap <aap@papnet.eu>2020-12-02 10:38:39 +0100
commitf5763118140591f980e89089e3f67c3d50a293b9 (patch)
tree0e6a15457497d9999f039b11260eda3d2679f580 /src/control/Replay.h
parentbetter cam lod dist fix (diff)
parentfast fix (diff)
downloadre3-f5763118140591f980e89089e3f67c3d50a293b9.tar
re3-f5763118140591f980e89089e3f67c3d50a293b9.tar.gz
re3-f5763118140591f980e89089e3f67c3d50a293b9.tar.bz2
re3-f5763118140591f980e89089e3f67c3d50a293b9.tar.lz
re3-f5763118140591f980e89089e3f67c3d50a293b9.tar.xz
re3-f5763118140591f980e89089e3f67c3d50a293b9.tar.zst
re3-f5763118140591f980e89089e3f67c3d50a293b9.zip
Diffstat (limited to 'src/control/Replay.h')
-rw-r--r--src/control/Replay.h33
1 files changed, 22 insertions, 11 deletions
diff --git a/src/control/Replay.h b/src/control/Replay.h
index 66bee3bf..cb58a602 100644
--- a/src/control/Replay.h
+++ b/src/control/Replay.h
@@ -63,6 +63,12 @@ struct CStoredDetailedAnimationState
void PlayReplayFromHD(void);
+#ifdef GTA_REPLAY
+#define REPLAY_STUB
+#else
+#define REPLAY_STUB {}
+#endif
+
class CReplay
{
enum {
@@ -273,20 +279,24 @@ private:
#endif
public:
- static void Init(void);
- static void DisableReplays(void);
- static void EnableReplays(void);
- static void Update(void);
- static void FinishPlayback(void);
- static void EmptyReplayBuffer(void);
- static void Display(void);
- static void TriggerPlayback(uint8 cam_mode, float cam_x, float cam_y, float cam_z, bool load_scene);
- static void StreamAllNecessaryCarsAndPeds(void);
- static bool ShouldStandardCameraBeProcessed(void);
+ static void Init(void) REPLAY_STUB;
+ static void DisableReplays(void) REPLAY_STUB;
+ static void EnableReplays(void) REPLAY_STUB;
+ static void Update(void) REPLAY_STUB;
+ static void FinishPlayback(void) REPLAY_STUB;
+ static void EmptyReplayBuffer(void) REPLAY_STUB;
+ static void Display(void) REPLAY_STUB;
+ static void TriggerPlayback(uint8 cam_mode, float cam_x, float cam_y, float cam_z, bool load_scene) REPLAY_STUB;
+ static void StreamAllNecessaryCarsAndPeds(void) REPLAY_STUB;
+#ifndef GTA_REPLAY
+ static bool ShouldStandardCameraBeProcessed(void) { return true; }
+ static bool IsPlayingBack() { return false; }
+ static bool IsPlayingBackFromFile() { return false; }
+#else
+ static bool ShouldStandardCameraBeProcessed(void);
static bool IsPlayingBack() { return Mode == MODE_PLAYBACK; }
static bool IsPlayingBackFromFile() { return bPlayingBackFromFile; }
-
private:
static void RecordThisFrame(void);
static void StorePedUpdate(CPed *ped, int id);
@@ -314,4 +324,5 @@ private:
/* Absolute nonsense, but how could this function end up being outside of class? */
friend void PlayReplayFromHD(void);
+#endif
};