diff --git a/UnionPatcher/RemotePatch.cs b/UnionPatcher/RemotePatch.cs index d2d90c1..d3951b8 100644 --- a/UnionPatcher/RemotePatch.cs +++ b/UnionPatcher/RemotePatch.cs @@ -43,8 +43,17 @@ public class RemotePatch platformExecutable = "scetool/win64/scetool.exe"; else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) platformExecutable = "scetool/linux64/scetool"; - else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) platformExecutable = ""; - + else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) + { + if (RuntimeInformation.OSArchitecture == Architecture.Arm64) + { + platformExecutable = "scetool/macarm64/scetool"; // For Apple Silicon Macs + } + else + { + platformExecutable = "scetool/mac64/scetool"; + } + } if (platformExecutable != "") { ProcessStartInfo startInfo = new(); @@ -219,4 +228,4 @@ public class RemotePatch FTP.UploadFile(@$"eboot/{gameID}/patched/EBOOT.BIN", $"ftp://{ps3ip}/dev_hdd0/game/{gameID}/USRDIR/EBOOT.BIN", user, pass); } -} \ No newline at end of file +} diff --git a/UnionPatcher/scetool/mac64/scetool b/UnionPatcher/scetool/mac64/scetool new file mode 100755 index 0000000..0b77874 Binary files /dev/null and b/UnionPatcher/scetool/mac64/scetool differ diff --git a/UnionPatcher/scetool/macarm64/scetool b/UnionPatcher/scetool/macarm64/scetool new file mode 100755 index 0000000..7798c2d Binary files /dev/null and b/UnionPatcher/scetool/macarm64/scetool differ