mirror of
https://github.com/opa334/TrollStore.git
synced 2025-04-13 07:43:12 +08:00
revert i hope
This commit is contained in:
parent
8dfaf629bd
commit
2e874311d3
@ -3,6 +3,7 @@
|
||||
|
||||
#define TrollStoreErrorDomain @"TrollStoreErrorDomain"
|
||||
|
||||
extern void chineseWifiFixup(void);
|
||||
extern void loadMCMFramework(void);
|
||||
extern NSString* safe_getExecutablePath();
|
||||
extern NSString* rootHelperPath(void);
|
||||
|
@ -14,7 +14,12 @@ 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,6 +9,7 @@ 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