RetroArch
Classes | Macros | Typedefs | Functions | Variables
hax2.c File Reference
#include "../common.h"
Include dependency graph for hax2.c:

Classes

struct  processEntry_s
 

Macros

#define callBootloader_2x   ((callBootloader_2x_fn)0x00100000)
 
#define callBootloaderNewProcess_2x   ((callBootloaderNewProcess_2x_fn)0x00100008)
 
#define callBootloaderRunTitle_2x   ((callBootloaderRunTitle_2x_fn)0x00100010)
 
#define callBootloaderRunTitleCustom_2x   ((callBootloaderRunTitleCustom_2x_fn)0x00100014)
 
#define getBestProcess_2x   ((getBestProcess_2x_fn)0x0010000C)
 

Typedefs

typedef void(* callBootloader_2x_fn) (Handle file, u32 *argbuf, u32 arglength)
 
typedef void(* callBootloaderNewProcess_2x_fn) (s32 processId, u32 *argbuf, u32 arglength)
 
typedef void(* callBootloaderRunTitle_2x_fn) (u8 mediatype, u32 *argbuf, u32 argbuflength, u32 tid_low, u32 tid_high)
 
typedef void(* callBootloaderRunTitleCustom_2x_fn) (u8 mediatype, u32 *argbuf, u32 argbuflength, u32 tid_low, u32 tid_high, memmap_t *mmap)
 
typedef void(* getBestProcess_2x_fn) (u32 sectionSizes[3], bool *requirements, int num_requirements, processEntry_s *out, int out_size, int *out_len)
 

Functions

static bool init (void)
 
static void deinit (void)
 
static void bootloaderJump (void)
 
static void launchFile (const char *path, argData_s *args, executableMetadata_s *em)
 

Variables

static s32 targetProcess = -1
 
static u64 targetTid
 
static u8 targetMediatype
 
static Handle fileHandle
 
static u32 argBuf [ENTRY_ARGBUFSIZE/sizeof(u32)]
 
static u32 argBufLen
 
static u32 memMapBuf [0x40]
 
static bool useMemMap
 
const loaderFuncs_s loader_Ninjhax2
 

Macro Definition Documentation

◆ callBootloader_2x

#define callBootloader_2x   ((callBootloader_2x_fn)0x00100000)

◆ callBootloaderNewProcess_2x

#define callBootloaderNewProcess_2x   ((callBootloaderNewProcess_2x_fn)0x00100008)

◆ callBootloaderRunTitle_2x

#define callBootloaderRunTitle_2x   ((callBootloaderRunTitle_2x_fn)0x00100010)

◆ callBootloaderRunTitleCustom_2x

#define callBootloaderRunTitleCustom_2x   ((callBootloaderRunTitleCustom_2x_fn)0x00100014)

◆ getBestProcess_2x

#define getBestProcess_2x   ((getBestProcess_2x_fn)0x0010000C)

Typedef Documentation

◆ callBootloader_2x_fn

typedef void(* callBootloader_2x_fn) (Handle file, u32 *argbuf, u32 arglength)

◆ callBootloaderNewProcess_2x_fn

typedef void(* callBootloaderNewProcess_2x_fn) (s32 processId, u32 *argbuf, u32 arglength)

◆ callBootloaderRunTitle_2x_fn

typedef void(* callBootloaderRunTitle_2x_fn) (u8 mediatype, u32 *argbuf, u32 argbuflength, u32 tid_low, u32 tid_high)

◆ callBootloaderRunTitleCustom_2x_fn

typedef void(* callBootloaderRunTitleCustom_2x_fn) (u8 mediatype, u32 *argbuf, u32 argbuflength, u32 tid_low, u32 tid_high, memmap_t *mmap)

◆ getBestProcess_2x_fn

typedef void(* getBestProcess_2x_fn) (u32 sectionSizes[3], bool *requirements, int num_requirements, processEntry_s *out, int out_size, int *out_len)

Function Documentation

◆ bootloaderJump()

static void bootloaderJump ( void  )
static
Here is the caller graph for this function:

◆ deinit()

static void deinit ( void  )
static
Here is the caller graph for this function:

◆ init()

static bool init ( void  )
static

◆ launchFile()

static void launchFile ( const char *  path,
argData_s args,
executableMetadata_s em 
)
static
Here is the call graph for this function:

Variable Documentation

◆ argBuf

u32 argBuf[ENTRY_ARGBUFSIZE/sizeof(u32)]
static

◆ argBufLen

u32 argBufLen
static

◆ fileHandle

Handle fileHandle
static

◆ loader_Ninjhax2

const loaderFuncs_s loader_Ninjhax2
Initial value:
=
{
.name = "hax 2.x",
.init = init,
.deinit = deinit,
.launchFile = launchFile,
}
static bool init(void)
Definition: hax2.c:30
static void launchFile(const char *path, argData_s *args, executableMetadata_s *em)
Definition: hax2.c:55
Definition: launch.h:9
static void deinit(void)
Definition: hax2.c:35
Definition: launch.h:10

◆ memMapBuf

u32 memMapBuf[0x40]
static

◆ targetMediatype

u8 targetMediatype
static

◆ targetProcess

s32 targetProcess = -1
static

◆ targetTid

u64 targetTid
static

◆ useMemMap

bool useMemMap
static