From 01fe30bd8bae59ab954751b08bcc1d158eff7edb Mon Sep 17 00:00:00 2001 From: "John Wilbert M. Villamor" Date: Thu, 1 Jul 2021 08:45:46 +0800 Subject: Added int*_t and uint*_t variable types and updated type definitions in psxgpu and psxcd, to improve compatibility with code written for the official SDK. --- examples/system/childexec/parent.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'examples/system/childexec/parent.c') diff --git a/examples/system/childexec/parent.c b/examples/system/childexec/parent.c index ed5710a..58f03f7 100644 --- a/examples/system/childexec/parent.c +++ b/examples/system/childexec/parent.c @@ -2,7 +2,7 @@ * LibPSn00b Example Programs * * Child Program Execution Example - * 2020 Meido-Tek Productions / PSn00bSDK Project + * 2020 - 2021 Meido-Tek Productions / PSn00bSDK Project * * This example demonstrates how to execute a child PS-EXE from a parent * PS-EXE using the Exec() function, and transferring execution back from @@ -14,8 +14,13 @@ * * Example by Lameguy64 * + * Changelog: + * + * May 10, 2021 - Variable types updated for psxgpu.h changes. + * */ +#include #include #include #include @@ -43,7 +48,7 @@ DISPENV disp; DRAWENV draw; char pribuff[2][65536]; /* Primitive packet buffers */ -unsigned int ot[2][OT_LEN]; /* Ordering tables */ +u_long ot[2][OT_LEN]; /* Ordering tables */ char *nextpri; /* Pointer to next packet buffer offset */ int db = 0; /* Double buffer index */ @@ -98,7 +103,7 @@ void init() { /* Upload the ball texture */ printf("Upload texture... "); - GetTimInfo( (unsigned int*)ball16c, &tim ); /* Get TIM parameters */ + GetTimInfo( (u_long*)ball16c, &tim ); /* Get TIM parameters */ LoadImage( tim.prect, tim.paddr ); /* Upload texture to VRAM */ if( tim.mode & 0x8 ) { -- cgit v1.2.3