summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortwinaphex2020-10-07 14:14:52 +0200
committertwinaphex2020-10-07 14:14:52 +0200
commit8b76b5301822d92545e8f62b07f774715b1a1e8b (patch)
treef0cca49b8adf96d53d38ec74cc4545c0fc7d856c
parent705ae64126bbe2dd0cd9b3189f37685c3c4eed70 (diff)
downloadsnes9x2002-8b76b5301822d92545e8f62b07f774715b1a1e8b.tar.gz
snes9x2002-8b76b5301822d92545e8f62b07f774715b1a1e8b.tar.bz2
snes9x2002-8b76b5301822d92545e8f62b07f774715b1a1e8b.zip
Stub out cheats for now for MSVC until this issue is properly fixed
-rw-r--r--libretro/libretro.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libretro/libretro.c b/libretro/libretro.c
index eee39ce..b400cf5 100644
--- a/libretro/libretro.c
+++ b/libretro/libretro.c
@@ -538,16 +538,15 @@ void retro_cheat_reset(void)
void retro_cheat_set(unsigned index, bool enable, const char* in_code)
{
+ /* TODO/FIXME - MSVC error C2057: expected constant expression -
+ * see clean_code[strlen(in_code)];
+ */
+#ifndef _MSC_VER
uint32 address;
uint8 byte;
char clean_code[strlen(in_code)];
int j =0;
unsigned i;
-
- /* TODO/FIXME - MSVC error C2057: expected constant expression -
- * see clean_code[strlen(in_code)];
- */
-
for (i = 0; i < strlen(in_code); i++)
{
switch (in_code[i])
@@ -576,6 +575,7 @@ void retro_cheat_set(unsigned index, bool enable, const char* in_code)
else if ( S9xGameGenieToRaw(clean_code, &address, &byte) == NULL)
S9xAddCheat(true, true, address, byte);
/* else, silently ignore */
+#endif
}
bool retro_load_game(const struct retro_game_info *game)