mirror of
https://github.com/4sval/FModel.git
synced 2026-04-22 09:38:03 -05:00
Update GameSelectorViewModel.cs
This commit is contained in:
parent
45f46015e8
commit
5a6e823099
|
|
@ -104,7 +104,7 @@ namespace FModel.ViewModels
|
|||
|
||||
private DetectedGame GetMojangGame(string gameName, string pakDirectory)
|
||||
{
|
||||
_launcherSettings ??= GetDataLauncherInstalls<LauncherSettings>("\\.minecraft_dungeons\\launcher_settings.json");
|
||||
_launcherSettings ??= GetDataLauncherInstalls<LauncherSettings>("\\.minecraft\\launcher_settings.json");
|
||||
if (_launcherSettings is {ProductLibraryDir: { }})
|
||||
return new DetectedGame {GameName = gameName, GameDirectory = $"{_launcherSettings.ProductLibraryDir}{pakDirectory}"};
|
||||
|
||||
|
|
@ -183,4 +183,4 @@ namespace FModel.ViewModels
|
|||
}
|
||||
#pragma warning restore 649
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user