mirror of
https://github.com/geode-sdk/geode.git
synced 2025-03-02 00:13:54 -05:00
20 lines
401 B
C++
20 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();
|
|
}
|
|
}
|
|
};
|