summaryrefslogtreecommitdiff
path: root/src/engine/link.c
diff options
context:
space:
mode:
authorCameron Hall <cameronghall@cox.net>2018-01-17 21:04:48 -0600
committerCameron Hall <cameronghall@cox.net>2018-01-17 21:04:48 -0600
commit8a21a49a35d91ba9b07ac5027a0560ddf1f4ad25 (patch)
treee1bafd203358434eec6bbde63b1b4e53750ff51d /src/engine/link.c
parenta02a85f477cbf44aa0370de8f40bd8ced77513c2 (diff)
add some debug changes that I missed
Diffstat (limited to 'src/engine/link.c')
-rw-r--r--src/engine/link.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/engine/link.c b/src/engine/link.c
index 3bcacd12b..a716d5c2b 100644
--- a/src/engine/link.c
+++ b/src/engine/link.c
@@ -13,6 +13,7 @@
#include "constants/songs.h"
#include "sound.h"
#include "sprite.h"
+#include "string_util.h"
#include "strings2.h"
#include "task.h"
#include "text.h"
@@ -1396,12 +1397,31 @@ void CB2_LinkError(void)
static void CB2_PrintErrorMessage(void)
{
- u8 array[64] __attribute__((unused)); // unused
+ u8 array[32] __attribute__((unused)); // unused
+ u8 array2[32] __attribute__((unused)); // unused
switch (gMain.state)
{
case 0:
Menu_PrintTextPixelCoords(gMultiText_LinkError, 20, 56, 1);
+#ifdef DEBUG
+ StringCopy(array, sColorCodes);
+
+ ConvertIntToHexStringN(array2, sErrorLinkStatus, STR_CONV_MODE_LEADING_ZEROS, 8);
+ StringAppend(array, array2);
+
+ StringAppend(array, sEmptyString);
+
+ ConvertIntToHexStringN(array2, sErrorLastSendQueueCount, STR_CONV_MODE_LEADING_ZEROS, 2);
+ StringAppend(array, array2);
+
+ StringAppend(array, sEmptyString);
+
+ ConvertIntToHexStringN(array2, sErrorLastRecvQueueCount, STR_CONV_MODE_LEADING_ZEROS, 2);
+ StringAppend(array, array2);
+
+ Menu_PrintText(array, 2, 15);
+#endif
break;
case 30:
case 60: