mirror of
https://github.com/YTLitePlus/YTLitePlus.git
synced 2026-03-11 17:15:34 +00:00
Update VersionSpooferLite.xm
This commit is contained in:
parent
75a45c255d
commit
bc6ad9ea8f
1 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue