mirror of
https://github.com/4sval/FModel.git
synced 2026-03-22 01:34:37 -05:00
Merge pull request #198 from sirvibegodlol/master
Fixes Minecraft Dungeons detection and adds more Quick Directories.
This commit is contained in:
commit
bf79ca5f12
|
|
@ -354,7 +354,11 @@ namespace FModel.Settings
|
|||
{
|
||||
FGame.Dungeons, new List<CustomDirectory>
|
||||
{
|
||||
new("Levels"), "Dungeons/Content/data/Lovika/Levels"),
|
||||
new("Friendlies"), "Dungeons/Content/Actor/Characters/Friendlies",
|
||||
new("Skins"), "Dungeons/Content/Actor/Characters/Player/Master/Skins",
|
||||
new("Strings", "Dungeons/Content/Localization/")
|
||||
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
@ -532,4 +536,4 @@ namespace FModel.Settings
|
|||
set => SetProperty(ref _textureExportFormat, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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