fix: Sideloading.x failed to compile - %orig used as nested message receiver

[%orig mutableCopy] doesn't survive Logos' macro expansion cleanly (confirmed
by an actual Theos build on GitHub Actions: "error: expected identifier").
Split into two statements instead, matching how %orig is used everywhere
else in this file.
This commit is contained in:
Ally Founder 2026-08-03 10:31:03 -04:00
parent 0044c2c12a
commit b50102c53c

View file

@ -47,7 +47,8 @@ static BOOL isSelfCall(void) {
- (NSDictionary *)infoDictionary {
if (!isSelfCall()) return %orig;
NSMutableDictionary *info = [%orig mutableCopy];
NSDictionary *origInfo = %orig;
NSMutableDictionary *info = [origInfo mutableCopy];
info[@"CFBundleIdentifier"] = DISCORD_BUNDLE_ID;
info[@"CFBundleDisplayName"] = DISCORD_NAME;
info[@"CFBundleName"] = DISCORD_NAME;