From 9591b6ad2eddd1660d2b1886763fe00391ce3299 Mon Sep 17 00:00:00 2001 From: Asval Date: Tue, 13 Oct 2026 18:50:44 +0200 Subject: [PATCH] bump snooper --- CUE4Parse | 2 +- FModel/MainWindow.xaml.cs | 1 - FModel/ViewModels/ApplicationViewModel.cs | 15 --------------- FModel/ViewModels/CUE4ParseViewModel.cs | 2 +- FModel/ViewModels/SnooperViewModel.cs | 5 +++-- Snooper | 2 +- 6 files changed, 6 insertions(+), 21 deletions(-) diff --git a/CUE4Parse b/CUE4Parse index bc43c1f0..b60d764f 160000 --- a/CUE4Parse +++ b/CUE4Parse @@ -1 +1 @@ -Subproject commit bc43c1f0a40d1fc8495c8af62288305c0a652650 +Subproject commit b60d764f9dd7f67f92143772ee5914e7c97a4fc9 diff --git a/FModel/MainWindow.xaml.cs b/FModel/MainWindow.xaml.cs index b2f97955..10128d91 100644 --- a/FModel/MainWindow.xaml.cs +++ b/FModel/MainWindow.xaml.cs @@ -122,7 +122,6 @@ public partial class MainWindow _applicationView.CUE4Parse.InitMappings(), ApplicationViewModel.InitDetex(), ApplicationViewModel.InitVgmStream(), - ApplicationViewModel.InitImGuiSettings(newOrUpdated), Task.Run(() => { if (UserSettings.Default.DiscordRpc == EDiscordRpc.Always) diff --git a/FModel/ViewModels/ApplicationViewModel.cs b/FModel/ViewModels/ApplicationViewModel.cs index ad01bb8f..a4a65b5b 100644 --- a/FModel/ViewModels/ApplicationViewModel.cs +++ b/FModel/ViewModels/ApplicationViewModel.cs @@ -283,21 +283,6 @@ public class ApplicationViewModel : ViewModel } } - public static async Task InitImGuiSettings(bool forceDownload) - { - const string imgui = "snooper.ini"; - var imguiPath = Path.Combine(UserSettings.Default.OutputDirectory, ".data", imgui); - - if (File.Exists(imgui)) File.Move(imgui, imguiPath, true); - if (File.Exists(imguiPath) && !forceDownload) return; - - await ApplicationService.ApiEndpointView.DownloadFileAsync($"https://cdn.fmodel.app/d/configurations/{imgui}", imguiPath); - if (new FileInfo(imguiPath).Length == 0) - { - FLogger.Append(ELog.Error, () => FLogger.Text("Could not download ImGui settings", Constants.WHITE, true)); - } - } - public static async Task InitOodle() { if (!Avx2.IsSupported) diff --git a/FModel/ViewModels/CUE4ParseViewModel.cs b/FModel/ViewModels/CUE4ParseViewModel.cs index 669bb2fc..1a9dc0b0 100644 --- a/FModel/ViewModels/CUE4ParseViewModel.cs +++ b/FModel/ViewModels/CUE4ParseViewModel.cs @@ -1587,7 +1587,7 @@ public class CUE4ParseViewModel : ViewModel pkg.Name.Contains("/RenderSwitch_Materials/", StringComparison.OrdinalIgnoreCase) || pkg.Name.Contains("/MI_BPTile/", StringComparison.OrdinalIgnoreCase))): { - SnooperViewModel.Instance.Load(pointer.Object.Value); + SnooperViewModel.Instance.Load(pointer.Object.Value, cancellationToken); return true; } case UStaticMesh when HasFlag(bulk, EBulkType.Meshes): diff --git a/FModel/ViewModels/SnooperViewModel.cs b/FModel/ViewModels/SnooperViewModel.cs index 946eb6f3..ca4d3e1f 100644 --- a/FModel/ViewModels/SnooperViewModel.cs +++ b/FModel/ViewModels/SnooperViewModel.cs @@ -1,6 +1,7 @@ using System; using System.Numerics; using System.Runtime.InteropServices; +using System.Threading; using System.Windows; using System.Windows.Forms; using CUE4Parse.GameTypes.Nascar.Assets.Exports; @@ -57,7 +58,7 @@ public class SnooperViewModel : ViewModel, IDisposable _environment = new EnvironmentActor(); } - public void Load(UObject obj) + public void Load(UObject obj, CancellationToken ct = default) { SetOptions(obj); @@ -71,7 +72,7 @@ public class SnooperViewModel : ViewModel, IDisposable UAnimationAsset anim => new MeshActor(anim), UMaterialInterface mat => new MaterialActor(mat), UBlueprintGeneratedClass bp => new BlueprintActor(bp), - UWorld w => new WorldActor(w, ApplicationService.ApplicationView.Status), + UWorld w => new WorldActor(w, ApplicationService.ApplicationView.Status, ct), _ => null }; diff --git a/Snooper b/Snooper index 0814c23b..3ad5b935 160000 --- a/Snooper +++ b/Snooper @@ -1 +1 @@ -Subproject commit 0814c23b63799da66bf835df02cf1522acbe61aa +Subproject commit 3ad5b935cd07cc4b0ba05f452a5b0f6bea0778b6