Skip to content

Commit

Permalink
Fix a ldid assertion & some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
khanhduytran0 committed Aug 8, 2024
1 parent 0fa2529 commit 6fdcfe4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
4 changes: 3 additions & 1 deletion LCMachOUtils.m
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,10 @@ void LCPatchExecSlice(const char *path, struct mach_header_64 *header) {
}
} else if (magic == MH_MAGIC_64) {
callback(path, (struct mach_header_64 *)map);
} else {
} else if (magic == MH_MAGIC) {
return @"32-bit app is not supported";
} else {
//return @"Not a Mach-O file";
}

msync(map, s.st_size, MS_SYNC);
Expand Down
5 changes: 5 additions & 0 deletions LCUtils.m
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ + (BOOL)launchToGuestAppWithURL:(NSURL *)url {
#pragma mark Code signing

+ (void)loadStoreFrameworksWithError:(NSError **)error {
// too lazy to use dispatch_once
static BOOL loaded = NO;
if (loaded) return;
loaded = YES;

NSArray *signerFrameworks = @[@"OpenSSL.framework", @"Roxas.framework", @"AltStoreCore.framework"];
NSURL *storeFrameworksPath = [self.storeBundlePath URLByAppendingPathComponent:@"Frameworks"];
for (NSString *framework in signerFrameworks) {
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ To install tweaks, you can use the built-in tweak manager in LiveContainer, whic

## TODO
- Isolate Keychain per app
- Use Ch0ma instead of custom MachO parser
- Use ChOma instead of custom MachO parser

## License
[Apache License 2.0](https://github.com/khanhduytran0/LiveContainer/blob/main/LICENSE)
Expand Down
8 changes: 4 additions & 4 deletions Resources/Root.plist
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@
<dict>
<key>cell</key>
<string>PSGroupCell</string>
<key>label</key>
<string>Miscellaneous</string>
<key>footerText</key>
<string>Frame shortcut icons with LiveContainer icon.</string>
<key>label</key>
<string>Miscellaneous</string>
</dict>
<dict>
<key>cell</key>
Expand Down Expand Up @@ -81,10 +81,10 @@
<dict>
<key>cell</key>
<string>PSGroupCell</string>
<key>footerText</key>
<string>Please don’t use LiveContainer for piracy.</string>
<key>label</key>
<string>About me</string>
<key>footerText</key>
<string>Don't use LiveContainer for piracy.</string>
</dict>
<dict>
<key>action</key>
Expand Down

0 comments on commit 6fdcfe4

Please sign in to comment.