Merge pull request #6 from endrift/master

Update to latest ctrulib API
This commit is contained in:
bunnei 2016-01-03 23:34:26 -05:00
commit 357f24ac6e
2 changed files with 4 additions and 4 deletions

View File

@ -45,7 +45,7 @@ int main()
printf("Press A to continue...\n");
}
gspWaitForEvent(GSPEVENT_VBlank0, false);
gspWaitForEvent(GSPGPU_EVENT_VBlank0, false);
}
consoleClear();

View File

@ -38,13 +38,13 @@ void DumpSharedRomFS(u32* archive_binary_lowpath) {
u64 romfs_size = 0;
u32 romfs_bytes_read = 0;
FS_archive savedatacheck_archive = { 0x2345678a, { PATH_BINARY, 16, (u8*)archive_binary_lowpath } };
FS_Archive savedatacheck_archive = { 0x2345678a, { PATH_BINARY, 16, (u8*)archive_binary_lowpath } };
u8 file_binary_lowpath[20] = {};
FS_path romfs_path = { PATH_BINARY, 20, file_binary_lowpath };
FS_Path romfs_path = { PATH_BINARY, 20, file_binary_lowpath };
printf("Dumping SaveDataCheck RomFS (%s)... ", output_file.c_str());
FSUSER_OpenFileDirectly(NULL, &romfs_handle, savedatacheck_archive, romfs_path, FS_OPEN_READ, FS_ATTRIBUTE_NONE);
FSUSER_OpenFileDirectly(&romfs_handle, savedatacheck_archive, romfs_path, FS_OPEN_READ, 0);
FSFILE_GetSize(romfs_handle, &romfs_size);
std::unique_ptr<u8> romfs_data_buffer(new u8[romfs_size]);