diff --git a/IDA.til b/IDA.til index 2b60a94..8bf9e9c 100644 Binary files a/IDA.til and b/IDA.til differ diff --git a/IDA32.til b/IDA32.til index e61e163..3b424e4 100644 Binary files a/IDA32.til and b/IDA32.til differ diff --git a/MobileGestalt/MobileGestalt.h b/MobileGestalt/MobileGestalt.h index 3fea9ff..1e18fea 100644 --- a/MobileGestalt/MobileGestalt.h +++ b/MobileGestalt/MobileGestalt.h @@ -1,7 +1,7 @@ #import "../BaseTypes.h" #import "../CoreFoundation/Types.h" #import "../Foundation/Types.h" -// #import "Types.h" +#import "Types.h" SInt32 MGGetSInt32Answer(CFStringRef key, SInt32 defaultVal); SInt64 MGGetSInt64Answer(CFStringRef key, SInt64 defaultVal); diff --git a/MobileGestalt/Types.h b/MobileGestalt/Types.h index 503a3a2..84fc0a9 100644 --- a/MobileGestalt/Types.h +++ b/MobileGestalt/Types.h @@ -1,8 +1,8 @@ -typedef enum { +typedef enum MGProductType { MGProductTypeUnknown = -1, } MGProductType; -typedef enum { +typedef enum MGDeviceClass { MGDeviceClassInvalid = -1, MGDeviceClassiPhone = 1, MGDeviceClassiPod = 2, diff --git a/README.md b/README.md index 17636ca..7142a84 100644 --- a/README.md +++ b/README.md @@ -5,10 +5,12 @@ A collection of (public and private) types and functions definitions useful for Would you rather re-define the same functions or types over and over as you work with different binaries? ## Usage (IDA Pro 8+) -1. Copy `IDA.til` and `IDA32.til` to `til` folder inside IDA application directory. -2. In IDA Pro, open `Type Libraries` window via `View > Open subviews > Type libraries` or press `Shift + F11`. -3. Right-click the type list and select `Load type library...`. -4. Select `IDA` (or `IDA32` if you target 32-bit binaries) and click `OK` button. + +1. Go to `File > Load file > Parse C header file` then choose `IDA.h` to import everything at once. Or, run this IDA command: `idaapi.idc_parse_types("/path/to/IDAObjcTypes/IDA.h", idc.PT_FILE)`. +2. Copy `IDA.til` and `IDA32.til` to `til` folder inside IDA application directory. +3. In IDA Pro, open `Type Libraries` window via `View > Open subviews > Type libraries` or press `Shift + F11`. +4. Right-click the type list and select `Load type library...`. +5. Select `IDA` (or `IDA32` if you target 32-bit binaries) and click `OK` button. TIL created via this command: