aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorspicyjpeg <thatspicyjpeg@gmail.com>2023-04-04 01:14:36 +0200
committerspicyjpeg <thatspicyjpeg@gmail.com>2023-04-04 01:14:36 +0200
commitf7d9c309661f3027d5bfd119b3daf814e26ef589 (patch)
tree36299daf69c4f435a0f32ebb0b52ada9c799700a /examples
parentfd846206ae9419af5ed227989b3ad49b541a823c (diff)
downloadpsn00bsdk-f7d9c309661f3027d5bfd119b3daf814e26ef589.tar.gz
Add PCDRV API, fix warnings and DS region misdetection
Diffstat (limited to 'examples')
-rw-r--r--examples/sound/cdstream/main.c2
-rw-r--r--examples/system/childexec/child/child.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/examples/sound/cdstream/main.c b/examples/sound/cdstream/main.c
index 324abb2..53b88e6 100644
--- a/examples/sound/cdstream/main.c
+++ b/examples/sound/cdstream/main.c
@@ -212,7 +212,7 @@ void spu_irq_handler(void) {
// if str_ctx.state is set to STATE_DATA_NEEDED and fetch the next chunk.
}
-void cd_read_handler(int event, uint8_t *payload) {
+void cd_read_handler(CdlIntrResult event, uint8_t *payload) {
// Attempt to read the chunk again if an error has occurred, otherwise
// start uploading it to SPU RAM.
if (event == CdlDiskError) {
diff --git a/examples/system/childexec/child/child.c b/examples/system/childexec/child/child.c
index b52dd32..e5e16b9 100644
--- a/examples/system/childexec/child/child.c
+++ b/examples/system/childexec/child/child.c
@@ -1,5 +1,6 @@
#include <stdint.h>
#include <stdio.h>
+#include <psxetc.h>
#include <psxapi.h>
#include <psxgpu.h>
#include <psxgte.h>