Use correct DB thread for structured data loading (#392)
Co-authored-by: rackover <roxanne@thegamebakers.com>
This commit is contained in:
parent
14181d04d1
commit
088b8ac045
@ -198,7 +198,8 @@ namespace Components
|
|||||||
// First check if all versions are present
|
// First check if all versions are present
|
||||||
for (int i = 156;; ++i)
|
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;
|
if (!definition.exists()) break;
|
||||||
|
|
||||||
std::vector<std::vector<std::string>> enumContainer;
|
std::vector<std::vector<std::string>> enumContainer;
|
||||||
|
Loading…
Reference in New Issue
Block a user