-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
37dc0fc
commit 87f5629
Showing
4 changed files
with
65 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifndef BW1_DECOMP_REVERSING_UTILS_INCLUDED_H | ||
#define BW1_DECOMP_REVERSING_UTILS_INCLUDED_H | ||
|
||
#include <stdint.h> /* For uint32_t */ | ||
|
||
typedef uint32_t bool32_t; | ||
|
||
#endif // BW1_DECOMP_REVERSING_UTILS_INCLUDED_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#ifndef BW1_DECOMP_RTTI_INCLUDED_H | ||
#define BW1_DECOMP_RTTI_INCLUDED_H | ||
|
||
struct RTTIBaseClassDescriptor { | ||
struct TypeDescriptor* pTypeDescriptor; | ||
unsigned long numContainedBases; | ||
unsigned where; | ||
unsigned long attributes; | ||
}; | ||
|
||
struct RTTIBaseClassArray { | ||
struct RTTIBaseClassDescriptor* arrayOfBaseClassDescriptors[0]; | ||
}; | ||
|
||
struct RTTIClassHierarchyDescriptor { | ||
unsigned long signature; | ||
unsigned long attributes; | ||
unsigned long numBaseClasses; | ||
struct RTTIBaseClassArray* pBaseClassArray; | ||
}; | ||
|
||
struct TypeDescriptor { | ||
const void* pVFTable; | ||
void* spare; | ||
const char name[]; | ||
}; | ||
|
||
struct RTTICompleteObjectLocator { | ||
unsigned long signature; | ||
unsigned long offset; | ||
unsigned long cdOffset; | ||
struct TypeDescriptor* pTypeDescriptor; | ||
struct RTTIClassHierarchyDescriptor* pClassDescriptor; | ||
}; | ||
|
||
|
||
#endif // BW1_DECOMP_RTTI_INCLUDED_H |