Fix YouGroupSettings addition

This commit is contained in:
Bryce Hackel
2024-07-05 01:59:32 -07:00
parent 4074281265
commit 4de07c2d7a
2 changed files with 14 additions and 13 deletions

View File

@@ -667,6 +667,9 @@ static NSData *cellDividerData = nil;
# pragma mark - ctor
%ctor {
%init;
// Access YouGroupSettings methods
dlopen([[NSString stringWithFormat:@"%@/Frameworks/YouGroupSettings.dylib", [[NSBundle mainBundle] bundlePath]] UTF8String], RTLD_LAZY);
if (IsEnabled(@"hideCastButton_enabled")) {
%init(gHideCastButton);
}
@@ -729,8 +732,7 @@ static NSData *cellDividerData = nil;
}
if (IsEnabled(@"fixCasting_enabled")) {
%init(gFixCasting);
}
}
// Change the default value of some options
NSArray *allKeys = [[[NSUserDefaults standardUserDefaults] dictionaryRepresentation] allKeys];