From c90b56d8d3949ccbfde9af0d0b766c413d894c09 Mon Sep 17 00:00:00 2001 From: arichornlover <78001398+arichorn@users.noreply.github.com> Date: Sat, 25 Nov 2023 23:12:45 -0600 Subject: [PATCH] Declared YouTube Logos --- uYouPlus.xm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/uYouPlus.xm b/uYouPlus.xm index 5067a78..cea09f7 100644 --- a/uYouPlus.xm +++ b/uYouPlus.xm @@ -1,5 +1,24 @@ #import "uYouPlus.h" +static int youtubeLogo() { + return [[NSUserDefaults standardUserDefaults] integerForKey:@"ytlogo"]; +} +static BOOL hideYouTubeLogo() { + return IsEnabled(@"hideYouTubeLogo_enabled") && youtubeLogo() == 0; +} +static BOOL defaultYouTubeLogo() { + return IsEnabled(@"defaultYouTubeLogo_enabled") && youtubeLogo() == 1; +} +static BOOL centerYouTubeLogo() { + return IsEnabled(@"centerYouTubeLogo_enabled") && youtubeLogo() == 2; +} +static BOOL premiumYouTubeLogo() { + return IsEnabled(@"premiumYouTubeLogo_enabled") && youtubeLogo() == 3; +} +static BOOL customYouTubeLogo() { + return IsEnabled(@"customYouTubeLogo_enabled") && youtubeLogo() == 4; +} + // Tweak's bundle for Localizations support - @PoomSmart - https://github.com/PoomSmart/YouPiP/commit/aea2473f64c75d73cab713e1e2d5d0a77675024f NSBundle *uYouPlusBundle() { static NSBundle *bundle = nil;