Jump to content

Just a little help with a flex conversion to hook


Go to solution Solved by Amuyea,

7 posts in this topic

Recommended Posts

Posted

Hey folks can someone look at my flex to hook conversion please ? i am getting error at theos make package thanks!!!

                                  Flex tweak

UNIT NAME

Unit for -(void) setDisplayTitle:(id)
 
TARGET CLASS
UBAddress
 
TARGET METHOD
-(void) setDisplayTitle:(id)
 
RETURN VALUE (void)
pass-through
 
ARGUMENT#1(id)
pass-through
 
 
 
                                     HOOK
%hook UBAddress
-(void)setDisplayTitle:arg1 {
%orig;
arg1 = TRUE;
}
%end
 
Its my conversion right???
Thanks!
  • Solution
Posted
%hook UBAddress

-(void)setDisplayTitle:(id)arg1 {

%orig;

arg1 = xxx;

}

%end

 

xxx must be Null or nothing like

Null



%hook UBAddress
-(void)setDisplayTitle:(id)arg1 {
%orig;
arg1 = null;  // null or nil
}
%end

 

Or

Nothing



%hook UBAddress
-(void)setDisplayTitle:(id)arg1 {
%orig;
}
%end

Posted

 

%hook UBAddress
-(void)setDisplayTitle:(id)arg1 {
%orig;
arg1 = xxx;
}
%end
 
xxx must be Null or nothing like
Null

%hook UBAddress
-(void)setDisplayTitle:(id)arg1 {
%orig;
arg1 = null;  // null or nil
}
%end
 
Or
Nothing

%hook UBAddress
-(void)setDisplayTitle:(id)arg1 {
%orig;
}
%end

 

 

ok cool i am learning everyday ! ill try it now

Posted

%hook UBAddress

-(void)setDisplayTitle:(id)arg1 {

%orig;

arg1 = xxx;

}

%end

 

xxx must be Null or nothing like

Null

 

%hook UBAddress
-(void)setDisplayTitle:(id)arg1 {
%orig;
arg1 = null;  // null or nil
}
%end
 

Or

Nothing

%hook UBAddress
-(void)setDisplayTitle:(id)arg1 {
%orig;
}
%end

The Nothing part doesn't work when there is %orig

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