Skip to content

Commit

Permalink
Implement -noreplay from Carmageddon DOS version
Browse files Browse the repository at this point in the history
  • Loading branch information
madebr committed May 15, 2024
1 parent d67f04e commit 7e98d3b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/DETHRACE/pc-win95/win95sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -864,6 +864,11 @@ void Win32AllocateActionReplayBuffer(void) {
void PDAllocateActionReplayBuffer(char** pBuffer, tU32* pBuffer_size) {
LOG_TRACE("(%p, %p)", pBuffer, pBuffer_size);

if (gReplay_override) {
*pBuffer = NULL;
*pBuffer_size = 0;
return;
}
Win32AllocateActionReplayBuffer();
*pBuffer = gWin32_action_replay_buffer;
*pBuffer_size = gWin32_action_replay_buffer_size;
Expand Down

0 comments on commit 7e98d3b

Please sign in to comment.