Add custom textures loading in EmuThread

This commit is contained in:
luc-git 2023-04-28 21:58:24 +02:00
parent 2d14dc49f7
commit 45ed46fa09
2 changed files with 4 additions and 3 deletions

View File

@ -62,6 +62,10 @@ void EmuThread::run() {
const auto scope = core_context.Acquire(); const auto scope = core_context.Acquire();
Core::System& system = Core::System::GetInstance(); Core::System& system = Core::System::GetInstance();
if (Settings::values.custom_textures) {
system.CustomTexManager().FindCustomTextures();
}
if (Settings::values.preload_textures) { if (Settings::values.preload_textures) {
emit LoadProgress(VideoCore::LoadCallbackStage::Preload, 0, 0); emit LoadProgress(VideoCore::LoadCallbackStage::Preload, 0, 0);
system.CustomTexManager().PreloadTextures( system.CustomTexManager().PreloadTextures(

View File

@ -320,9 +320,6 @@ System::ResultStatus System::Load(Frontend::EmuWindow& emu_window, const std::st
} }
perf_stats = std::make_unique<PerfStats>(title_id); perf_stats = std::make_unique<PerfStats>(title_id);
if (Settings::values.custom_textures) {
custom_tex_manager->FindCustomTextures();
}
if (Settings::values.dump_textures) { if (Settings::values.dump_textures) {
custom_tex_manager->WriteConfig(); custom_tex_manager->WriteConfig();
} }