summaryrefslogtreecommitdiff
path: root/src/librfu_rfu.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2021-10-15 22:46:43 -0400
committerGitHub <noreply@github.com>2021-10-15 22:46:43 -0400
commite1900efe1ead0e3344ca95a327b453617c807b6a (patch)
tree1f182808fc3f05d8e2accb0a3a9f47936debc0fd /src/librfu_rfu.c
parentdef6cc8158c09f3458866f1fa5983e58022c4101 (diff)
parenta4a3c1c9e5a0026415330eab9bea2f8f3e83e0a3 (diff)
Merge branch 'master' into doc-miscbattle
Diffstat (limited to 'src/librfu_rfu.c')
-rw-r--r--src/librfu_rfu.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/librfu_rfu.c b/src/librfu_rfu.c
index de0056464..9a5db6d9d 100644
--- a/src/librfu_rfu.c
+++ b/src/librfu_rfu.c
@@ -1,6 +1,14 @@
#include <limits.h>
#include "librfu.h"
+// If expanding the length of the player name and wireless link functionality is
+// desired, ensure that the name string is limited in size when it's copied from the
+// saveblock to any Rfu-related fields (e.g. in SetHostRfuUsername).
+// If wireless link functionality is not desired ignore or delete this warning.
+#if RFU_USER_NAME_LENGTH < (PLAYER_NAME_LENGTH + 1)
+#warning "The Wireless Adapter hardware expects a username of no more than 8 bytes."
+#endif
+
struct LLSFStruct
{
u8 frameSize;