summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2020-02-10 13:19:15 -0500
committerPikalaxALT <pikalaxalt@gmail.com>2020-02-11 08:57:39 -0500
commitfafcdf3c60d34d09d6cac0058c5a679783cbb11c (patch)
tree7253fd25fd34c7f31e7a9b726204a5ac4b6bc498 /include
parent371f9fda6e16291eb2f7b99ab078b6a0efd60bd8 (diff)
Multiversion support for api buff size
Diffstat (limited to 'include')
-rw-r--r--include/librfu.h6
1 files changed, 5 insertions, 1 deletions
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