mirror of
https://github.com/LBPUnion/UnionPatcher.git
synced 2025-09-29 03:48:32 +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();
|
ProcessStartInfo startInfo = new();
|
||||||
startInfo.UseShellExecute = false;
|
startInfo.UseShellExecute = false;
|
||||||
startInfo.FileName = Path.GetFullPath(platformExecutable);
|
startInfo.FileName = Path.GetFullPath(platformExecutable);
|
||||||
startInfo.WorkingDirectory = Path.GetFullPath(".");
|
startInfo.WorkingDirectory = Path.GetFullPath(".");
|
||||||
startInfo.Arguments = args;
|
startInfo.Arguments = args;
|
||||||
startInfo.RedirectStandardOutput = true;
|
startInfo.RedirectStandardOutput = true;
|
||||||
|
|
||||||
Console.WriteLine("\n\n===== START SCETOOL =====\n");
|
Console.WriteLine("\n\n===== START SCETOOL =====\n");
|
||||||
using (Process proc = Process.Start(startInfo))
|
using (Process proc = Process.Start(startInfo))
|
||||||
{
|
{
|
||||||
while (!proc.StandardOutput.EndOfStream) Console.WriteLine(proc.StandardOutput.ReadLine());
|
while (!proc.StandardOutput.EndOfStream) Console.WriteLine(proc.StandardOutput.ReadLine());
|
||||||
proc.WaitForExit();
|
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)
|
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.UploadFile(@$"eboot/{gameID}/patched/EBOOT.BIN",
|
||||||
$"ftp://{ps3ip}/dev_hdd0/game/{gameID}/USRDIR/EBOOT.BIN", user, pass);
|
$"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