Update VersionSpooferLite.xm

This commit is contained in:
arichorn 2023-07-16 18:23:32 -05:00 committed by GitHub
parent 75a45c255d
commit bc6ad9ea8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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