mirror of
https://github.com/FunKey-Project/picodrive-irixxxx.git
synced 2026-02-08 16:05:53 +01:00
Restore support for short GG cheats.
This commit is contained in:
parent
fa55ee51c9
commit
ba47d3dfe3
@ -173,7 +173,7 @@ void genie_decode_ms(const char *code, struct patch *result)
|
||||
/* Correct the address */
|
||||
result->addr = ((result->addr >> 4) | (result->addr << 12 & 0xF000)) ^ 0xF000;
|
||||
/* Optional: 3 digits for comp */
|
||||
if (code[8]){
|
||||
if (code[8]=='-'){
|
||||
for(i=8;i<11;++i)
|
||||
{
|
||||
if (i==9) continue; /* 2nd character is ignored */
|
||||
@ -313,7 +313,7 @@ void decode(const char* code, struct patch* result)
|
||||
//If Master System
|
||||
|
||||
//Genie
|
||||
if(len == 11 && code[3] == '-' && code[7] == '-')
|
||||
if(len >= 7 && code[3] == '-')
|
||||
{
|
||||
genie_decode_ms(code, result);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user