mirror of
https://github.com/4sval/FModel.git
synced 2026-12-05 15:56:04 -06:00
bump snooper
This commit is contained in:
Submodule CUE4Parse updated: bc43c1f0a4...b60d764f9d
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
|
||||
2
Snooper
2
Snooper
Submodule Snooper updated: 0814c23b63...3ad5b935cd
Reference in New Issue
Block a user