diff --git a/lib/sead b/lib/sead index 5327840d..9abef802 160000 --- a/lib/sead +++ b/lib/sead @@ -1 +1 @@ -Subproject commit 5327840d10d79c9adb61e2d2575447cbaea67ea6 +Subproject commit 9abef802999832e16caa2bab8e7bf5cb10c79bba diff --git a/src/KingSystem/Framework/frmWorkerSupportThreadMgr.cpp b/src/KingSystem/Framework/frmWorkerSupportThreadMgr.cpp index 53dea002..4880df32 100644 --- a/src/KingSystem/Framework/frmWorkerSupportThreadMgr.cpp +++ b/src/KingSystem/Framework/frmWorkerSupportThreadMgr.cpp @@ -73,7 +73,7 @@ void WorkerSupportThreadMgr::initSleeperThreads() { } void WorkerSupportThreadMgr::sleeperThreadFun(sead::Thread* thread, sead::MessageQueue::Element) { - sead::Thread::sleep(sead::TickSpan::fromMicroSeconds(250)); + sead::Thread::sleep(sead::TickSpan::makeFromMicroSeconds(250)); } static int getWorkerIdx(u32 id) { diff --git a/src/KingSystem/Resource/resArchiveWork.cpp b/src/KingSystem/Resource/resArchiveWork.cpp index 617bacfe..0838b7ec 100644 --- a/src/KingSystem/Resource/resArchiveWork.cpp +++ b/src/KingSystem/Resource/resArchiveWork.cpp @@ -44,7 +44,7 @@ OverlayArena* ArchiveWork::getArena() const { bool ArchiveWork::waitForEvent(u32 milliseconds) { if (milliseconds != 0) { - const auto duration = sead::TickSpan::fromMilliSeconds(milliseconds); + const auto duration = sead::TickSpan::makeFromMilliSeconds(milliseconds); if (!mEvent->wait(duration)) return false; } else { diff --git a/src/KingSystem/Utils/Thread/TaskMgr.cpp b/src/KingSystem/Utils/Thread/TaskMgr.cpp index b5eec563..6f6c58c3 100644 --- a/src/KingSystem/Utils/Thread/TaskMgr.cpp +++ b/src/KingSystem/Utils/Thread/TaskMgr.cpp @@ -205,7 +205,7 @@ ManagedTask* TaskMgr::fetchIdleTask_(bool retry_until_success) { if (!retry_until_success) return nullptr; - mEvent2.wait(sead::TickSpan::fromMilliSeconds(1)); + mEvent2.wait(sead::TickSpan::makeFromMilliSeconds(1)); } } diff --git a/src/KingSystem/Utils/Thread/TaskQueueBase.cpp b/src/KingSystem/Utils/Thread/TaskQueueBase.cpp index 49e91f24..0e8853c8 100644 --- a/src/KingSystem/Utils/Thread/TaskQueueBase.cpp +++ b/src/KingSystem/Utils/Thread/TaskQueueBase.cpp @@ -9,7 +9,7 @@ namespace ksys::util { -static const auto cSleepSpan = sead::TickSpan::fromMicroSeconds(10); +static const auto cSleepSpan = sead::TickSpan::makeFromMicroSeconds(10); TaskQueueBase::TaskQueueBase(sead::Heap* heap) : mQueueEmptyEvent(heap) { mActiveTasks.initOffset(Task::getListNodeOffset()); @@ -244,7 +244,7 @@ void TaskQueueBase::blockTasksAndReloadThreads(u8 id) { thread.pause(); } - const auto sleep_duration = sead::TickSpan::fromMilliSeconds(1); + const auto sleep_duration = sead::TickSpan::makeFromMilliSeconds(1); while (!areAllThreadsPaused()) sead::Thread::sleep(sleep_duration);