Removed inline from cheat functions to allow them to properly link in Qt/SDL executable.

This commit is contained in:
Matthew Budd 2020-11-10 21:57:58 -05:00
parent d60a00caeb
commit 0b5c73bd23
1 changed files with 2 additions and 2 deletions

View File

@ -902,12 +902,12 @@ int FCEU_DisableAllCheats(){
return count; return count;
} }
inline int FCEUI_FindCheatMapByte(uint16 address) int FCEUI_FindCheatMapByte(uint16 address)
{ {
return cheatMap[address / 8] >> (address % 8) & 1; return cheatMap[address / 8] >> (address % 8) & 1;
} }
inline void FCEUI_SetCheatMapByte(uint16 address, bool cheat) void FCEUI_SetCheatMapByte(uint16 address, bool cheat)
{ {
cheat ? cheatMap[address / 8] |= (1 << address % 8) : cheatMap[address / 8] ^= (1 << address % 8); cheat ? cheatMap[address / 8] |= (1 << address % 8) : cheatMap[address / 8] ^= (1 << address % 8);
} }