Disable all UWP functions due to crashing issue

This commit is contained in:
GMatrixGames 2020-10-03 14:32:38 -04:00
parent 1f464f6393
commit 52fba4e50c
No known key found for this signature in database
GPG Key ID: 19B7F96FB9AF302F
2 changed files with 17 additions and 17 deletions

View File

@ -160,13 +160,13 @@ namespace FModel.Utils
"Minecraft Dungeons not found");
}
DebugHelper.WriteLine("{0} {1} {2}", "[FModel]", "[launcher_settings.json]", "Launcher version not found, attempting to find Microsoft Store installation.");
//DebugHelper.WriteLine("{0} {1} {2}", "[FModel]", "[launcher_settings.json]", "Launcher version not found, attempting to find Microsoft Store installation.");
var mcDungeonsUWPPath = GetUWPPakFilesPath("Microsoft.Lovika_8wekyb3d8bbwe");
if (!string.IsNullOrEmpty(mcDungeonsUWPPath))
{
return $"{mcDungeonsUWPPath}\\Dungeons\\Content\\Paks";
}
//var mcDungeonsUWPPath = GetUWPPakFilesPath("Microsoft.Lovika_8wekyb3d8bbwe");
//if (!string.IsNullOrEmpty(mcDungeonsUWPPath))
//{
// return $"{mcDungeonsUWPPath}\\Dungeons\\Content\\Paks";
//}
return string.Empty;
}

View File

@ -81,12 +81,12 @@ namespace FModel.Windows.Launcher
ComboBoxVm.gamesCbViewModel.Add(new ComboBoxViewModel { Id = i++, Content = "Battle Breakers", Property = battlebreakersFilesPath });
}
string spellbreakerFilesPath = Paks.GetSpellbreakPakFilesPath();
if (!string.IsNullOrEmpty(spellbreakerFilesPath))
string spellbreakFilesPath = Paks.GetSpellbreakPakFilesPath();
if (!string.IsNullOrEmpty(spellbreakFilesPath))
{
DebugHelper.WriteLine("{0} {1} {2}", "[FModel]", "[LauncherInstalled.dat]", $"Spellbreak found at {spellbreakerFilesPath}");
DebugHelper.WriteLine("{0} {1} {2}", "[FModel]", "[LauncherInstalled.dat]", $"Spellbreak found at {spellbreakFilesPath}");
Globals.gNotifier.ShowCustomMessage("Spellbreak", Properties.Resources.PathAutoDetected, "/FModel;component/Resources/spellbreak.ico");
ComboBoxVm.gamesCbViewModel.Add(new ComboBoxViewModel { Id = i++, Content = "Spellbreak", Property = spellbreakerFilesPath });
ComboBoxVm.gamesCbViewModel.Add(new ComboBoxViewModel { Id = i++, Content = "Spellbreak", Property = spellbreakFilesPath });
}
string theCyclePath = Paks.GetTheCyclePakFilesPath();
@ -97,14 +97,14 @@ namespace FModel.Windows.Launcher
ComboBoxVm.gamesCbViewModel.Add(new ComboBoxViewModel { Id = i++, Content = "The Cycle (Early Access)", Property = theCyclePath });
}
string sod2Path = Paks.GetStateOfDecay2PakFilesPath();
if (!string.IsNullOrEmpty(sod2Path))
{
//string sod2Path = Paks.GetStateOfDecay2PakFilesPath();
//if (!string.IsNullOrEmpty(sod2Path))
//{
// WIP
DebugHelper.WriteLine("{0} {1} {2}", "[FModel]", "[UWP / LauncherInstalled.dat]", $"State of Decay 2 found at {sod2Path}");
Globals.gNotifier.ShowCustomMessage("State of Decay 2", Properties.Resources.PathAutoDetected, "/FModel;component/Resources/sod2.ico");
ComboBoxVm.gamesCbViewModel.Add(new ComboBoxViewModel { Id = i++, Content = "State of Decay 2", Property = sod2Path });
}
// DebugHelper.WriteLine("{0} {1} {2}", "[FModel]", "[UWP / LauncherInstalled.dat]", $"State of Decay 2 found at {sod2Path}");
// Globals.gNotifier.ShowCustomMessage("State of Decay 2", Properties.Resources.PathAutoDetected, "/FModel;component/Resources/sod2.ico");
// ComboBoxVm.gamesCbViewModel.Add(new ComboBoxViewModel { Id = i++, Content = "State of Decay 2", Property = sod2Path });
//}
Games_CbBox.SelectedItem = ComboBoxVm.gamesCbViewModel.Where(x => x.Property.ToString() == Properties.Settings.Default.PakPath).FirstOrDefault();
}