We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bcfe6fa commit d31b8d8Copy full SHA for d31b8d8
1 file changed
Sonic-06-Mod-Manager/src/UnifySerialisers.cs
@@ -492,6 +492,17 @@ public static byte[] StringToByteArray(string hex)
492
/// </summary>
493
/// <param name="virtualAddr">The virtual address to convert to physical.</param>
494
public static int GetPhysicalFromVirtual(int virtualAddr)
495
- => (int)((virtualAddr - 0x82000000) + 0x3000);
+ {
496
+ switch (Literal.System(Properties.Settings.Default.Path_GameExecutable))
497
498
+ case "Xbox 360":
499
+ return (int)((virtualAddr - 0x82000000) + 0x3000);
500
+
501
+ case "PlayStation 3":
502
+ return virtualAddr - 0x10000;
503
+ }
504
505
+ return virtualAddr;
506
507
}
508
0 commit comments