mirror of
https://github.com/geode-sdk/geode.git
synced 2024-12-04 05:01:06 -05:00
21 lines
401 B
C++
21 lines
401 B
C++
|
#include <Geode/Modify.hpp>
|
||
|
#include <Geode/loader/Loader.hpp>
|
||
|
|
||
|
USE_GEODE_NAMESPACE();
|
||
|
|
||
|
class $modify(GameManager) {
|
||
|
void reloadAllStep2() {
|
||
|
GameManager::reloadAllStep2();
|
||
|
Loader::get()->updateResourcePaths();
|
||
|
}
|
||
|
};
|
||
|
|
||
|
class $modify(LoadingLayer) {
|
||
|
void loadAssets() {
|
||
|
LoadingLayer::loadAssets();
|
||
|
if (this->m_loadStep == 5) {
|
||
|
Loader::get()->updateResources();
|
||
|
}
|
||
|
}
|
||
|
};
|