RetroArch
hbl.h
Go to the documentation of this file.
1 #ifndef __WIIU_HBL_LOADER_H__
2 #define __WIIU_HBL_LOADER_H__
3 
4 #include "wiiu/types.h"
5 
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9 
10 #ifndef MEM_BASE
11 #define MEM_BASE (0x00800000)
12 #endif
13 
14 #define ARGV_PTR (*(void* volatile *)(MEM_BASE + 0x1300 + 0x80))
15 
16 
17 #define MAKE_MAGIC(c0, c1, c2, c3) (((c0) << 24) |((c1) << 16) |((c2) << 8) | c3)
18 #define ARGV_MAGIC MAKE_MAGIC('_', 'a', 'r', 'g')
19 
20 int HBL_loadToMemory(const char *filepath, u32 args_size);
21 void* getApplicationEndAddr(void);
22 
23 #ifdef __cplusplus
24 }
25 #endif
26 
27 #endif /* __WIIU_HBL_LOADER_H__ */
void * getApplicationEndAddr(void)
Definition: hbl.c:83
static char * filepath
Definition: mpv-libretro.c:60
uint32_t u32
32bit unsigned integer
Definition: gctypes.h:19
int HBL_loadToMemory(const char *filepath, u32 args_size)
Definition: hbl.c:245