mirror of
https://github.com/geode-sdk/geode.git
synced 2025-02-18 09:10:17 -05:00
Revert loading layer
This commit is contained in:
parent
41ae88ae5b
commit
fed73fefd6
1 changed files with 19 additions and 24 deletions
|
@ -108,7 +108,7 @@ struct CustomLoadingLayer : Modify<CustomLoadingLayer, LoadingLayer> {
|
||||||
}
|
}
|
||||||
|
|
||||||
int getTotalStep() {
|
int getTotalStep() {
|
||||||
return 17;
|
return 18;
|
||||||
}
|
}
|
||||||
|
|
||||||
void updateLoadingBar() {
|
void updateLoadingBar() {
|
||||||
|
@ -137,28 +137,23 @@ struct CustomLoadingLayer : Modify<CustomLoadingLayer, LoadingLayer> {
|
||||||
}
|
}
|
||||||
|
|
||||||
// hook
|
// hook
|
||||||
void loadAssets() {
|
void loadAssets() {
|
||||||
if (m_loadStep == 14) {
|
switch (m_fields->m_geodeLoadStep) {
|
||||||
switch (m_fields->m_geodeLoadStep) {
|
case 0:
|
||||||
case 0:
|
if (this->skipOnRefresh()) this->setupLoadingMods();
|
||||||
if (this->skipOnRefresh()) this->setupLoadingMods();
|
break;
|
||||||
break;
|
case 1:
|
||||||
case 1:
|
if (this->skipOnRefresh()) this->setupLoaderResources();
|
||||||
if (this->skipOnRefresh()) this->setupLoaderResources();
|
break;
|
||||||
break;
|
case 2:
|
||||||
case 2:
|
this->setupModResources();
|
||||||
this->setupModResources();
|
break;
|
||||||
break;
|
case 3:
|
||||||
case 3:
|
default:
|
||||||
default:
|
this->setSmallText("Loading game resources");
|
||||||
LoadingLayer::loadAssets();
|
LoadingLayer::loadAssets();
|
||||||
this->updateLoadingBar();
|
break;
|
||||||
break;
|
}
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
this->setSmallText("Loading game resources");
|
|
||||||
LoadingLayer::loadAssets();
|
|
||||||
this->updateLoadingBar();
|
this->updateLoadingBar();
|
||||||
}
|
}
|
||||||
};
|
};
|
Loading…
Reference in a new issue