NDSSystem.cpp: Fix bug where certain inputs would fail to work on big-endian systems. (Regression from commit bcc7421.)

This commit is contained in:
rogerman 2017-08-07 12:51:50 -07:00
parent 4e1bdab8c7
commit 4fd39bac56
1 changed files with 3 additions and 3 deletions

View File

@ -304,8 +304,8 @@ bool GameInfo::hasRomBanner()
else return true; else return true;
} }
bool GameInfo::IsCode(const char* code) const bool GameInfo::IsCode(const char* code) const
{ {
return memcmp(code,header.gameCode,strlen(code))==0; return memcmp(code,header.gameCode,strlen(code))==0;
} }
@ -2971,7 +2971,7 @@ static void NDS_applyFinalInput()
if (!nds.isTouch) padExt |= 1<<6; //~touch if (!nds.isTouch) padExt |= 1<<6; //~touch
if (LidClosed) padExt |= 1<<7; if (LidClosed) padExt |= 1<<7;
((u16 *)MMU.ARM7_REG)[0x136>>1] = padExt; ((u16 *)MMU.ARM7_REG)[0x136>>1] = LOCAL_TO_LE_16(padExt);
InputDisplayString=MakeInputDisplayString(padExt, pad); InputDisplayString=MakeInputDisplayString(padExt, pad);