From b23f88b8a5e94cffa68723cdca605e93d7504042 Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Wed, 10 Jun 2026 13:43:09 -0500 Subject: [PATCH] more debug --- packages/game/JSExport/GameInterface.cs | 5 +++++ packages/game/Models/BlitzFileProvider.cs | 14 ++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/packages/game/JSExport/GameInterface.cs b/packages/game/JSExport/GameInterface.cs index 0e71527f2..27e1ff3ab 100644 --- a/packages/game/JSExport/GameInterface.cs +++ b/packages/game/JSExport/GameInterface.cs @@ -31,7 +31,12 @@ public partial class GameInterface Console.WriteLine("GameInterface constructor called"); provider = new(directory, map, temp); + + Console.WriteLine("Provider created"); + files = [.. provider.Files.Keys]; + + Console.WriteLine("Files loaded"); } readonly Dictionary texturePaths = new(); diff --git a/packages/game/Models/BlitzFileProvider.cs b/packages/game/Models/BlitzFileProvider.cs index 89f4bb777..275280792 100644 --- a/packages/game/Models/BlitzFileProvider.cs +++ b/packages/game/Models/BlitzFileProvider.cs @@ -32,15 +32,29 @@ public partial class BlitzFileProvider : DefaultFileProvider pathComparer: StringComparer.OrdinalIgnoreCase ) { + Console.WriteLine("BlitzFileProvider constructor called"); + MappingsContainer = new FileUsmapTypeMappingsProvider(map); + Console.WriteLine("MappingsContainer initialized"); + Initialize(); + + Console.WriteLine("Initialize called"); + Mount(); + Console.WriteLine("Mount called"); + string oodlePath = $"{temp}/oodle.so"; OodleHelper.DownloadOodleDll(ref oodlePath!); + + Console.WriteLine("DownloadOodleDll called"); + OodleHelper.Initialize(oodlePath); + Console.WriteLine("Initialize called"); + if (TryGetGameFile("Blitz/AssetRegistry.bin", out var file)) { var bytes = file.Read();