mirror of
https://github.com/geode-sdk/geode.git
synced 2025-02-17 00:30:26 -05:00
fix resources again
This commit is contained in:
parent
d33c508d48
commit
b3ac20d2a7
2 changed files with 4 additions and 4 deletions
|
@ -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");
|
||||
|
|
|
@ -87,6 +87,8 @@ Result<> Loader::Impl::setup() {
|
|||
|
||||
this->createDirectories();
|
||||
|
||||
this->addSearchPaths();
|
||||
|
||||
this->refreshModGraph();
|
||||
|
||||
m_isSetup = true;
|
||||
|
|
Loading…
Reference in a new issue