Update VersionSpooferLite.xm

This commit is contained in:
arichorn
2023-07-16 18:23:32 -05:00
committed by GitHub
parent 75a45c255d
commit bc6ad9ea8f

View File

@@ -36,10 +36,12 @@ static BOOL version8() {
} }
%group gDefault %group gDefault
%hook YTVersionUtils // Default %hook YTVersionUtils
+ (NSString *)appVersion { + (NSString *)appVersion {
NSString *originalVersion = %orig; NSURL *versionURL = [NSURL URLWithString:@"https://raw.githubusercontent.com/arichorn/YTAppVersionSpoofer-WIP/main/version.txt"];
return originalVersion; NSString *latestVersion = [NSString stringWithContentsOfURL:versionURL encoding:NSUTF8StringEncoding error:nil];
return latestVersion ?: @"18.27.3"; // <-- Fallback Version
} }
%end %end
%end %end