From 2bcc011c798b57a2abb44ca4756f23c2c9e36cf0 Mon Sep 17 00:00:00 2001 From: dayanch96 <38832025+dayanch96@users.noreply.github.com> Date: Sat, 16 Mar 2024 04:15:13 +0300 Subject: [PATCH] Use localization header file --- Sideloading.xm | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/Sideloading.xm b/Sideloading.xm index 619f5a23..cf130b09 100644 --- a/Sideloading.xm +++ b/Sideloading.xm @@ -2,27 +2,12 @@ #import #import #import +#import "Source/Prefs/Localization.h" #define YT_BUNDLE_ID @"com.google.ios.youtubemusic" #define YT_BUNDLE_NAME @"YouTubeMusic" #define YT_NAME @"YouTube Music" #define YTMULoginAlert @"YTMULoginAlert" -#define LOC(x) [tweakBundle localizedStringForKey:x value:nil table:nil] - -NSBundle *YTMusicUltimateBundle() { - static NSBundle *bundle = nil; - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - NSString *tweakBundlePath = [[NSBundle mainBundle] pathForResource:@"YTMusicUltimate" ofType:@"bundle"]; - if (tweakBundlePath) - bundle = [NSBundle bundleWithPath:tweakBundlePath]; - else - bundle = [NSBundle bundleWithPath:ROOT_PATH_NS("/Library/Application Support/YTMusicUltimate.bundle")]; - }); - return bundle; -} - -NSBundle *tweakBundle = YTMusicUltimateBundle(); @interface YTAlertView : UIView @property (nonatomic, copy, readwrite) NSString *title;