Skip to content

Commit

Permalink
Revert loading layer
Browse files Browse the repository at this point in the history
  • Loading branch information
altalk23 committed Oct 1, 2023
1 parent 41ae88a commit fed73fe
Showing 1 changed file with 19 additions and 24 deletions.
43 changes: 19 additions & 24 deletions loader/src/hooks/LoadingLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ struct CustomLoadingLayer : Modify<CustomLoadingLayer, LoadingLayer> {
}

int getTotalStep() {
return 17;
return 18;
}

void updateLoadingBar() {
Expand Down Expand Up @@ -137,28 +137,23 @@ struct CustomLoadingLayer : Modify<CustomLoadingLayer, LoadingLayer> {
}

// 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();
}
};
};

0 comments on commit fed73fe

Please sign in to comment.