fix resources again

This commit is contained in:
altalk23 2023-09-16 19:03:31 +03:00
parent d33c508d48
commit b3ac20d2a7
2 changed files with 4 additions and 4 deletions

View file

@ -29,6 +29,8 @@ struct CustomLoadingLayer : Modify<CustomLoadingLayer, LoadingLayer> {
// hook
bool init(bool fromReload) {
CCFileUtils::get()->updatePaths();
if (!LoadingLayer::init(fromReload)) return false;
auto winSize = CCDirector::sharedDirector()->getWinSize();
@ -43,8 +45,6 @@ struct CustomLoadingLayer : Modify<CustomLoadingLayer, LoadingLayer> {
}
void setupLoadingMods() {
CCFileUtils::get()->updatePaths();
if (Loader::get()->getLoadingState() != Loader::LoadingState::Done) {
this->updateLoadedModsLabel();
this->waitLoadAssets();
@ -55,8 +55,6 @@ struct CustomLoadingLayer : Modify<CustomLoadingLayer, LoadingLayer> {
}
void setupLoaderResources() {
LoaderImpl::get()->addSearchPaths();
// verify loader resources
if (!LoaderImpl::get()->verifyLoaderResources()) {
this->setSmallText("Downloading Loader Resources");

View file

@ -87,6 +87,8 @@ Result<> Loader::Impl::setup() {
this->createDirectories();
this->addSearchPaths();
this->refreshModGraph();
m_isSetup = true;