Jump to content

8 posts in this topic

Recommended Posts

Posted

i fixed or he fixed the error https://iosgods.com/topic/41600-another-compile-error-in-cygwin-theos/page-2 but then when i install DEB and enter game when it loads half way the game crashes

 

here is my make file

ARCHS = armv7 arm64

include $(THEOS)/makefiles/common.mk
 
TWEAK_NAME = JetpackCheats
JetpackCheats_FILES = Tweak.xm
 
include $(THEOS_MAKE_PATH)/tweak.mk
 
after-install::
install.exec "killall -9 SpringBoard"
 
here is my tweak.xm #include <substrate.h>
 
static bool missileCollision()
{
return FALSE;
}
 
static bool shopItemsPurchased()
{
return TRUE;
}
 
static void shopItemsPurchased2()
{
 
}
 
static int getCurrency()
{
return 99999999;
}
 
static bool playerIsDead()
{
return FALSE;
}
 
static void missionMaxLevel()
{
 
}
 
static bool slotTokenCollision()
{
return FALSE;
}
 
static bool playerIsImmune()
{
return TRUE;
}
 
static bool ObstacleColliding()
{
return FALSE;
}
 
%ctor{
MSHookFunction(MSFindSymbol(NULL, "__ZN7Missile19CollidingWithPlayerER4Game"),(void*)missileCollision, NULL);
 
MSHookFunction(MSFindSymbol(NULL, "__ZN8ShopItem11IsPurchasedEv"),(void*)shopItemsPurchased, NULL);
 
MSHookFunction(MSFindSymbol(NULL, "__ZN8ShopItem18PurchaseSuccessfulEv"),(void*)shopItemsPurchased2, NULL);
 
MSHookFunction(MSFindSymbol(NULL, "__ZN4Game14GetCurrencyQtyEv"),(void*)getCurrency, NULL);
 
MSHookFunction(MSFindSymbol(NULL, "__ZN6Player6IsDeadEv"),(void*)playerIsDead, NULL);
 
MSHookFunction(MSFindSymbol(NULL, "__ZN14MissionManager15ReachedMaxLevelEv"),(void*)missionMaxLevel, NULL);
 
MSHookFunction(MSFindSymbol(NULL, "__ZN9SlotToken19CollidingWithPlayerER4Game"),(void*)slotTokenCollision, NULL);
 
MSHookFunction(MSFindSymbol(NULL, "__ZNK6Player8IsImmuneEv"),(void*)playerIsImmune, NULL);
 
MSHookFunction(MSFindSymbol(NULL, "__ZN8Obstacle19CollidingWithPlayerER4Game"),(void*)ObstacleColliding, NULL);
}
Posted

As they say, It's better to test each function then having 2 at same time etc

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines