diff --git a/UWUVCI AIO WPF/Classes/ToolCheck.cs b/UWUVCI AIO WPF/Classes/ToolCheck.cs
index cbb0cbe..9081edb 100644
--- a/UWUVCI AIO WPF/Classes/ToolCheck.cs
+++ b/UWUVCI AIO WPF/Classes/ToolCheck.cs
@@ -42,7 +42,7 @@ namespace UWUVCI_AIO_WPF.Classes
"BASE.zip",
"tga2png.exe",
"iconTex.tga",
- "wii-vnc.exe"
+ "wii-vmc.exe"
};
public static bool DoesToolsFolderExist()
diff --git a/UWUVCI AIO WPF/Models/MainViewModel.cs b/UWUVCI AIO WPF/Models/MainViewModel.cs
index a0d2da1..4b8c78b 100644
--- a/UWUVCI AIO WPF/Models/MainViewModel.cs
+++ b/UWUVCI AIO WPF/Models/MainViewModel.cs
@@ -1586,5 +1586,41 @@ namespace UWUVCI_AIO_WPF
return true;
}
+ public string getInternalName(string OpenGame)
+ {
+ string ret = "";
+ using (var reader = new BinaryReader(File.OpenRead(OpenGame)))
+ {
+ reader.BaseStream.Position = 0x00;
+ char TempChar;
+ //WBFS Check
+ if (new FileInfo(OpenGame).Extension.Contains("wbfs")) //Performs actions if the header indicates a WBFS file
+ {
+
+ reader.BaseStream.Position = 0x200;
+
+ reader.BaseStream.Position = 0x218;
+
+
+ reader.BaseStream.Position = 0x220;
+ while ((int)(TempChar = reader.ReadChar()) != 0) ret = ret + TempChar;
+
+ }
+ else
+ {
+
+
+
+ reader.BaseStream.Position = 0x18;
+
+ reader.BaseStream.Position = 0x20;
+ while ((int)(TempChar = reader.ReadChar()) != 0) ret = ret + TempChar;
+
+
+
+ }
+ }
+ return ret;
+ }
}
}
diff --git a/UWUVCI AIO WPF/UI/Frames/InjectFrames/Configurations/OtherConfigs - Kopieren - Kopieren.xaml b/UWUVCI AIO WPF/UI/Frames/InjectFrames/Configurations/OtherConfigs - Kopieren - Kopieren.xaml
index 34640ff..74bc80f 100644
--- a/UWUVCI AIO WPF/UI/Frames/InjectFrames/Configurations/OtherConfigs - Kopieren - Kopieren.xaml
+++ b/UWUVCI AIO WPF/UI/Frames/InjectFrames/Configurations/OtherConfigs - Kopieren - Kopieren.xaml
@@ -15,7 +15,7 @@
-
+
diff --git a/UWUVCI AIO WPF/UI/Frames/InjectFrames/Configurations/OtherConfigs - Kopieren - Kopieren.xaml.cs b/UWUVCI AIO WPF/UI/Frames/InjectFrames/Configurations/OtherConfigs - Kopieren - Kopieren.xaml.cs
index 29d6f0b..3ba048c 100644
--- a/UWUVCI AIO WPF/UI/Frames/InjectFrames/Configurations/OtherConfigs - Kopieren - Kopieren.xaml.cs
+++ b/UWUVCI AIO WPF/UI/Frames/InjectFrames/Configurations/OtherConfigs - Kopieren - Kopieren.xaml.cs
@@ -52,7 +52,11 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
}
}
-
+ string rom = mvm.getInternalName(mvm.RomPath);
+ Regex reg = new Regex("[*'\",_^@:;?!<>|µ~#°²³]");
+ gn.Text = reg.Replace(rom, string.Empty);
+ mvm.GameConfiguration.GameName = reg.Replace(rom, string.Empty);
+
}
private void InjectGame(object sender, RoutedEventArgs e)
diff --git a/UWUVCI AIO WPF/UI/Frames/InjectFrames/Configurations/OtherConfigs - Kopieren.xaml b/UWUVCI AIO WPF/UI/Frames/InjectFrames/Configurations/OtherConfigs - Kopieren.xaml
index b47b002..da7d337 100644
--- a/UWUVCI AIO WPF/UI/Frames/InjectFrames/Configurations/OtherConfigs - Kopieren.xaml
+++ b/UWUVCI AIO WPF/UI/Frames/InjectFrames/Configurations/OtherConfigs - Kopieren.xaml
@@ -15,7 +15,7 @@
-
+
diff --git a/UWUVCI AIO WPF/UI/Frames/InjectFrames/Configurations/WiiConfig.xaml.cs b/UWUVCI AIO WPF/UI/Frames/InjectFrames/Configurations/WiiConfig.xaml.cs
index ff31238..864109e 100644
--- a/UWUVCI AIO WPF/UI/Frames/InjectFrames/Configurations/WiiConfig.xaml.cs
+++ b/UWUVCI AIO WPF/UI/Frames/InjectFrames/Configurations/WiiConfig.xaml.cs
@@ -56,8 +56,14 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
mvm.CanInject = true;
}
+ string rom = mvm.getInternalName(mvm.RomPath);
+ Regex reg = new Regex("[*'\",_^@:;?!<>|µ~#°²³]");
+ gn.Text = reg.Replace(rom, string.Empty);
+ mvm.GameConfiguration.GameName = reg.Replace(rom, string.Empty);
+
}
+
}
private void InjectGame(object sender, RoutedEventArgs e)