2022-07-30 12:24:03 -04:00
|
|
|
#include <Geode/loader/Loader.hpp>
|
2022-10-15 13:19:20 -04:00
|
|
|
#include <Geode/modify/LoadingLayer.hpp>
|
2022-10-25 14:49:50 -04:00
|
|
|
#include <Geode/modify/GameManager.hpp>
|
2022-07-30 12:24:03 -04:00
|
|
|
|
|
|
|
USE_GEODE_NAMESPACE();
|
|
|
|
|
2022-11-09 13:03:53 -05:00
|
|
|
struct ResourcesUpdate : Modify<ResourcesUpdate, LoadingLayer> {
|
|
|
|
void loadAssets() {
|
2022-10-30 14:56:36 -04:00
|
|
|
LoadingLayer::loadAssets();
|
|
|
|
// this is in case the user refreshes texture quality at runtime
|
|
|
|
if (this->m_loadStep == 10) {
|
|
|
|
Loader::get()->updateResources();
|
|
|
|
}
|
|
|
|
}
|
2022-10-25 14:49:50 -04:00
|
|
|
};
|