name fix -> wads work again & new filter optiojn wii

This commit is contained in:
NicoAICP 2020-06-26 23:23:10 +02:00
parent 307489e6d0
commit 481d4f893f
8 changed files with 11 additions and 3 deletions

View file

@ -1835,7 +1835,7 @@ namespace UWUVCI_AIO_WPF
private static void EditXML(string gameNameOr, int index, string code)
{
string gameName = string.Empty;
if(gameNameOr != string.Empty && gameNameOr != null)
if(gameNameOr != null || !String.IsNullOrWhiteSpace(gameNameOr))
{
gameName = gameNameOr;
@ -1847,6 +1847,7 @@ namespace UWUVCI_AIO_WPF
}
string metaXml = Path.Combine(baseRomPath, "meta", "meta.xml");
string appXml = Path.Combine(baseRomPath, "code", "app.xml");
Random random = new Random();

View file

@ -1548,11 +1548,12 @@ namespace UWUVCI_AIO_WPF
case GameConsoles.WII:
if(test == GameConsoles.GCN)
{
dialog.Filter = "GCN ROM (*.iso; *.gcm) | *.iso; *.gcm";
dialog.Filter = "GC ROM (*.iso; *.gcm; *.nkit.iso; *.nkit.gcz) | *.iso; *.gcm; *.nkit.iso; *.nkit.gcz";
}
else
{
dialog.Filter = "Wii ROM (*.iso; *.wbfs; *.nkit.gcz; *.nkit.iso) | *.iso; *.wbfs; *.nkit.gcz; *.nkit.iso|Wii Homebrew (*.dol) | *.dol|Wii Channel (*.wad) | *.wad";
dialog.Filter = "All Types (*.iso; *.wbfs; *.nkit.gcz; *.nkit.iso; *.dol; *.wad) | *.iso; *.wbfs; *.nkit.gcz; *.nkit.iso; *.dol; *.wad|Wii ROM (*.iso; *.wbfs; *.nkit.gcz; *.nkit.iso) | *.iso; *.wbfs; *.nkit.gcz; *.nkit.iso|Wii Homebrew (*.dol) | *.dol|Wii Channel (*.wad) | *.wad";
// dialog.Filter = "Wii ROM (*.iso; *.wbfs; *.nkit.gcz; *.nkit.iso) | *.iso; *.wbfs; *.nkit.gcz; *.nkit.iso|Wii Homebrew (*.dol) | *.dol|Wii Channel (*.wad) | *.wad";
}
break;

View file

@ -140,6 +140,7 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
{
mvm.GameConfiguration.TGADrc.ImgPath = null;
}
mvm.GameConfiguration.GameName = gn.Text;
mvm.Inject(false);
}

View file

@ -165,6 +165,7 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
{
mvm.GameConfiguration.TGADrc.ImgPath = null;
}
mvm.GameConfiguration.GameName = gn.Text;
mvm.Inject(false);
mvm.PokePatch = false;
rbRDF.IsChecked = true;

View file

@ -233,6 +233,7 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
{
mvm.GameConfiguration.TGADrc.ImgPath = null;
}
mvm.GameConfiguration.GameName = gn.Text;
mvm.GC = true;
mvm.Inject(cd);
mvm.Index = 1;

View file

@ -162,6 +162,7 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
{
mvm.GameConfiguration.TGADrc.ImgPath = null;
}
mvm.GameConfiguration.GameName = gn.Text;
mvm.Inject(false);
}

View file

@ -181,6 +181,7 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
{
mvm.GameConfiguration.TGADrc.ImgPath = null;
}
mvm.GameConfiguration.GameName = gn.Text;
mvm.Inject(false);
}

View file

@ -306,6 +306,7 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
{
mvm.LR = false;
}
mvm.GameConfiguration.GameName = gn.Text;
mvm.Inject(false);
}