27 lines
468 B
C
Raw Normal View History

2018-05-15 10:30:34 -07:00
#pragma once
#include "common.h"
extern void (*__system_retAddr)(void);
enum
{
LOADER_SHOW_REBOOT = 0x01,
LOADER_NEED_SCAN = 0x02
};
typedef struct
{
2020-03-05 15:50:39 +01:00
/* Mandatory fields */
const char* name;
u32 flags;
bool (* init)(void);
void (* deinit)(void);
void (* launchFile)(const char* path, argData_s* args, executableMetadata_s* em);
2020-03-05 15:50:39 +01:00
/* Optional fields */
void (* useTitle)(u64 tid, u8 mediatype);
} loaderFuncs_s;
2020-03-05 15:50:39 +01:00
Handle launchOpenFile(const char* path);