Implement -noreplay from Carmageddon DOS version

This commit is contained in:
Anonymous Maarten 2024-04-03 00:09:14 +02:00 committed by Anonymous Maarten
parent d67f04e6c6
commit 7e98d3b887
1 changed files with 5 additions and 0 deletions

View File

@ -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;