From fafcdf3c60d34d09d6cac0058c5a679783cbb11c Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Mon, 10 Feb 2020 13:19:15 -0500 Subject: Multiversion support for api buff size --- include/librfu.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/librfu.h') diff --git a/include/librfu.h b/include/librfu.h index 83523433c..50dd1c3db 100644 --- a/include/librfu.h +++ b/include/librfu.h @@ -88,9 +88,13 @@ #define RFU_MBOOT_DOWNLOADER_SERIAL_NO 0x0000 // The game serial number of the multi-boot downloader (programs that boot without a Game Pak) -// Sizes are 0x28 larger in v1028 +#if LIBRFU_VERSION >= 1028 +#define RFU_API_BUFF_SIZE_RAM 0x0e8c // Necessary size for buffer specified by rfu_initializeAPI (fast communication version that operates the library SIO interrupt routines in RAM) +#define RFU_API_BUFF_SIZE_ROM 0x052c // Necessary size for buffer specified by rfu_initializeAPI (fast communication version that operates the library SIO interrupt routines in ROM) +#else #define RFU_API_BUFF_SIZE_RAM 0x0e64 // Necessary size for buffer specified by rfu_initializeAPI (fast communication version that operates the library SIO interrupt routines in RAM) #define RFU_API_BUFF_SIZE_ROM 0x0504 // Necessary size for buffer specified by rfu_initializeAPI (fast communication version that operates the library SIO interrupt routines in ROM) +#endif #define RFU_CHILD_MAX 4 // Maximum number of slaves that can be connected to one parent device -- cgit v1.2.3