From 088b8ac045bf9cf0373121479621eb1dd955337f Mon Sep 17 00:00:00 2001 From: Louve <33836535+Rackover@users.noreply.github.com> Date: Wed, 27 Jul 2022 17:06:11 +0200 Subject: [PATCH] Use correct DB thread for structured data loading (#392) Co-authored-by: rackover --- src/Components/Modules/StructuredData.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Components/Modules/StructuredData.cpp b/src/Components/Modules/StructuredData.cpp index ff938b9f..58184eb0 100644 --- a/src/Components/Modules/StructuredData.cpp +++ b/src/Components/Modules/StructuredData.cpp @@ -198,7 +198,8 @@ namespace Components // First check if all versions are present for (int i = 156;; ++i) { - FileSystem::File definition(Utils::String::VA("%s/%d.json", filename.data(), i)); + // We're on DB thread (OnLoad) so use DB thread for FS + FileSystem::File definition(Utils::String::VA("%s/%d.json", filename.data(), i), Game::FsThread::FS_THREAD_DATABASE); if (!definition.exists()) break; std::vector> enumContainer;