Skip to content

Commit

Permalink
Merge branch 'radical-red' of github.com:andrewbenington/OpenHome int…
Browse files Browse the repository at this point in the history
…o radical-red
  • Loading branch information
andrewbenington committed Nov 17, 2024
2 parents ca98ffb + 68fa93f commit 60ffa82
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/types/SAVTypes/radicalred/G3RRSAV.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,12 @@ export class G3RRSAV implements PluginSAV<PK3RR> {
}

return (
bytesToUint32LittleEndian(bytes, 0xac) === 0 &&
bytesToUint32LittleEndian(bytes, findFirstSaveIndexZero(bytes) + 0xac) > 0
(
bytesToUint32LittleEndian(bytes, 0xac) === 0 &&
bytesToUint32LittleEndian(bytes, findFirstSaveIndexZero(bytes) + 0xac) > 0
) || (
isRR(bytes)
)
)
}

Expand Down Expand Up @@ -355,4 +359,4 @@ const findFirstSaveIndexZero = (bytes: Uint8Array): number => {
// or that there are no pokemon in the first box. The result
// of both checks failing can&should be a prompt to specify
// which game the Save belongs too.
export function isRR(data: Uint8Array): boolean { return isG3(data, 4080, 58) }
export function isRR(bytes: Uint8Array): boolean { return isG3(bytes, 4080, 58) }

0 comments on commit 60ffa82

Please sign in to comment.