aboutsummaryrefslogtreecommitdiff
path: root/Source/PltParser.c
diff options
context:
space:
mode:
authorXavier ASUS <xavi92psx@gmail.com>2018-11-30 01:34:40 +0100
committerXavier ASUS <xavi92psx@gmail.com>2018-11-30 01:34:40 +0100
commit8fcf5bf1f74873f49b792d3e3f661a2e7feda673 (patch)
treed134d1c9d50aefcd00f973d34d14c519b0526c77 /Source/PltParser.c
parentc33fcca6d44264834baf42de65fe9d19c0f62ff4 (diff)
downloadairport-8fcf5bf1f74873f49b792d3e3f661a2e7feda673.tar.gz
Removed SIO interrupt (it caused VBlank ISR not to be triggered).
Added Gfx wait on LoadMenuEnd(). Otherwise, some levels would not start after loading all required files. Also, added GPU wait on Menu.c before entering the main loop. An invalid index inside sound table was being accessed when creating an arrival flight. This made the game crash only under real hardware. Other minor changes and fixes.
Diffstat (limited to 'Source/PltParser.c')
-rw-r--r--Source/PltParser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/PltParser.c b/Source/PltParser.c
index a47e3c9..47a7e60 100644
--- a/Source/PltParser.c
+++ b/Source/PltParser.c
@@ -436,13 +436,13 @@ uint8_t* PltParserGenerateFile(TYPE_PLT_CONFIG* ptrPltConfig)
{
// Set departure flight
- memcpy(&PltBuffer[i], "DEPARTURE", sizeof ("DEPARTURE") * sizeof (uint8_t) );
+ memmove(&PltBuffer[i], "DEPARTURE", sizeof ("DEPARTURE") * sizeof (uint8_t) );
i += strlen("DEPARTURE");
}
else
{
// Set arrival flight
- memcpy(&PltBuffer[i], "ARRIVAL", sizeof ("ARRIVAL") * sizeof (uint8_t) );
+ memmove(&PltBuffer[i], "ARRIVAL", sizeof ("ARRIVAL") * sizeof (uint8_t) );
i += strlen("ARRIVAL");
}
}