mirror of
https://github.com/4sval/FModel.git
synced 2026-06-30 20:00:35 -05:00
Battle Breakers multiple directory support
This commit is contained in:
parent
d5e33f1224
commit
bfe648f06c
|
|
@ -1 +1 @@
|
|||
Subproject commit 70d417009d729260486d905eb5d10f45c78cfec7
|
||||
Subproject commit aca9f9ba95dd74ea1694fb483e798043f58fc3e2
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
using System;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Windows;
|
||||
|
|
|
|||
|
|
@ -205,7 +205,7 @@ namespace FModel.Settings
|
|||
{FGame.Dungeons, EGame.GAME_UE4_LATEST},
|
||||
{FGame.WorldExplorers, EGame.GAME_UE4_LATEST},
|
||||
{FGame.g3, EGame.GAME_UE4_22},
|
||||
{FGame.StateOfDecay2, EGame.GAME_UE4_LATEST},
|
||||
{FGame.StateOfDecay2, EGame.GAME_UE4_13},
|
||||
{FGame.Prospect, EGame.GAME_UE4_LATEST},
|
||||
{FGame.Indiana, EGame.GAME_UE4_LATEST},
|
||||
{FGame.RogueCompany, EGame.GAME_UE4_LATEST},
|
||||
|
|
|
|||
|
|
@ -82,8 +82,18 @@ namespace FModel.ViewModels
|
|||
default:
|
||||
{
|
||||
Game = gameDirectory.SubstringBeforeLast("\\Content\\Paks").SubstringAfterLast("\\").ToEnum(FGame.Unknown);
|
||||
Provider = new DefaultFileProvider(gameDirectory, SearchOption.TopDirectoryOnly, true,
|
||||
UserSettings.Default.OverridedGame[Game], UserSettings.Default.OverridedUEVersion[Game]);
|
||||
|
||||
if (Game == FGame.WorldExplorers)
|
||||
{
|
||||
Provider = new DefaultFileProvider(new DirectoryInfo(gameDirectory), new List<DirectoryInfo> {new(gameDirectory.SubstringBeforeLast('\\') + "\\EmbeddedPaks\\")},
|
||||
SearchOption.TopDirectoryOnly, true, UserSettings.Default.OverridedGame[Game], UserSettings.Default.OverridedUEVersion[Game]);
|
||||
}
|
||||
else
|
||||
{
|
||||
Provider = new DefaultFileProvider(gameDirectory, SearchOption.TopDirectoryOnly, true,
|
||||
UserSettings.Default.OverridedGame[Game], UserSettings.Default.OverridedUEVersion[Game]);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
@ -202,7 +212,7 @@ namespace FModel.ViewModels
|
|||
foreach (var file in GameDirectory.DirectoryFiles)
|
||||
{
|
||||
cancellationToken.ThrowIfCancellationRequested();
|
||||
if (!(Provider.MountedVfs.FirstOrDefault(x => x.Name == file.Name) is { } vfs))
|
||||
if (Provider.MountedVfs.FirstOrDefault(x => x.Name == file.Name) is not { } vfs)
|
||||
continue;
|
||||
|
||||
file.IsEnabled = true;
|
||||
|
|
|
|||
|
|
@ -12,14 +12,15 @@ namespace FModel.Views.Resources.Converters
|
|||
{
|
||||
return value switch
|
||||
{
|
||||
"Newt" => "Spellbreak",
|
||||
"Fortnite" => "Fortnite",
|
||||
"VALORANT" => "Valorant",
|
||||
"Pewee" => "Rogue Company",
|
||||
"Rosemallow" => "The Outer Worlds",
|
||||
"Catnip" => "Borderlands 3",
|
||||
"AzaleaAlpha" => "The Cycle",
|
||||
"Snoek" => "State of Decay 2",
|
||||
"Rosemallow" => "The Outer Worlds",
|
||||
"WorldExplorersLive" => "Battle Breakers",
|
||||
"Newt" => "Spellbreak",
|
||||
"VALORANT" => "Valorant",
|
||||
"MinecraftDungeons" => "Minecraft Dungeons",
|
||||
"shoebill" => "Star Wars: Jedi Fallen Order",
|
||||
"a99769d95d8f400baad1f67ab5dfe508" => "Core",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user