mirror of
https://github.com/4sval/FModel.git
synced 2026-03-21 17:24:26 -05:00
Disable all UWP functions due to crashing issue
This commit is contained in:
parent
1f464f6393
commit
52fba4e50c
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user