2022-07-18 18:42:59 +02:00
|
|
|
#ifndef __APPBOOT_H__
|
|
|
|
#define __APPBOOT_H__
|
|
|
|
|
2023-02-02 12:52:32 +01:00
|
|
|
typedef void (*entrypoint)();
|
|
|
|
|
|
|
|
typedef struct _dolhdr
|
|
|
|
{
|
|
|
|
u32 offsetText[7];
|
|
|
|
u32 offsetData[11];
|
|
|
|
u32 addressText[7];
|
|
|
|
u32 addressData[11];
|
|
|
|
u32 sizeText[7];
|
|
|
|
u32 sizeData[11];
|
|
|
|
u32 addressBSS;
|
|
|
|
u32 sizeBSS;
|
|
|
|
u32 entrypoint;
|
|
|
|
} dolhdr;
|
|
|
|
|
2023-02-17 00:40:02 +01:00
|
|
|
bool LoadApp(const char* path, const char* filename);
|
2022-07-18 18:42:59 +02:00
|
|
|
u8* GetApp(u32* size);
|
|
|
|
void LaunchApp(void);
|
2023-02-02 12:52:32 +01:00
|
|
|
void SetIos(int ios);
|
|
|
|
bool LoadBooter(entrypoint* entry);
|
2022-07-18 18:42:59 +02:00
|
|
|
|
|
|
|
#endif
|