Compare commits

..

1 Commits

Author SHA1 Message Date
thepikachugamer
d9eaa1c1fb
Merge 0895174fbb into 608d954afe 2024-04-24 01:09:29 +00:00
2 changed files with 4 additions and 1 deletions

View File

@ -29,7 +29,7 @@ typedef struct
} cIOSInfo;
// _Static_assert(sizeof(cIOSInfo) == 0x40, "Incorrect cIOSInfo struct size, do i really need to pack this..?");
#define IS_WIIU (*(vu16*)0xCD0005A0 == 0xCAFE)
#define IS_WIIU (*(vu16*)0xCD005A0 == 0xCAFE)
extern u32 boot2version;

View File

@ -729,6 +729,9 @@ s32 Wad_Install(FILE *fp)
__aligned(0x20)
cIOSInfo build_tag = {};
printf("build_tag@%p\n", &build_tag);
__asm__ volatile ( ".long -1" );
ret = FSOPReadOpenFile(fp, (void*)&build_tag, content0_offset, sizeof(cIOSInfo));
if (ret != 1)
goto err;