Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1b06e1d
commit 51892f1
Showing
9 changed files
with
1,112 additions
and
61 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#pragma once | ||
|
||
#include "../backup.h" | ||
|
||
// | ||
// Action Replay Cartridge | ||
// | ||
|
||
#define CARTRIDGE_MEMORY 0x02000000 | ||
#define ACTION_REPLAY_MAGIC_OFFSET 0x50 | ||
#define ACTION_REPLACE_SAVES_OFFSET 0x20000 | ||
#define ACTION_REPLACE_SAVES_SIZE 0x60000 // BUGBUG: just guessing here | ||
#define ACTION_REPLAY_MAGIC "ACTION REPLAY" | ||
#define ACTION_REPLAY_PARTITION_SIZE 64 | ||
|
||
#define RLE01_MAGIC "RLE01" | ||
|
||
bool actionReplayIsBackupDeviceAvailable(int backupDevice); | ||
int actionReplayListSaveFiles(int backupDevice, PSAVES fileSaves, unsigned int numSaves); | ||
int actionReplayReadSaveFile(int backupDevice, char* filename, unsigned char* ouBuffer, unsigned int outBufSize); | ||
int actionReplayWriteSaveFile(int backupDevice, char* filename, unsigned char* saveData, unsigned int saveDataLen); | ||
int actionReplayDeleteSaveFile(int backupDevice, char* filename); | ||
|
||
// utility functions | ||
int decompressRLE01(unsigned char *src, unsigned int srcSize, unsigned char *dest, unsigned int* bytesNeeded); | ||
int parseUncompressedMemory(unsigned char* arpUncompressed, unsigned int uncompressedSize, PSAVES saves, unsigned int numSaves); | ||
|
Oops, something went wrong.