PayloadLoaderInstaller/source/common/common.h

51 lines
995 B
C
Raw Normal View History

2020-10-15 20:14:00 +02:00
#pragma once
#include <cstdint>
2020-11-30 17:49:32 +01:00
#include <coreinit/mcp.h>
2020-10-15 20:14:00 +02:00
#ifdef __cplusplus
extern "C" {
#endif
#define VERSION "v0.1"
enum SYSTEM_XML_DEFAULT_TITLE_ID {
WII_U_MENU_EUR,
WII_U_MENU_USA,
WII_U_MENU_JAP,
HEALTH_SAFETY_EUR,
HEALTH_SAFETY_USA,
2020-11-30 17:49:32 +01:00
HEALTH_SAFETY_JPN,
MAX_SYSTEM_XML_DEFAULT_TITLE_ID
2020-10-15 20:14:00 +02:00
};
typedef struct systemXMLInformation {
SYSTEM_XML_DEFAULT_TITLE_ID type;
uint64_t titleId;
char hash[41];
2020-10-17 00:17:55 +02:00
char hash2[41];
2020-10-15 20:14:00 +02:00
} systemXMLInformation;
typedef struct compatApps {
uint64_t titleId;
const char *appName;
bool onTheWiiU;
char path[255];
char fstHash[41];
char cosHash[41];
2020-11-30 17:49:32 +01:00
char tmdHash[41];
2020-10-15 20:14:00 +02:00
} appInformation;
2020-11-30 17:49:32 +01:00
typedef struct _gList_t {
uint64_t tid;
char name[64];
MCPRegion region;
} gList_t;
extern systemXMLInformation systemXMLHashInformation[];
extern appInformation supportedApps[];
extern _gList_t GameList[];
2020-10-15 20:14:00 +02:00
#ifdef __cplusplus
}
#endif