summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorwithmorten <morten.with@gmail.com>2021-01-13 00:22:51 +0100
committerGitHub <noreply@github.com>2021-01-13 00:22:51 +0100
commit2b91af44930d50b4eef30794b31adf283247ac71 (patch)
tree1fba382dcd0900d33dcad9f0ba5efa684686bef1 /src/control
parentMore font fixes (diff)
parentmove stuff back into class; securom comments (diff)
downloadre3-2b91af44930d50b4eef30794b31adf283247ac71.tar
re3-2b91af44930d50b4eef30794b31adf283247ac71.tar.gz
re3-2b91af44930d50b4eef30794b31adf283247ac71.tar.bz2
re3-2b91af44930d50b4eef30794b31adf283247ac71.tar.lz
re3-2b91af44930d50b4eef30794b31adf283247ac71.tar.xz
re3-2b91af44930d50b4eef30794b31adf283247ac71.tar.zst
re3-2b91af44930d50b4eef30794b31adf283247ac71.zip
Diffstat (limited to 'src/control')
-rw-r--r--src/control/Replay.cpp2
-rw-r--r--src/control/Replay.h6
2 files changed, 2 insertions, 6 deletions
diff --git a/src/control/Replay.cpp b/src/control/Replay.cpp
index 37a54999..db768e17 100644
--- a/src/control/Replay.cpp
+++ b/src/control/Replay.cpp
@@ -1729,7 +1729,7 @@ void CReplay::SaveReplayToHD(void)
CFileMgr::SetDir("");
}
-void PlayReplayFromHD(void)
+void CReplay::PlayReplayFromHD(void)
{
CFileMgr::SetDirMyDocuments();
int fr = CFileMgr::OpenFile("replay.rep", "rb");
diff --git a/src/control/Replay.h b/src/control/Replay.h
index 84a6bef0..5dd8b651 100644
--- a/src/control/Replay.h
+++ b/src/control/Replay.h
@@ -64,8 +64,6 @@ struct CStoredDetailedAnimationState
uint8 aGroupId2[NUM_PARTIAL_ANIMS_IN_REPLAY];
};
-void PlayReplayFromHD(void);
-
#ifdef GTA_REPLAY
#define REPLAY_STUB
#else
@@ -410,12 +408,10 @@ private:
static void EmptyAllPools(void);
static void MarkEverythingAsNew(void);
static void SaveReplayToHD(void);
+ static void PlayReplayFromHD(void); // out of class in III PC and later because of SecuROM
static void FindFirstFocusCoordinate(CVector *coord);
static void ProcessLookAroundCam(void);
static size_t FindSizeOfPacket(uint8);
static void GoToNextBlock(void);
-
- /* Absolute nonsense, but how could this function end up being outside of class? */
- friend void PlayReplayFromHD(void);
#endif
};