Skip to content

Commit

Permalink
crash it
Browse files Browse the repository at this point in the history
  • Loading branch information
Alphalaneous committed Nov 19, 2024
1 parent f4e253b commit fbed59e
Show file tree
Hide file tree
Showing 43 changed files with 11 additions and 2,270 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@ jobs:
fail-fast: false
matrix:
config:
- name: Windows
os: windows-latest

- name: Android32
os: ubuntu-latest
target: Android32

- name: Android64
os: ubuntu-latest
target: Android64
Expand Down
8 changes: 4 additions & 4 deletions mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"win": "2.2074",
"android": "2.2074"
},
"version": "v0.9.9",
"id": "zalphalaneous.minecraft",
"name": "Minecraftify!",
"version": "v6.9.420",
"id": "alphalaneous.crashtheandroid",
"name": "Crash Minecraftify!",
"developer": "Alphalaneous",
"description": "Makes GD turn into Minecraft",
"description": "Makes GD crash into Minecraft",
"early-load": true,
"links": {
"homepage": "https://linktr.ee/Alphalaneous",
Expand Down
8 changes: 1 addition & 7 deletions src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
#include <Geode/Geode.hpp>
#include "ui/hooks/MenuLayer.h"
#include "ui/hooks/LoadingLayer.h"
#include "ui/hooks/CreatorLayer.h"
#include "ui/hooks/CCDirector.h"
#include "ui/hooks/CCMenuItemSpriteExtra.h"
#include "ui/hooks/CCMenuItemToggler.h"
#include "ui/hooks/FLAlertLayer.h"
#include "ui/hooks/PauseLayer.h"
#include "ui/hooks/PlayLayer.h"
#include "ui/hooks/GJDropDownLayer.h"
#include "ui/hooks/CCMenuItemToggler.h"
26 changes: 3 additions & 23 deletions src/ui/hooks/CCDirector.h
Original file line number Diff line number Diff line change
@@ -1,31 +1,11 @@
#pragma once

#include <Geode/Geode.hpp>
#include <Geode/modify/CCDirector.hpp>
#include <Geode/modify/LoadingLayer.hpp>

class $modify(MyCCDirector, CCDirector){

bool replaceScene(CCScene *pScene){

if (!GlobalVars::getSharedInstance()->isInitialLaunch){
return CCDirector::replaceScene(pScene);
}
else {
CCScene* currentScene = CCScene::get();
CCLayer* child = typeinfo_cast<CCLayer*>(currentScene->getChildren()->objectAtIndex(0));

LoadingLayer* loadingLayer = typeinfo_cast<LoadingLayer*>(child);

if (loadingLayer) {
MyLoadingLayer* myLoadingLayer = static_cast<MyLoadingLayer*>(child);
if (GlobalVars::getSharedInstance()->isInitialLaunch){
myLoadingLayer->scheduleOnce(schedule_selector(MyLoadingLayer::doFadeOut), 0.05f);
}
else {
GlobalVars::getSharedInstance()->isInitialLaunch = false;
return CCDirector::replaceScene(pScene);
}
}
}
return true;
return CCDirector::replaceScene(pScene);
}
};
6 changes: 0 additions & 6 deletions src/ui/hooks/CCMenuItemSpriteExtra.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#pragma once

#ifndef MYCCMENUITEMSPRITEEXTRA_H
#define MYCCMENUITEMSPRITEEXTRA_H

#include <Geode/Geode.hpp>
#include <Geode/modify/CCMenuItemSpriteExtra.hpp>

Expand Down Expand Up @@ -41,7 +38,4 @@ class $modify(MyCCMenuItemSpriteExtra, CCMenuItemSpriteExtra){
CCMenuItemSpriteExtra::activate();
}
}

};

#endif
11 changes: 3 additions & 8 deletions src/ui/hooks/CCMenuItemToggler.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#pragma once

#include <Geode/Geode.hpp>
#include <Geode/modify/CCMenuItemToggler.hpp>

#ifndef MYCCMENUITEMTOGGLER_H
#define MYCCMENUITEMTOGGLER_H

using namespace geode::prelude;

class $modify(MyCCMenuItemToggler, CCMenuItemToggler){
Expand All @@ -21,8 +20,4 @@ class $modify(MyCCMenuItemToggler, CCMenuItemToggler){
myRet->m_fields->m_buttonTarget = p2;
return ret;
}


};

#endif
};
144 changes: 0 additions & 144 deletions src/ui/hooks/CreatorLayer.h

This file was deleted.

Loading

0 comments on commit fbed59e

Please sign in to comment.