mirror of
https://github.com/geode-sdk/geode.git
synced 2024-12-02 12:17:10 -05:00
15 lines
464 B
C++
15 lines
464 B
C++
#include <Geode/loader/Loader.hpp>
|
|
#include <Geode/modify/LoadingLayer.hpp>
|
|
#include <Geode/modify/GameManager.hpp>
|
|
|
|
using namespace geode::prelude;
|
|
|
|
struct ResourcesUpdate : Modify<ResourcesUpdate, LoadingLayer> {
|
|
void loadAssets() {
|
|
LoadingLayer::loadAssets();
|
|
// this is in case the user refreshes texture quality at runtime
|
|
if (m_loadStep == 10) {
|
|
Loader::get()->updateResources(true);
|
|
}
|
|
}
|
|
};
|