resonance 1.0.1
Loading...
Searching...
No Matches
GamePlaybacker Class Reference

Playback of a recorded game session that GameManagerImpl::Recreate() installs. More...

#include <gameplaybacker.h>

Public Member Functions

 GamePlaybacker (const HxStr &file, GameManagerImpl *pManager, int nFlag)
 Restore the recorded session and start the watchdog's playback of it.
 ~GamePlaybacker ()
 Close the watchdog's playback.

Detailed Description

Playback of a recorded game session that GameManagerImpl::Recreate() installs.

The class is not polymorphic and emits no RTTI. The object is 4 bytes and is allocated with the untagged allocator.

Constructor & Destructor Documentation

◆ GamePlaybacker()

GamePlaybacker::GamePlaybacker ( const HxStr & file,
GameManagerImpl * pManager,
int nFlag )

Restore the recorded session and start the watchdog's playback of it.

Opens the recording as an IBFileStream on MakeFreqPath(file), reads three length-prefixed strings from it and discards them, runs the manager's Load(), and hands the stream to Sch::Scheduler::StartPlayback().

Parameters
fileThe recording.
pManagerThe manager that installs the playback.
nFlagThe flag Recreate() passes. The body does not read it.
Ghidra address:
NTSC-U/C: 0x0010cf30
Ghidra address:
PAL: 0x0010d208

◆ ~GamePlaybacker()

GamePlaybacker::~GamePlaybacker ( )

Close the watchdog's playback.

Ghidra address:
NTSC-U/C: 0x0010f0d8
Ghidra address:
PAL: 0x0010f538

The documentation for this class was generated from the following file: