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
|
|
|
|
2023-03-10 14:33:24 -05:00
|
|
|
using namespace geode::prelude;
|
2022-07-30 12:24:03 -04:00
|
|
|
|
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
|
2022-11-29 17:48:06 -05:00
|
|
|
if (m_loadStep == 10) {
|
2023-04-10 05:49:59 -04:00
|
|
|
Loader::get()->updateResources(true);
|
2022-10-30 14:56:36 -04:00
|
|
|
}
|
|
|
|
}
|
2022-10-25 14:49:50 -04:00
|
|
|
};
|