2 Commits

Author SHA1 Message Date
clobber 9d79c1a4a5 Bump version for sparkle updater. Core is still 2.2.3 2018-12-08 23:22:48 -06:00
clobber c1271716eb Add support for Raw cheat formats 2018-12-08 23:22:32 -06:00
2 changed files with 19 additions and 2 deletions
+18 -1
View File
@@ -479,8 +479,25 @@ const int NESMap[] = {JOY_UP, JOY_DOWN, JOY_LEFT, JOY_RIGHT, JOY_A, JOY_B, JOY_S
int address, value, compare;
int type = 1;
if (FCEUI_DecodeGG(cCode, &address, &value, &compare))
if (singleCode.length == 7 && [singleCode characterAtIndex:4] == ':')
{
address = (int)strtoul([singleCode substringToIndex:4].UTF8String, NULL, 16);
value = (int)strtoul([singleCode substringFromIndex:5].UTF8String, NULL, 16);
compare = -1;
FCEUI_AddCheat(cCode, address, value, compare, type);
}
else if (singleCode.length == 10 && [singleCode characterAtIndex:4] == '?' && [singleCode characterAtIndex:7] == ':')
{
address = (int)strtoul([singleCode substringToIndex:4].UTF8String, NULL, 16);
compare = (int)strtoul([singleCode substringWithRange:NSMakeRange(5, 2)].UTF8String, NULL, 16);
value = (int)strtoul([singleCode substringFromIndex:8].UTF8String, NULL, 16);
FCEUI_AddCheat(cCode, address, value, compare, type);
}
else if (FCEUI_DecodeGG(cCode, &address, &value, &compare))
FCEUI_AddCheat(cCode, address, value, compare, type);
// Does not work
// else if (FCEUI_DecodePAR(cCode, &address, &value, &compare, &type))
// FCEUI_AddCheat(cCode, address, value, compare, type);
}
}
}
+1 -1
View File
@@ -17,7 +17,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>2.2.3.1</string>
<string>2.2.3.2</string>
<key>NSPrincipalClass</key>
<string>OEGameCoreController</string>
<key>OEGameCoreClass</key>