diff --git a/Changelog.md b/Changelog.md index 1d30dda1..608ec8d9 100644 --- a/Changelog.md +++ b/Changelog.md @@ -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 diff --git a/Lilu/Headers/kern_mach.hpp b/Lilu/Headers/kern_mach.hpp index 5cbc9bc8..8f505924 100644 --- a/Lilu/Headers/kern_mach.hpp +++ b/Lilu/Headers/kern_mach.hpp @@ -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 */