geode/loader/src/hooks/updateResources.cpp

15 lines
420 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();
2022-10-30 14:56:36 -04:00
// clang-format off
class $modify(LoadingLayer) {
void loadAssets() {
LoadingLayer::loadAssets();
// this is in case the user refreshes texture quality at runtime
if (this->m_loadStep == 10) {
Loader::get()->updateResources();
}
}
2022-07-30 12:24:03 -04:00
};
2022-10-30 14:56:36 -04:00
// clang-format on