From fed73fefd6d6174d47d2f771633e13494c0ff0aa Mon Sep 17 00:00:00 2001 From: altalk23 <45172705+altalk23@users.noreply.github.com> Date: Sun, 1 Oct 2023 15:23:48 +0300 Subject: [PATCH] Revert loading layer --- loader/src/hooks/LoadingLayer.cpp | 43 ++++++++++++++----------------- 1 file changed, 19 insertions(+), 24 deletions(-) diff --git a/loader/src/hooks/LoadingLayer.cpp b/loader/src/hooks/LoadingLayer.cpp index 27c158243..00c5e80e2 100644 --- a/loader/src/hooks/LoadingLayer.cpp +++ b/loader/src/hooks/LoadingLayer.cpp @@ -108,7 +108,7 @@ struct CustomLoadingLayer : Modify { } int getTotalStep() { - return 17; + return 18; } void updateLoadingBar() { @@ -137,28 +137,23 @@ struct CustomLoadingLayer : Modify { } // hook - void loadAssets() { - if (m_loadStep == 14) { - switch (m_fields->m_geodeLoadStep) { - case 0: - if (this->skipOnRefresh()) this->setupLoadingMods(); - break; - case 1: - if (this->skipOnRefresh()) this->setupLoaderResources(); - break; - case 2: - this->setupModResources(); - break; - case 3: - default: - LoadingLayer::loadAssets(); - this->updateLoadingBar(); - break; - } - return; - } - this->setSmallText("Loading game resources"); - LoadingLayer::loadAssets(); + void loadAssets() { + switch (m_fields->m_geodeLoadStep) { + case 0: + if (this->skipOnRefresh()) this->setupLoadingMods(); + break; + case 1: + if (this->skipOnRefresh()) this->setupLoaderResources(); + break; + case 2: + this->setupModResources(); + break; + case 3: + default: + this->setSmallText("Loading game resources"); + LoadingLayer::loadAssets(); + break; + } this->updateLoadingBar(); } -}; +}; \ No newline at end of file