From 6d5b3f801ebb6a304ef80e3e24660b52eb09d6e6 Mon Sep 17 00:00:00 2001 From: 4sval Date: Thu, 18 Aug 2022 14:20:34 +0200 Subject: [PATCH] fallback --- CUE4Parse | 2 +- FModel/ViewModels/CUE4ParseViewModel.cs | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CUE4Parse b/CUE4Parse index fe4f1d04..22ad6c42 160000 --- a/CUE4Parse +++ b/CUE4Parse @@ -1 +1 @@ -Subproject commit fe4f1d044dc2b8a3ebfaf6568ea65356a86bd83d +Subproject commit 22ad6c42a27071cd91fdad71f2a02e8597031de9 diff --git a/FModel/ViewModels/CUE4ParseViewModel.cs b/FModel/ViewModels/CUE4ParseViewModel.cs index a0369143..da770872 100644 --- a/FModel/ViewModels/CUE4ParseViewModel.cs +++ b/FModel/ViewModels/CUE4ParseViewModel.cs @@ -356,10 +356,11 @@ await _threadWorkerView.Begin(cancellationToken => break; } } - else + + if (Provider.MappingsContainer == null) { var latestUsmaps = new DirectoryInfo(mappingsFolder).GetFiles("*_oo.usmap"); - if (Provider.MappingsContainer != null || latestUsmaps.Length <= 0) return; + if (latestUsmaps.Length <= 0) return; var latestUsmapInfo = latestUsmaps.OrderBy(f => f.LastWriteTime).Last(); Provider.MappingsContainer = new FileUsmapTypeMappingsProvider(latestUsmapInfo.FullName);