mirror of
https://github.com/LBPUnion/UnionPatcher.git
synced 2025-07-31 05:08:41 +00:00
Left some vestigial code, whoops
This commit is contained in:
parent
de3fb6ac5d
commit
541337d574
1 changed files with 13 additions and 26 deletions
|
@ -70,22 +70,21 @@ public class RemotePatch
|
|||
|
||||
}
|
||||
|
||||
ProcessStartInfo startInfo = new();
|
||||
startInfo.UseShellExecute = false;
|
||||
startInfo.FileName = Path.GetFullPath(platformExecutable);
|
||||
startInfo.WorkingDirectory = Path.GetFullPath(".");
|
||||
startInfo.Arguments = args;
|
||||
startInfo.RedirectStandardOutput = true;
|
||||
ProcessStartInfo startInfo = new();
|
||||
startInfo.UseShellExecute = false;
|
||||
startInfo.FileName = Path.GetFullPath(platformExecutable);
|
||||
startInfo.WorkingDirectory = Path.GetFullPath(".");
|
||||
startInfo.Arguments = args;
|
||||
startInfo.RedirectStandardOutput = true;
|
||||
|
||||
Console.WriteLine("\n\n===== START SCETOOL =====\n");
|
||||
using (Process proc = Process.Start(startInfo))
|
||||
{
|
||||
while (!proc.StandardOutput.EndOfStream) Console.WriteLine(proc.StandardOutput.ReadLine());
|
||||
proc.WaitForExit();
|
||||
}
|
||||
Console.WriteLine("\n\n===== START SCETOOL =====\n");
|
||||
using (Process proc = Process.Start(startInfo))
|
||||
{
|
||||
while (!proc.StandardOutput.EndOfStream) Console.WriteLine(proc.StandardOutput.ReadLine());
|
||||
proc.WaitForExit();
|
||||
}
|
||||
|
||||
Console.WriteLine("\n===== END SCETOOL =====\n\n");
|
||||
|
||||
Console.WriteLine("\n===== END SCETOOL =====\n\n");
|
||||
}
|
||||
|
||||
public void RevertEBOOT(string ps3ip, string gameID, string serverURL, string user, string pass)
|
||||
|
@ -238,16 +237,4 @@ public class RemotePatch
|
|||
FTP.UploadFile(@$"eboot/{gameID}/patched/EBOOT.BIN",
|
||||
$"ftp://{ps3ip}/dev_hdd0/game/{gameID}/USRDIR/EBOOT.BIN", user, pass);
|
||||
}
|
||||
|
||||
public static OSPlatform GetPlatform() // this should be moved elsewhere later
|
||||
{
|
||||
OSPlatform platform = new OSPlatform();
|
||||
|
||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) platform = OSPlatform.Windows;
|
||||
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) platform = OSPlatform.Linux;
|
||||
else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) platform = OSPlatform.OSX;
|
||||
else if (RuntimeInformation.IsOSPlatform(OSPlatform.FreeBSD)) platform = OSPlatform.FreeBSD;
|
||||
|
||||
return platform;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue