mirror of
https://github.com/stuff-by-3-random-dudes/UWUVCI-AIO-WPF
synced 2024-11-10 13:44:13 +00:00
foldername change
This commit is contained in:
parent
247f9419c6
commit
76ea94a24a
1 changed files with 12 additions and 10 deletions
|
@ -1581,15 +1581,16 @@ namespace UWUVCI_AIO_WPF
|
|||
public static void Loadiine(string gameName)
|
||||
{
|
||||
if (gameName == null || gameName == string.Empty) gameName = "NoName";
|
||||
gameName = gameName.Replace("|", " ");
|
||||
Regex reg = new Regex("[^a-zA-Z0-9 é -]");
|
||||
//string outputPath = Path.Combine(Properties.Settings.Default.InjectionPath, gameName);
|
||||
string outputPath = Path.Combine(Properties.Settings.Default.OutPath, $"[LOADIINE]{reg.Replace(gameName,"")} [{mvvm.prodcode}]");
|
||||
mvvm.foldername = $"[LOADIINE]{reg.Replace(gameName, "")} [{mvvm.prodcode}]";
|
||||
string outputPath = Path.Combine(Properties.Settings.Default.OutPath, $"[LOADIINE] {reg.Replace(gameName,"")} [{mvvm.prodcode}]");
|
||||
mvvm.foldername = $"[LOADIINE] {reg.Replace(gameName, "")} [{mvvm.prodcode}]";
|
||||
int i = 0;
|
||||
while (Directory.Exists(outputPath))
|
||||
{
|
||||
outputPath = Path.Combine(Properties.Settings.Default.OutPath, $"[LOADIINE]{reg.Replace(gameName, "")} [{mvvm.prodcode}]_{i}");
|
||||
mvvm.foldername = $"[LOADIINE]{reg.Replace(gameName, "")} [{mvvm.prodcode}]_{i}";
|
||||
outputPath = Path.Combine(Properties.Settings.Default.OutPath, $"[LOADIINE] {reg.Replace(gameName, "")} [{mvvm.prodcode}]_{i}");
|
||||
mvvm.foldername = $"[LOADIINE] {reg.Replace(gameName, "")} [{mvvm.prodcode}]_{i}";
|
||||
i++;
|
||||
}
|
||||
|
||||
|
@ -1615,14 +1616,15 @@ namespace UWUVCI_AIO_WPF
|
|||
mvm.msg = "Creating Outputfolder...";
|
||||
Regex reg = new Regex("[^a-zA-Z0-9 -]");
|
||||
if (gameName == null || gameName == string.Empty) gameName = "NoName";
|
||||
gameName = gameName.Replace("|", " ");
|
||||
//string outputPath = Path.Combine(Properties.Settings.Default.InjectionPath, gameName);
|
||||
string outputPath = Path.Combine(Properties.Settings.Default.OutPath, $"[WUP]{reg.Replace(gameName,"")}");
|
||||
mvvm.foldername = $"[WUP]{reg.Replace(gameName, "")}";
|
||||
string outputPath = Path.Combine(Properties.Settings.Default.OutPath, $"[WUP] {reg.Replace(gameName,"")}");
|
||||
mvvm.foldername = $"[WUP] {reg.Replace(gameName, "")}";
|
||||
int i = 0;
|
||||
while (Directory.Exists(outputPath))
|
||||
{
|
||||
outputPath = Path.Combine(Properties.Settings.Default.OutPath, $"[WUP]{reg.Replace(gameName,"")}_{i}");
|
||||
mvvm.foldername = $"[WUP]{reg.Replace(gameName, "")}_{i}";
|
||||
outputPath = Path.Combine(Properties.Settings.Default.OutPath, $"[WUP] {reg.Replace(gameName,"")}_{i}");
|
||||
mvvm.foldername = $"[WUP] {reg.Replace(gameName, "")}_{i}";
|
||||
i++;
|
||||
}
|
||||
|
||||
|
@ -1993,7 +1995,7 @@ namespace UWUVCI_AIO_WPF
|
|||
retroinject.Start();
|
||||
retroinject.WaitForExit();
|
||||
mvvm.Progress = 30;
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -2017,7 +2019,7 @@ namespace UWUVCI_AIO_WPF
|
|||
mvvm.Progress = 100;
|
||||
throw new Exception("retro");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
mvvm.msg = "Compressing RPX...";
|
||||
RPXcomp(rpxFile); //Compresses the RPX
|
||||
|
|
Loading…
Reference in a new issue