Skip to content

Commit 13f74dd

Browse files
authored
refactor(recorder): Replace fopen with FileSystem in Replay Recorder (#1233)
1 parent e6ee245 commit 13f74dd

File tree

4 files changed

+321
-267
lines changed

4 files changed

+321
-267
lines changed

Generals/Code/GameEngine/Include/Common/Recorder.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
#include "Common/MessageStream.h"
2929
#include "GameNetwork/GameInfo.h"
3030

31+
class File;
32+
3133
/**
3234
* The ReplayGameInfo class holds information about the replay game and
3335
* the contents of its slot list for reconstructing multiplayer games.
@@ -154,7 +156,7 @@ class RecorderClass : public SubsystemInterface {
154156

155157
CullBadCommandsResult cullBadCommands(); ///< prevent the user from giving mouse commands that he shouldn't be able to do during playback.
156158

157-
FILE *m_file;
159+
File* m_file;
158160
AsciiString m_fileName;
159161
Int m_currentFilePosition;
160162
RecorderModeType m_mode;

0 commit comments

Comments
 (0)