ReXGlue SDK
Loading...
Searching...
No Matches
xex.h File Reference

XEX image reader and PE image parsing. More...

#include <array>
#include <optional>
#include <span>
#include <string>
#include <vector>
#include <cstddef>
#include <cstdint>
#include <memory>
#include <utility>
#include <rex/platform.h>
#include <rex/result.h>
#include <rex/types.h>
#include <rex/utility.h>
#include <rex/assert.h>
#include <rex/kernel/types/xex.h>

Go to the source code of this file.

Classes

class  rex::filesystem::PESection
struct  rex::filesystem::PEExport
struct  rex::filesystem::PEInfo
struct  rex::filesystem::XEXPageRange
struct  rex::filesystem::XEXSecurityInfo
struct  rex::filesystem::XEXImportLibrary
struct  rex::filesystem::XEXOptHeaderEntry
class  rex::filesystem::IXEXImage

Namespaces

namespace  rex

Enumerations

enum  rex::filesystem::PESectionFlags : u32 {
  rex::filesystem::kPESectionContainsCode = 0x00000020 , rex::filesystem::kPESectionContainsDataInit = 0x00000040 , rex::filesystem::kPESectionContainsDataUninit = 0x00000080 , rex::filesystem::kPESectionMemoryExecute = 0x20000000 ,
  rex::filesystem::kPESectionMemoryRead = 0x40000000 , rex::filesystem::kPESectionMemoryWrite = 0x80000000
}
enum class  rex::filesystem::XEXKey : u8 { kRetail , kDevKit , kRetailXEX1 , kDevKitXEX1 }

Detailed Description

XEX image reader and PE image parsing.

License
BSD 3-Clause License See LICENSE file in the project root for full license text.
Remarks
Derived from Xenia's kernel/util/xex_module.cc (Ben Vanik, 2020).
Modified
Tom Clay, 2026 - Adapted for ReXGlue runtime
Remarks
Parts derived from Xenia (Ben Vanik, 2013).

Enumeration Type Documentation

◆ PESectionFlags

Characteristics bits of a PE section header.

Enumerator
kPESectionContainsCode 

IMAGE_SCN_CNT_CODE. The section holds code.

kPESectionContainsDataInit 

IMAGE_SCN_CNT_INITIALIZED_DATA.

kPESectionContainsDataUninit 

IMAGE_SCN_CNT_UNINITIALIZED_DATA.

kPESectionMemoryExecute 

IMAGE_SCN_MEM_EXECUTE.

kPESectionMemoryRead 

IMAGE_SCN_MEM_READ. The section is readable.

kPESectionMemoryWrite 

IMAGE_SCN_MEM_WRITE.

◆ XEXKey

enum class rex::filesystem::XEXKey : u8
strong

AES key that decrypts the image key of an XEX.

Enumerator
kRetailXEX1 

Retail key of the XEX1 era.

kDevKitXEX1 

Devkit key of the XEX1 era.