mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-12-24 00:31:48 +01:00
fixed record
This commit is contained in:
parent
0e056a8e01
commit
12d36d8710
@ -42,7 +42,7 @@ void CRecordDataForGame::Init(void)
|
|||||||
if (RecordingState == STATE_PLAYBACK) {
|
if (RecordingState == STATE_PLAYBACK) {
|
||||||
pDataBufferPointer = new uint8[MEMORY_FOR_GAME_RECORD];
|
pDataBufferPointer = new uint8[MEMORY_FOR_GAME_RECORD];
|
||||||
pDataBuffer = pDataBufferPointer;
|
pDataBuffer = pDataBufferPointer;
|
||||||
pDataBuffer[CFileMgr::Read(FId, (char*)pDataBufferPointer, MEMORY_FOR_GAME_RECORD) + 8] = -1;
|
pDataBuffer[CFileMgr::Read(FId, (char*)pDataBufferPointer, MEMORY_FOR_GAME_RECORD) + 8] = (uint8)-1;
|
||||||
CFileMgr::CloseFile(FId);
|
CFileMgr::CloseFile(FId);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
@ -71,7 +71,7 @@ void CRecordDataForGame::SaveOrRetrieveDataForThisFrame(void)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case STATE_PLAYBACK:
|
case STATE_PLAYBACK:
|
||||||
if (pDataBufferPointer[8] == -1)
|
if (pDataBufferPointer[8] == (uint8)-1)
|
||||||
CPad::GetPad(0)->NewState.Clear();
|
CPad::GetPad(0)->NewState.Clear();
|
||||||
else {
|
else {
|
||||||
tGameBuffer* pData = (tGameBuffer*)pDataBufferPointer;
|
tGameBuffer* pData = (tGameBuffer*)pDataBufferPointer;
|
||||||
@ -92,7 +92,7 @@ void CRecordDataForGame::SaveOrRetrieveDataForThisFrame(void)
|
|||||||
|
|
||||||
#define PROCESS_BUTTON_STATE_STORE(buf, os, ns, field, id) \
|
#define PROCESS_BUTTON_STATE_STORE(buf, os, ns, field, id) \
|
||||||
do { \
|
do { \
|
||||||
if (os->field != os->field){ \
|
if (os->field != ns->field){ \
|
||||||
*buf++ = id; \
|
*buf++ = id; \
|
||||||
*buf++ = ns->field; \
|
*buf++ = ns->field; \
|
||||||
} \
|
} \
|
||||||
|
Loading…
Reference in New Issue
Block a user