Overwrite region byte only

The original application overwrites the publisher's byte with 01, which is Nintendo's code. As a result, only first-party Nintendo game saves can be successfully converted.
This change leaves the publisher's byte intact, so third-party game saves can be converted as well (tested with a couple of EA games).
This commit is contained in:
drelixor 2020-01-31 22:55:45 +01:00 committed by GitHub
parent 7a16bfaf7f
commit 1c2ca83cc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -130,11 +130,11 @@ namespace GCConverter
{
bw.BaseStream.Seek(0x3, SeekOrigin.Begin);
if (region == "PAL")
bw.Write(0xFF313050);
bw.Write((byte)0x50);
else if (region == "NTSC-U")
bw.Write(0xFF313045);
bw.Write((byte)0x45);
else if (region == "NTSC-J")
bw.Write(0xFF31304A);
bw.Write((byte)0x4A);
bw.Close();
}
@ -145,4 +145,4 @@ namespace GCConverter
}
}
}
}
}