Skip to content

Commit

Permalink
Correct README and MG types
Browse files Browse the repository at this point in the history
  • Loading branch information
PoomSmart committed Sep 11, 2024
1 parent aef18c7 commit 2203fc5
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
Binary file modified IDA.til
Binary file not shown.
Binary file modified IDA32.til
Binary file not shown.
2 changes: 1 addition & 1 deletion MobileGestalt/MobileGestalt.h
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
4 changes: 2 additions & 2 deletions MobileGestalt/Types.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
typedef enum {
typedef enum MGProductType {
MGProductTypeUnknown = -1,
} MGProductType;

typedef enum {
typedef enum MGDeviceClass {
MGDeviceClassInvalid = -1,
MGDeviceClassiPhone = 1,
MGDeviceClassiPod = 2,
Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit 2203fc5

Please sign in to comment.