Document ereader_helpers.c

This commit is contained in:
PikalaxALT
2020-02-11 16:26:50 -05:00
parent 11af7a0751
commit 325c5b3f11
3 changed files with 113 additions and 79 deletions
+4 -4
View File
@@ -9,7 +9,7 @@
#include "decompress.h"
#include "link.h"
#include "link_rfu.h"
#include "unk_815c27c.h"
#include "ereader_helpers.h"
#include "util.h"
#include "script.h"
#include "event_data.h"
@@ -108,11 +108,11 @@ u8 SendUnknownSerialData_Run(struct MEvent_Str_1 *mgr)
{
u8 resp = 0;
mgr->status = EReaderHandleTransfer(1, mgr->size, mgr->data, 0);
if ((mgr->status & 0x13) == 0x10)
if ((mgr->status & 0x13) == 0x10) // checksum OK and xfer off
resp = 1;
if (mgr->status & 8)
if (mgr->status & 8) // cancelled by player
resp = 2;
if (mgr->status & 4)
if (mgr->status & 4) // timed out
resp = 3;
gShouldAdvanceLinkState = 0;
return resp;