Jump to content

Please Help me


B3albakii

1 post in this topic

Recommended Posts

Posted

i know how to use %hook method 

 

but i have this code 

if(GetPrefBool(@"key1")) {
      vm_writeData(0x10092DEE8, 0x1F2003D5); // 
    

how to put it in my tweak.x ?

@import Foundation;
@import UIKit;
#import <substrate.h>
#import "vm_writeData.h"


#define PLIST_PATH @"/var/mobile/Library/Preferences/com.ali.blo.plist"

inline bool GetPrefBool(NSString *key) {
        return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}



%ctor {

    if(GetPrefBool(@"key1")) {
      vm_writeData(0x10092DEE8, 0x1F2003D5); // 
    } 

like this or no thx

Archived

This topic is now archived and is closed to further replies.

×
  • 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