From 0b5c73bd230a34bcd3ea9962fa08fa69c2830a12 Mon Sep 17 00:00:00 2001 From: Matthew Budd Date: Tue, 10 Nov 2020 21:57:58 -0500 Subject: [PATCH] Removed inline from cheat functions to allow them to properly link in Qt/SDL executable. --- src/cheat.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cheat.cpp b/src/cheat.cpp index 471bd80d..8eb2ebfd 100644 --- a/src/cheat.cpp +++ b/src/cheat.cpp @@ -902,12 +902,12 @@ int FCEU_DisableAllCheats(){ return count; } -inline int FCEUI_FindCheatMapByte(uint16 address) +int FCEUI_FindCheatMapByte(uint16 address) { 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); }