mirror of
https://github.com/geode-sdk/geode.git
synced 2024-12-03 04:36:55 -05:00
15 lines
451 B
C++
15 lines
451 B
C++
#include <Geode/loader/Loader.hpp>
|
|
#include <Geode/modify/LoadingLayer.hpp>
|
|
#include <Geode/modify/GameManager.hpp>
|
|
|
|
USE_GEODE_NAMESPACE();
|
|
|
|
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();
|
|
}
|
|
}
|
|
};
|