2022-07-30 12:24:03 -04:00
|
|
|
#include <Geode/loader/Loader.hpp>
|
|
|
|
|
|
|
|
USE_GEODE_NAMESPACE();
|
|
|
|
|
2022-10-13 04:31:23 -04:00
|
|
|
#include <codegenned/modify/GameManager.hpp>
|
2022-07-30 12:24:03 -04:00
|
|
|
class $modify(GameManager) {
|
|
|
|
void reloadAllStep2() {
|
|
|
|
GameManager::reloadAllStep2();
|
|
|
|
Loader::get()->updateResourcePaths();
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2022-10-13 04:31:23 -04:00
|
|
|
#include <codegenned/modify/LoadingLayer.hpp>
|
2022-07-30 12:24:03 -04:00
|
|
|
class $modify(LoadingLayer) {
|
|
|
|
void loadAssets() {
|
|
|
|
LoadingLayer::loadAssets();
|
|
|
|
if (this->m_loadStep == 5) {
|
2022-10-06 13:46:07 -04:00
|
|
|
Loader::get()->updateResourcePaths();
|
2022-07-30 12:24:03 -04:00
|
|
|
Loader::get()->updateResources();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|