Moving get_opt_header out of xex2.

This commit is contained in:
Ben Vanik
2015-06-28 14:01:53 -07:00
parent 010b701e05
commit 84e884a07f
5 changed files with 41 additions and 36 deletions

View File

@@ -35,8 +35,12 @@ class XUserModule : public XModule {
uint32_t GetProcAddressByName(const char* name) override;
X_STATUS GetSection(const char* name, uint32_t* out_section_data,
uint32_t* out_section_size) override;
X_STATUS GetOptHeader(xe_xex2_header_keys key,
uint32_t* out_header_guest_ptr);
static X_STATUS GetOptHeader(uint8_t* membase, const xex2_header* header,
xe_xex2_header_keys key,
uint32_t* out_header_guest_ptr);
X_STATUS Launch(uint32_t flags);