summaryrefslogtreecommitdiff
path: root/include/librfu.h
diff options
context:
space:
mode:
authorluckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com>2020-06-13 13:40:57 -0400
committerluckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com>2020-06-13 13:40:57 -0400
commite2eb17dcbd8f9021b7e9fc805c8c03fac6b3b255 (patch)
tree5705aaca2ef0713f55ca22a4a814161e26aa4582 /include/librfu.h
parent1ce33843b645e3139bd414c2d048c628967f4e07 (diff)
parentf75c048434d5dc7538e628206c29a0730404db81 (diff)
Merge branch 'master' of https://github.com/pret/pokefirered
Diffstat (limited to 'include/librfu.h')
-rw-r--r--include/librfu.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/include/librfu.h b/include/librfu.h
index 3c9d776f1..88e77acbd 100644
--- a/include/librfu.h
+++ b/include/librfu.h
@@ -90,13 +90,8 @@
#define RFU_MBOOT_DOWNLOADER_SERIAL_NO 0x0000 // The game serial number of the multi-boot downloader (programs that boot without a Game Pak)
-#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
@@ -376,8 +371,7 @@ struct NIComm
u16 state; // Communication state of slot
u16 failCounter; // Count of failed transmissions/receptions (Count is increased when transmission/reception of data does not succeed within 1PF=16.7 ms)
const u8 *now_p[WINDOW_COUNT]; // Address of current send/receive (The data is divided into WINDOW_COUNT blocks and sent in payloadSize units.)
- // remainSize is u32 in SDK. This is a hack to match ASM
- s32 remainSize; // Size of remaining communication data
+ u32 remainSize; // Size of remaining communication data
u16 errorCode; // Error code
u8 bmSlot; // Expresses the current communication slot in bits
// (When sending from the Master, because multiple slaves can be specified with bmSlot, communications are terminated based on the failCounter for each child device)