Jump to content

Flex2 Change Void.


Go to solution Solved by AxCE,

15 posts in this topic

Recommended Posts

Posted (edited)

All your questions have been answered before please use the serach bar...

I really saw almost every TuT. I wouldn't ask otherwise.

 

void with argument

-(void)setCoins:(int)argument {

argument = 999999;

}

-(void)setHasCoins:(bool)argument {

argument = TRUE;

}

-(void)setCoins:(id)argument {

argument = [NSNumber numberWithInteger:999999];

}

/* “argument” can be named anything. This is similar to returning non-void counterparts,

except you name the argument and remove “return” */

 

Im frustrated.

I tried...My tweak.xm:

 

%hook Session

-(float)gravity {

return -5.0f;

}

%end

 

%hook Session

-(void)setGravity:(float)argument {

argument = -5.00f;

}

%end

I can install it but it doesnt change anything ingame? Help Please.

Updated by AxCE
  • Solution
Posted

No you can't install it because hooking the same class twice doesn't work

First i tried without the second Session and it didn't worked either.?

 

My makefile:

include theos/makefiles/common.mk

 

TWEAK_NAME = hw

hw_FILES = Tweak.xm

 

include $(THEOS_MAKE_PATH)/tweak.mk

 

after-install::

install.exec "killall -9 SpringBoard"

 

I have an iphone5s.

Do i have to add

ARCHS = armv7 arm64 TARGET = iphone:x.x:x.x

?

No you can't install it because hooking the same class twice doesn't work

NeverMind :D

I found the solution :)

Thanks for the Help.

Posted

It's the tutorial which has been pinned for over 2 years in the Tutorials section.

I've found the solution but i have another question. Is it alright, when i ask you in this topic or should i make a new one? My question isnt long...
Posted

I've found the solution but i have another question. Is it alright, when i ask you in this topic or should i make a new one? My question isnt long...

Depends on the question I guess? If it's related, ask on this. If it's a different non-related one. Make a new support topic. :)

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