mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
Restore support for short GG cheats.
This commit is contained in:
parent
ed4a2193f7
commit
9a570a67ca
1 changed files with 2 additions and 2 deletions
|
@ -174,7 +174,7 @@ void genie_decode_ms(const char *code, struct patch *result)
|
||||||
/* Correct the address */
|
/* Correct the address */
|
||||||
result->addr = ((result->addr >> 4) | (result->addr << 12 & 0xF000)) ^ 0xF000;
|
result->addr = ((result->addr >> 4) | (result->addr << 12 & 0xF000)) ^ 0xF000;
|
||||||
/* Optional: 3 digits for comp */
|
/* Optional: 3 digits for comp */
|
||||||
if (code[8]){
|
if (code[8]=='-'){
|
||||||
for(i=8;i<11;++i)
|
for(i=8;i<11;++i)
|
||||||
{
|
{
|
||||||
if (i==9) continue; /* 2nd character is ignored */
|
if (i==9) continue; /* 2nd character is ignored */
|
||||||
|
@ -314,7 +314,7 @@ void decode(const char* code, struct patch* result)
|
||||||
//If Master System
|
//If Master System
|
||||||
|
|
||||||
//Genie
|
//Genie
|
||||||
if(len == 11 && code[3] == '-' && code[7] == '-')
|
if(len >= 7 && code[3] == '-')
|
||||||
{
|
{
|
||||||
genie_decode_ms(code, result);
|
genie_decode_ms(code, result);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue