geode/loader/src/hooks/updateResources.cpp

15 lines
342 B
C++
Raw Normal View History

2022-07-30 12:24:03 -04:00
#include <Geode/loader/Loader.hpp>
#include <Geode/modify/LoadingLayer.hpp>
2022-07-30 12:24:03 -04:00
USE_GEODE_NAMESPACE();
class $modify(LoadingLayer) {
void loadAssets() {
LoadingLayer::loadAssets();
// this is in case the user refreshes texture quality at runtime
if (this->m_loadStep == 10) {
2022-07-30 12:24:03 -04:00
Loader::get()->updateResources();
}
}
};