Skip to content

Commit

Permalink
updated to use the boot updated for resetting client deps
Browse files Browse the repository at this point in the history
Updated for resetting client deps via the CLI so it's centerlized and removes repeated code
  • Loading branch information
SeanMott committed Oct 4, 2024
1 parent eeaa722 commit 9eaaf51
Showing 1 changed file with 24 additions and 14 deletions.
38 changes: 24 additions & 14 deletions Assets/Scripts/SeanMott/Netplay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,23 +106,33 @@ public static void ResetClientFolder()

try
{
//nukes the whole User folder
DirectoryInfo netplay = KWStructure.GenerateKWStructure_Directory_NetplayClients(installDir);
if (netplay.Exists)
{
netplay.Delete(true);
netplay = KWStructure.GenerateKWStructure_Directory_NetplayClients(installDir);
}
//runs the boot updater
Process process = new Process();
process.StartInfo.FileName = installDir.FullName + "/KAR_BootUpdate";
process.StartInfo.Arguments = "-resetClient";
process.Start();
process.WaitForExit();

////validates if KARphin is open and closes it


// //nukes the whole User folder
// DirectoryInfo netplay = KWStructure.GenerateKWStructure_Directory_NetplayClients(installDir);
// if (netplay.Exists)
// {
// netplay.Delete(true);
// netplay = KWStructure.GenerateKWStructure_Directory_NetplayClients(installDir);
// }

//gets the client deps
KWQICommonInstalls.GetLatest_ClientDeps(netplay);
// //gets the client deps
// KWQICommonInstalls.GetLatest_ClientDeps(netplay);

//gets the Gekko Codes
GeckoCodes.DownloadHPCodes();
GeckoCodes.DownloadBSCodes();
////gets the Gekko Codes
//GeckoCodes.DownloadHPCodes();
//GeckoCodes.DownloadBSCodes();

//gets KARphin
KWQICommonInstalls.GetLatest_KARphin(netplay);
// //gets KARphin
// KWQICommonInstalls.GetLatest_KARphin(netplay);
}
catch (Exception e)
{
Expand Down

0 comments on commit 9eaaf51

Please # to comment.