Skip to content

Commit

Permalink
Added getFatOffset MachO API
Browse files Browse the repository at this point in the history
  • Loading branch information
vit9696 committed Feb 29, 2020
1 parent e03b7cc commit f93b434
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Lilu Changelog
#### v1.4.2
- Fixed IMEI device detection on some platforms
- Added CometLake CPU model support (thx @stormbirds)
- Added getFatOffset MachO API

#### v1.4.1
- Made applyLookupPatch support kernel patches by passsing null kext
Expand Down
7 changes: 7 additions & 0 deletions Lilu/Headers/kern_mach.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,13 @@ class MachInfo {
* Request to free file buffer resources (not including linkedit symtable)
*/
void freeFileBufferResources();

/**
* Get fat offset of the initialised image
*/
off_t getFatOffset() {
return fat_offset;
}
};

#endif /* kern_mach_hpp */

0 comments on commit f93b434

Please sign in to comment.