mirror of
https://github.com/opa334/TrollStore.git
synced 2025-04-13 07:43:12 +08:00
add
This commit is contained in:
parent
755d1d8724
commit
8dfaf629bd
@ -3,7 +3,6 @@
|
||||
|
||||
#define TrollStoreErrorDomain @"TrollStoreErrorDomain"
|
||||
|
||||
extern void chineseWifiFixup(void);
|
||||
extern void loadMCMFramework(void);
|
||||
extern NSString* safe_getExecutablePath();
|
||||
extern NSString* rootHelperPath(void);
|
||||
|
@ -14,12 +14,7 @@ extern int posix_spawnattr_set_persona_np(const posix_spawnattr_t* __restrict, u
|
||||
extern int posix_spawnattr_set_persona_uid_np(const posix_spawnattr_t* __restrict, uid_t);
|
||||
extern int posix_spawnattr_set_persona_gid_np(const posix_spawnattr_t* __restrict, uid_t);
|
||||
|
||||
void chineseWifiFixup(void)
|
||||
{
|
||||
NSBundle *bundle = [NSBundle bundleWithPath:@"/System/Library/PrivateFrameworks/SettingsCellular.framework"];
|
||||
[bundle load];
|
||||
[[NSClassFromString(@"PSAppDataUsagePolicyCache") sharedInstance] setUsagePoliciesForBundle:NSBundle.mainBundle.bundleIdentifier cellular:true wifi:true];
|
||||
}
|
||||
|
||||
|
||||
void loadMCMFramework(void)
|
||||
{
|
||||
|
@ -77,7 +77,7 @@ int main(int argc, char *argv[], char *envp[]) {
|
||||
}
|
||||
#endif
|
||||
|
||||
chineseWifiFixup();
|
||||
|
||||
if(sceneDelegateFix())
|
||||
{
|
||||
return UIApplicationMain(argc, argv, nil, NSStringFromClass(TSHAppDelegateWithScene.class));
|
||||
|
@ -9,7 +9,6 @@ NSUserDefaults* trollStoreUserDefaults(void)
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
@autoreleasepool {
|
||||
chineseWifiFixup();
|
||||
return UIApplicationMain(argc, argv, nil, NSStringFromClass(TSAppDelegate.class));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user