Skip to content

Commit 2639a1d

Browse files
committed
test
1 parent 25c2cbf commit 2639a1d

File tree

7 files changed

+36
-4
lines changed

7 files changed

+36
-4
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@ jobs:
3434
- name: Build the mod
3535
uses: geode-sdk/build-geode-mod@main
3636
with:
37+
uses: Prevter/build-geode-mod@main
3738
bindings: 'TheSillyDoggo/bindings'
39+
export-pdb: true
3840
combine: true
39-
#sdk: nightly
4041
target: ${{ matrix.config.target }}
4142

4243
package:

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# 1.3.7
2+
3+
- Label Corners now save the corner
4+
- Fixed Crash Playing Levels
5+
16
# 1.3.6
27

38
- Added Random Seed

src/Client/Module.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ class DropdownModule : public Module
421421

422422
void load()
423423
{
424-
value = geode::prelude::Mod::get()->getSavedValue<int>(id + "_index", value);
424+
index = geode::prelude::Mod::get()->getSavedValue<int>(id + "_index", index);
425425
}
426426

427427
void makeAndroid(CCNode* menu, CCPoint pos);

src/Hacks/LevelFix.cpp

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#include <Geode/Geode.hpp>
22
#include <Geode/modify/LevelPage.hpp>
3+
#include <Geode/modify/LevelCell.hpp>
4+
#include <Geode/modify/LevelBrowserLayer.hpp>
35
#include "../Client/Client.h"
46

57
using namespace geode::prelude;
@@ -12,4 +14,24 @@ using namespace geode::prelude;
1214
1315
return LevelPage::create(p0);
1416
}
17+
};*/
18+
19+
/*Ref<LevelBrowserLayer> browser;
20+
21+
class $modify (LevelBrowserLayer)
22+
{
23+
bool init(GJSearchObject* p0)
24+
{
25+
if (!LevelBrowserLayer::init(p0))
26+
return false;
27+
28+
browser = this;
29+
30+
return true;
31+
}
32+
};
33+
34+
class $modify (LevelCell)
35+
{
36+
1537
};*/

src/Hacks/SafeMode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class HackModuleDelegate : public ModuleChangeDelegate
4949

5050
if (PlayLayer::get())
5151
{
52-
if (auto stn = getChildOfType<StatusNode>(PlayLayer::get(), 0))
52+
if (auto stn = StatusNode::get())
5353
{
5454
stn->update(1);
5555
stn->reorderSides();

src/Labels/Labels.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ class LabelModuleDelegate : public ModuleChangeDelegate
174174
{
175175
if (PlayLayer::get())
176176
{
177-
if (auto stn = getChildOfType<StatusNode>(PlayLayer::get(), 0))
177+
if (auto stn = StatusNode::get())
178178
{
179179
stn->reorderSides();
180180
stn->reorderPosition();

src/Labels/Labels.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ class StatusNode : public CCNode
2323
return nullptr;
2424
}
2525

26+
static inline StatusNode* instance = nullptr;
27+
28+
static StatusNode* get() { return instance; }
29+
2630
//NoclipLayer* v;
2731

2832
bool mods;

0 commit comments

Comments
 (0)