diff --git a/mod.json b/mod.json index 313707e..3d39bfa 100644 --- a/mod.json +++ b/mod.json @@ -1,6 +1,6 @@ { - "geode": "2.0.0-beta.23", - "gd": { "win": "2.204", "android": "2.205" }, + "geode": "3.0.0-alpha.1", + "gd": { "win": "2.206", "android": "2.206" }, "version": "v1.0.4", "id": "cdc.level_thumbnails", "name": "Level Thumbnails", diff --git a/src/main.cpp b/src/main.cpp index c8e0ef2..84dc8e5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -7,15 +7,17 @@ using namespace geode::prelude; #include "utils.hpp" class $modify(MyLevelCell, LevelCell) { - LoadingCircle* loadingIndicator; - CCSprite* placeholderImage; - CCSprite* separatorSprite; - CCLabelBMFont* notAvailable; - CCLayerColor* background; - web::AsyncWebRequest downloadRequest; - - bool fetched = false; - bool fetchFailed = false; + struct Fields{ + LoadingCircle* loadingIndicator; + CCSprite* placeholderImage; + CCSprite* separatorSprite; + CCLabelBMFont* notAvailable; + CCLayerColor* background; + web::AsyncWebRequest downloadRequest; + + bool fetched = false; + bool fetchFailed = false; + }; void loadCustomLevelCell() { LevelCell::loadCustomLevelCell();