Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions FModel/Settings/CustomDirectory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ public static IList<CustomDirectory> Default(string gameName)
new("Data Tables", "DeadByDaylight/Content/Data/"),
new("Localization", "DeadByDaylight/Content/Localization/")
};
case "Neverness to Everness":
return new List<CustomDirectory>
{
new("Blueprints", "HT/Content/Blueprints/"),
new("Characters", "HT/Content/Characters"),
new("DataTables", "HT/Content/DataTable/"),
new("Icons", "HT/Content/UI/"),
new("Localization", "HT/Content/Localization/")
};
default:
return new List<CustomDirectory>();
}
Expand Down
21 changes: 21 additions & 0 deletions FModel/ViewModels/GameSelectorViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ private IEnumerable<DirectorySettings> EnumerateDetectedGames()
yield return GetRockstarGamesGame("GTA San Andreas - Definitive Edition", "\\Gameface\\Content\\Paks", EGame.GAME_GTATheTrilogyDefinitiveEdition);
yield return GetRockstarGamesGame("GTA Vice City - Definitive Edition", "\\Gameface\\Content\\Paks", EGame.GAME_GTATheTrilogyDefinitiveEdition);
yield return GetLevelInfiniteGame("tof_launcher", "\\Hotta\\Content\\Paks", EGame.GAME_TowerOfFantasy);
yield return GetNTEGame("Neverness to Everness", "\\Client\\WindowsNoEditor\\HT\\Content\\Paks", EGame.GAME_NevernessToEverness, aesKey: "0x390B40DA3E0805AE7397DFA707E7227DBA06C35E95262E7FFF8F8E60CBC7A69C");
}

private LauncherInstalled _launcherInstalled;
Expand Down Expand Up @@ -303,6 +304,26 @@ private DirectorySettings GetLevelInfiniteGame(string key, string pakDirectory,
return null;
}

private DirectorySettings GetNTEGame(string key, string pakDirectory, EGame ueVersion, string aesKey = "")
{
foreach (var drive in DriveInfo.GetDrives())
{
var rootDir = Path.Combine(drive.Name, "Program Files");
if (!Directory.Exists(rootDir)) continue;

foreach (var dir in Directory.GetDirectories(rootDir))
{
var gameDir = $"{dir}{pakDirectory}";
if (!Directory.Exists(gameDir)) continue;

Log.Debug("Found {GameName} in the registry", key);
return DirectorySettings.Default(key, gameDir, ue: ueVersion, aes: aesKey);
}
}

return null;
}

private T GetDriveLauncherInstalls<T>(string jsonFile)
{
foreach (var drive in DriveInfo.GetDrives())
Expand Down