Skip to content

Commit 2bcc011

Browse files
committed
Use localization header file
1 parent 66970d5 commit 2bcc011

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

Sideloading.xm

+1-16
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,12 @@
22
#import <Foundation/Foundation.h>
33
#import <dlfcn.h>
44
#import <rootless.h>
5+
#import "Source/Prefs/Localization.h"
56

67
#define YT_BUNDLE_ID @"com.google.ios.youtubemusic"
78
#define YT_BUNDLE_NAME @"YouTubeMusic"
89
#define YT_NAME @"YouTube Music"
910
#define YTMULoginAlert @"YTMULoginAlert"
10-
#define LOC(x) [tweakBundle localizedStringForKey:x value:nil table:nil]
11-
12-
NSBundle *YTMusicUltimateBundle() {
13-
static NSBundle *bundle = nil;
14-
static dispatch_once_t onceToken;
15-
dispatch_once(&onceToken, ^{
16-
NSString *tweakBundlePath = [[NSBundle mainBundle] pathForResource:@"YTMusicUltimate" ofType:@"bundle"];
17-
if (tweakBundlePath)
18-
bundle = [NSBundle bundleWithPath:tweakBundlePath];
19-
else
20-
bundle = [NSBundle bundleWithPath:ROOT_PATH_NS("/Library/Application Support/YTMusicUltimate.bundle")];
21-
});
22-
return bundle;
23-
}
24-
25-
NSBundle *tweakBundle = YTMusicUltimateBundle();
2611

2712
@interface YTAlertView : UIView
2813
@property (nonatomic, copy, readwrite) NSString *title;

0 commit comments

Comments
 (0)