mirror of
https://github.com/modmii/YAWM-ModMii-Edition.git
synced 2025-02-25 17:03:38 +01:00
48 lines
1.0 KiB
C
48 lines
1.0 KiB
C
#ifndef _TITLE_H_
|
|
#define _TITLE_H_
|
|
|
|
#include <ogc/es.h>
|
|
|
|
/* "cIOS build tag" */
|
|
enum
|
|
{
|
|
CIOS_INFO_MAGIC = 0x1EE7C105,
|
|
CIOS_INFO_VERSION = 1
|
|
};
|
|
|
|
typedef struct
|
|
{
|
|
u32 hdr_magic; // 0x1EE7C105
|
|
u32 hdr_version; // 1
|
|
u32 cios_version; // Eg. 11
|
|
u32 ios_base; // Eg. 60
|
|
|
|
char name[16];
|
|
char cios_version_str[16];
|
|
|
|
char _padding[16];
|
|
} cIOSInfo;
|
|
_Static_assert(sizeof(cIOSInfo) == 0x40, "cIOSInfo struct size wrong");
|
|
|
|
/* Variables */
|
|
extern u32 vWiiCommonKey[4];
|
|
|
|
/* Prototypes */
|
|
s32 Title_ZeroSignature(signed_blob *);
|
|
s32 Title_FakesignTik(signed_blob *);
|
|
s32 Title_FakesignTMD(signed_blob *);
|
|
s32 Title_GetList(u64 **, u32 *);
|
|
s32 Title_GetTicketViews(u64, tikview **, u32 *);
|
|
s32 Title_GetTMDView(u64, tmd_view **, u32 *);
|
|
s32 Title_GetTMD(u64, signed_blob **, u32 *);
|
|
s32 Title_GetTMDContents(signed_blob *, u32**, u32*);
|
|
s32 Title_GetVersion(u64, u16 *);
|
|
s32 Title_GetSysVersion(u64, u64 *);
|
|
s32 Title_GetSize(u64, u32 *);
|
|
s32 Title_GetIOSVersions(u8 *, u32 *);
|
|
s32 Title_GetcIOSInfo(int IOS, cIOSInfo*);
|
|
|
|
void Title_SetupCommonKeys(void);
|
|
|
|
#endif
|