brazerzkidaibids.blogg.se

Sixtyforce cartridges
Sixtyforce cartridges








Printf( " \n\tInput save file is not a Sixtyforce save! \n ") * Prepare file stream position for data access */įseek(infile, sizeof( sixtyforce_savedata_header_t), SEEK_SET) If (sixtyforce_ctrlpak_available) sixtyforce_pak0_data_size = (infile_size - sixtyforce_pak0_data_offset) // Remaining data Sixtyforce_ctrlpak_available = (data = be_u32(SIXTYFORCE_PAK0_MAGIC)) If (src_fmt = FORMAT_TYPE_SIXTYFORCE & infile_size sixtyforce_pak0_data_offset)įseek(infile, sizeof( sixtyforce_savedata_header_t) + save_size, SEEK_SET) įread(&data, 1, sizeof( uint32_t), infile) If ((infile_size % 4) != 0) printf( " \n\tFile size is not a multiple of 4! \n ") If (infile_size > CtrlPakx8) printf( " \n\tFile size is greater than %u KiB! \n ", (CtrlPakx8 / 1024)) If (!infile_size) printf( " \n\tFile size is zero! \n ") Printf( " \tDetected CPU architecture: %s Endian. Printf( " \n\tSimple Byteswapper for N64 Saves v %s - By DarkMatterCore \n ", VERSION) Memset(&sixtyforce_savedata_header, 0, sizeof( sixtyforce_savedata_header_t)) Sixtyforce_savedata_header_t sixtyforce_savedata_header Size_t sixtyforce_pak0_data_offset = 0, sixtyforce_pak0_data_size = 0 Size_t infile_size = 0, save_size = 0, outfile_size = 0 īool remove_outfile = true, byteswap = false īool sixtyforce_ctrlpak_available = false Int input = - 1, output = - 1, src_fmt = - 1, dst_fmt = - 1 Printf( " \n\t- datasize2: 0x %08x ( %u bytes). Printf( " \n\t- datasize1: 0x %08x ( %u bytes).

sixtyforce cartridges

", be_u32(header-> savesize), be_u32(header-> savesize)) Printf( " \n\t- savesize: 0x %08x ( %u bytes). Hexdump(header-> rom_header, sizeof(header-> rom_header)) ", be_u32(header-> filesize), be_u32(header-> filesize)) Printf( " \n\t- filesize: 0x %08x ( %u bytes). # define VALID_SAVE_TYPE( x) ((x) > SAVE_TYPE_NONE & (x) FORMAT_TYPE_NONE & (x) 8 ? 8 : (size - i)) įor(j = 0 j = 0x20 & data magic1) # define SIXTYFORCE_PAK0_MAGIC 0x70616B30 // "pak0" (Big Endian) # define SIXTYFORCE_SAVE_TYPE( x) ((x) = SAVE_TYPE_EEPROM ? SIXTYFORCE_EEPROM : ((x) = SAVE_TYPE_SRAM ? SIXTYFORCE_SRAM : SIXTYFORCE_FLASHRAM)) # define SIXTYFORCE_UNKNOWN ( uint32_t) 0x04 # define CHK_ARG( x) (strlen(argv) = strlen((x)) & !strncmp((x), argv, strlen((x)))) # define CtrlPakx8 0x40000 // 256 KiB (SRAM 2048 Kbits) (used in Project64) # define CtrlPak 0x8000 // 32 KiB (SRAM 256 Kbits) (used in physical Controller Paks) (used in Sixtyforce)

sixtyforce cartridges

# define FlashRAM 0x20000 // 128 KiB (FlashRAM 1024 Kbits) (used in physical cartridges) (used in all emulators) # define SRAM 0x8000 // 32 KiB (SRAM 256 Kbits) (used in physical cartridges) (used in all emulators) # define EEPROMx32 0x4000 // 16 KiB (EEPROM 128 Kbits) (used in Wii N64 Virtual Console) # define EEPROMx8 0x1000 // 4 KiB (EEPROM 32 Kbits) (used in Sixtyforce) # define EEPROMx4 0x800 // 2 KiB (EEPROM 16 Kbits) (used in physical cartridges) (used in Project64 and Wii64/Not64) # define EEPROM 0x200 // 512 bytes (EEPROM 4 Kbits) (used in physical cartridges) # if defined(_MINGW32_) || defined(_MSC_VER)










Sixtyforce cartridges