mirror of
https://github.com/halpz/re3.git
synced 2024-12-25 18:05:27 +00:00
fixed record
This commit is contained in:
parent
12d36d8710
commit
c21529467a
|
@ -21,7 +21,6 @@ tGameBuffer& CRecordDataForGame::pDataBufferForFrame = *(tGameBuffer*)0x72CED0;
|
||||||
void CRecordDataForGame::Init(void)
|
void CRecordDataForGame::Init(void)
|
||||||
{
|
{
|
||||||
RecordingState = STATE_NONE;
|
RecordingState = STATE_NONE;
|
||||||
if (pDataBuffer)
|
|
||||||
delete[] pDataBuffer;
|
delete[] pDataBuffer;
|
||||||
pDataBufferPointer = nil;
|
pDataBufferPointer = nil;
|
||||||
pDataBuffer = nil;
|
pDataBuffer = nil;
|
||||||
|
@ -102,7 +101,7 @@ uint8* CRecordDataForGame::PackCurrentPadValues(uint8* buf, CControllerState* os
|
||||||
{
|
{
|
||||||
PROCESS_BUTTON_STATE_STORE(buf, os, ns, LeftStickX, 0);
|
PROCESS_BUTTON_STATE_STORE(buf, os, ns, LeftStickX, 0);
|
||||||
PROCESS_BUTTON_STATE_STORE(buf, os, ns, LeftStickY, 1);
|
PROCESS_BUTTON_STATE_STORE(buf, os, ns, LeftStickY, 1);
|
||||||
PROCESS_BUTTON_STATE_STORE(buf, os, ns, LeftShoulder1, 2);
|
PROCESS_BUTTON_STATE_STORE(buf, os, ns, RightStickX, 2);
|
||||||
PROCESS_BUTTON_STATE_STORE(buf, os, ns, RightStickY, 3);
|
PROCESS_BUTTON_STATE_STORE(buf, os, ns, RightStickY, 3);
|
||||||
PROCESS_BUTTON_STATE_STORE(buf, os, ns, LeftShoulder1, 4);
|
PROCESS_BUTTON_STATE_STORE(buf, os, ns, LeftShoulder1, 4);
|
||||||
PROCESS_BUTTON_STATE_STORE(buf, os, ns, LeftShoulder2, 5);
|
PROCESS_BUTTON_STATE_STORE(buf, os, ns, LeftShoulder2, 5);
|
||||||
|
@ -132,7 +131,7 @@ uint8* CRecordDataForGame::UnPackCurrentPadValues(uint8* buf, uint8 total, CCont
|
||||||
switch (*buf++) {
|
switch (*buf++) {
|
||||||
PROCESS_BUTTON_STATE_RESTORE(buf, state, LeftStickX, 0);
|
PROCESS_BUTTON_STATE_RESTORE(buf, state, LeftStickX, 0);
|
||||||
PROCESS_BUTTON_STATE_RESTORE(buf, state, LeftStickY, 1);
|
PROCESS_BUTTON_STATE_RESTORE(buf, state, LeftStickY, 1);
|
||||||
PROCESS_BUTTON_STATE_RESTORE(buf, state, LeftShoulder1, 2);
|
PROCESS_BUTTON_STATE_RESTORE(buf, state, RightStickX, 2);
|
||||||
PROCESS_BUTTON_STATE_RESTORE(buf, state, RightStickY, 3);
|
PROCESS_BUTTON_STATE_RESTORE(buf, state, RightStickY, 3);
|
||||||
PROCESS_BUTTON_STATE_RESTORE(buf, state, LeftShoulder1, 4);
|
PROCESS_BUTTON_STATE_RESTORE(buf, state, LeftShoulder1, 4);
|
||||||
PROCESS_BUTTON_STATE_RESTORE(buf, state, LeftShoulder2, 5);
|
PROCESS_BUTTON_STATE_RESTORE(buf, state, LeftShoulder2, 5);
|
||||||
|
|
Loading…
Reference in a new issue