Skip to content

Commit

Permalink
cheese
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSillyDoggo committed Mar 15, 2024
1 parent bc33340 commit 9858de8
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion mod.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"geode": "2.0.0",
"version": "v1.2.4",
"version": "v1.2.5",
"gd": {
"win": "2.204",
"android": "*"
Expand Down
4 changes: 2 additions & 2 deletions src/AttemptAtReversingDialogObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ using namespace geode::prelude;
i took this class from FigmentBoy (https://github.com/FigmentBoy/DialogHandler)
*/

/*
class AttemptAtReversingDialogObject : public cocos2d::CCObject {
protected:
char pad_0x00[0x60]; // 0x00
Expand Down Expand Up @@ -43,4 +43,4 @@ class AttemptAtReversingDialogObject : public cocos2d::CCObject {
return obj;
}
};
};*/
5 changes: 5 additions & 0 deletions src/Client/AndroidUI.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,11 @@ class AndroidUI : public cocos2d::CCLayerColor {
{
auto btn = static_cast<CCMenuItemSprite*>(sender);

#ifdef GEODE_IS_MACOS
if (typeinfo_cast<_Replay*>(Client::instance->windows[btn->getTag()]))
return FLAlertLayer::create("Replay", "Replay bot is not available on macos due to missing bindings, this will probably <cr>not</c> be fixed <cp>^w^</c>", "OK")->show();
#endif

lastTab = selectedTab;
selectedTab = btn->getTag();

Expand Down
6 changes: 5 additions & 1 deletion src/Client/Replay.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#ifndef GEODE_IS_MACOS

#include "Replay.h"

using namespace geode::prelude;
Expand Down Expand Up @@ -232,4 +234,6 @@ class $modify(GJBaseGameLayer) {

if (GJReplayManager::recording) GJReplayManager::replay.inputs.push_back(MyInput(m_gameState.m_unk1f8, button, !player1, push, plr->m_position.x, plr->m_position.y, GJReplayManager::dt, plr->m_platformerXVelocity, plr->m_yVelocity, plr->getRotation()));
}
};
};

#endif
2 changes: 1 addition & 1 deletion src/Client/Window.h
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ class Config : public Window

Mod::get()->setSavedValue<int>("editor-opacity", (int)(ved));

Mod::get()->setSavedValue<float>("button-scale", scale->getValue());
Mod::get()->setSavedValue<float>("button-scale", scale->getThumb()->getValue());
}

void onChangeDraggable(CCObject* sender)
Expand Down

0 comments on commit 9858de8

Please sign in to comment.