aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorspicyjpeg <88942473+spicyjpeg@users.noreply.github.com>2022-03-20 10:56:23 +0100
committerspicyjpeg <88942473+spicyjpeg@users.noreply.github.com>2022-03-20 10:56:23 +0100
commit4bbfe640a8c357137524e797a8d2bd0a94d3abfa (patch)
treecd1b0ac173ffb2e27d8116637434f413e18542f4 /examples
parent8c68b4b8a5bf7757b8e4d6bc2f68f10584b0deb1 (diff)
downloadpsn00bsdk-4bbfe640a8c357137524e797a8d2bd0a94d3abfa.tar.gz
Remove stdint.h, fix n00bdemo crashing
Diffstat (limited to 'examples')
-rw-r--r--examples/demos/n00bdemo/logo.c4
-rw-r--r--examples/demos/n00bdemo/main.c5
-rw-r--r--examples/io/pads/spi.c1
-rw-r--r--examples/io/pads/spi.h1
4 files changed, 7 insertions, 4 deletions
diff --git a/examples/demos/n00bdemo/logo.c b/examples/demos/n00bdemo/logo.c
index 40160e7..784c9e1 100644
--- a/examples/demos/n00bdemo/logo.c
+++ b/examples/demos/n00bdemo/logo.c
@@ -51,9 +51,11 @@ typedef struct {
int size;
} NODE;
+extern NODE _end[];
+
void DumpHeap() {
- NODE *n = (NODE*)GetBSSend();
+ NODE *n = _end;
printf( "--\n" );
diff --git a/examples/demos/n00bdemo/main.c b/examples/demos/n00bdemo/main.c
index cb64c42..439bccc 100644
--- a/examples/demos/n00bdemo/main.c
+++ b/examples/demos/n00bdemo/main.c
@@ -232,12 +232,11 @@ void unpackModels() {
}
void init() {
+ // Init display
+ initDisplay();
#ifdef SYSTEM_573_SUPPORT
system573Setup();
#endif
-
- // Init display
- initDisplay();
FntLoad( 960, 0 );
diff --git a/examples/io/pads/spi.c b/examples/io/pads/spi.c
index 43b5bc3..133782c 100644
--- a/examples/io/pads/spi.c
+++ b/examples/io/pads/spi.c
@@ -27,6 +27,7 @@
*/
#include <stdint.h>
+#include <stddef.h>
#include <string.h>
#include <stdlib.h>
#include <psxetc.h>
diff --git a/examples/io/pads/spi.h b/examples/io/pads/spi.h
index 7d4d75b..8c17df3 100644
--- a/examples/io/pads/spi.h
+++ b/examples/io/pads/spi.h
@@ -7,6 +7,7 @@
#define __SPI_H
#include <stdint.h>
+#include <stddef.h>
#include <psxpad.h>
// Maximum request/response length (34 bytes for pads, 140 for memory cards).