Skip to content

Commit 2e76ba0

Browse files
committed
deprecated :(
1 parent b6d1ab8 commit 2e76ba0

File tree

5 files changed

+41
-4
lines changed

5 files changed

+41
-4
lines changed

changelog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# v2.2.3
2+
3+
- Deprecated
4+
```
5+
Thank you all for downloading this mod <3
6+
```
7+
18
# v2.2.2
29

310
- good job, rod! (add macOS Intel support)

mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"geode": "4.2.0",
3-
"version": "v2.2.2",
3+
"version": "v2.2.3",
44
"gd": {
55
"win": "2.2074",
66
"android": "2.2074",

src/MenuLayer.cpp

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#include <Geode/Geode.hpp>
2+
#include <Geode/loader/Loader.hpp>
3+
#include <Geode/modify/MenuLayer.hpp>
4+
5+
using namespace geode::prelude;
6+
7+
class $modify(MenuLayerModified, MenuLayer) {
8+
void onGarage(CCObject*) {
9+
// Deprecation Warning
10+
11+
if (!Mod::get()->getSavedValue<bool>("deprecation-warning")) {
12+
geode::createQuickPopup(
13+
"Garage Plus",
14+
"<cr>WARNING:</c> I, <cb>OmgRod</c>, am <cy>discontinuing</c> the mod (no more updates will come out)\nHowever, I am working on splitting this mod into several different mods. Thank you for downloading this mod!\n\n- OmgRod",
15+
"Don't show this again", "OK",
16+
[&](auto, bool btn2) {
17+
if (!btn2) {
18+
Mod::get()->setSavedValue("deprecation-warning", true);
19+
}
20+
auto scene = GJGarageLayer::scene();
21+
auto transition = CCTransitionFade::create(0.5f, scene);
22+
CCDirector::sharedDirector()->pushScene(transition);
23+
}
24+
);
25+
}
26+
27+
auto scene = GJGarageLayer::scene();
28+
auto transition = CCTransitionFade::create(0.5f, scene);
29+
CCDirector::sharedDirector()->pushScene(transition);
30+
}
31+
};

src/VideoPlayer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
#include "VideoPlayer.hpp"
55
#include <math.h>
66

7+
#include <Geode/Geode.hpp>
8+
79
using namespace geode::prelude;
810
using namespace cocos2d;
911

src/main.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
#include <Geode/Geode.hpp>
55
#include <Geode/loader/Loader.hpp>
66
#include <Geode/modify/GJGarageLayer.hpp>
7-
#include <Geode/binding/GJGarageLayer.hpp>
8-
#include <Geode/binding/AchievementManager.hpp>
9-
#include <Geode/binding/GJShopLayer.hpp>
107
#include <Geode/utils/web.hpp>
118
#include <Geode/ui/GeodeUI.hpp>
129
#include <Geode/ui/Notification.hpp>

0 commit comments

Comments
 (0)