From 45ed46fa09159f782c5d20a4330b4eb7cfcdc253 Mon Sep 17 00:00:00 2001 From: luc-git <102831178+luc-git@users.noreply.github.com> Date: Fri, 28 Apr 2023 21:58:24 +0200 Subject: [PATCH] Add custom textures loading in EmuThread --- src/citra_qt/bootmanager.cpp | 4 ++++ src/core/core.cpp | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/citra_qt/bootmanager.cpp b/src/citra_qt/bootmanager.cpp index d63ae36b9..8499371f0 100644 --- a/src/citra_qt/bootmanager.cpp +++ b/src/citra_qt/bootmanager.cpp @@ -62,6 +62,10 @@ void EmuThread::run() { const auto scope = core_context.Acquire(); Core::System& system = Core::System::GetInstance(); + if (Settings::values.custom_textures) { + system.CustomTexManager().FindCustomTextures(); + } + if (Settings::values.preload_textures) { emit LoadProgress(VideoCore::LoadCallbackStage::Preload, 0, 0); system.CustomTexManager().PreloadTextures( diff --git a/src/core/core.cpp b/src/core/core.cpp index c1c5a0ebe..2e7783d5a 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -320,9 +320,6 @@ System::ResultStatus System::Load(Frontend::EmuWindow& emu_window, const std::st } perf_stats = std::make_unique(title_id); - if (Settings::values.custom_textures) { - custom_tex_manager->FindCustomTextures(); - } if (Settings::values.dump_textures) { custom_tex_manager->WriteConfig(); }