diff --git a/Source/AuRTEntrypoint.cpp b/Source/AuRTEntrypoint.cpp index e43041b2..e9d9a5fc 100644 --- a/Source/AuRTEntrypoint.cpp +++ b/Source/AuRTEntrypoint.cpp @@ -90,10 +90,10 @@ static void Init() Aurora::Console::Init(); Aurora::IO::FS::InitResources(); Aurora::IO::Init(); + Aurora::Grug::InitGrug(); Aurora::Console::Init2(); Aurora::HWInfo::Init(); Aurora::Telemetry::Init(); - Aurora::Grug::InitGrug(); Aurora::Debug::InitDebug(); Aurora::Locale::Init(); Aurora::CmdLine::Init(); diff --git a/Source/IO/FS/FS.NT.cpp b/Source/IO/FS/FS.NT.cpp index ad2c9196..5c6ea00c 100644 --- a/Source/IO/FS/FS.NT.cpp +++ b/Source/IO/FS/FS.NT.cpp @@ -344,6 +344,8 @@ namespace Aurora::IO::FS return false; } + Aurora::RuntimeWaitForSecondaryTick(); + auto translatedPath = Locale::ConvertFromUTF8(NormalizePathRet(path)); if (translatedPath.empty()) { @@ -413,6 +415,8 @@ namespace Aurora::IO::FS CreateDirectories(pathExpandedA, true); + Aurora::RuntimeWaitForSecondaryTick(); + return ::MoveFileW(pathSrcExpanded.c_str(), pathExpanded.c_str()); } diff --git a/Source/IO/FS/FS.Unix.cpp b/Source/IO/FS/FS.Unix.cpp index c6b04610..b396fef8 100755 --- a/Source/IO/FS/FS.Unix.cpp +++ b/Source/IO/FS/FS.Unix.cpp @@ -361,6 +361,8 @@ namespace Aurora::IO::FS return false; } + Aurora::RuntimeWaitForSecondaryTick(); + if (::stat(pathExpanded.c_str(), &s) == -1) { if (errno == ENOENT) @@ -404,6 +406,8 @@ namespace Aurora::IO::FS return false; } + Aurora::RuntimeWaitForSecondaryTick(); + auto pathSrcExpanded = NormalizePathRet(src); auto pathExpanded = NormalizePathRet(dest);