Skip to content

Fix SceSize declaration missing in pspdmac.h #272

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/base/psptypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ typedef int SceBool;
typedef void SceVoid;
typedef void * ScePVoid;

typedef unsigned int SceSize;

/* PSP types. */

Expand Down
1 change: 1 addition & 0 deletions src/kernel/psploadexec_kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#define PSPLOADEXEC_KERNEL_H

#include <pspkerneltypes.h>
#include <psptypes.h>
#include <psploadexec.h>

/** @defgroup LoadExecKernel Interface to the LoadExecForKernel library.
Expand Down
1 change: 1 addition & 0 deletions src/kernel/pspmodulemgr_kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#define __MODMGRKERNEL_H__

#include <pspkerneltypes.h>
#include <psptypes.h>
#include <pspmodulemgr.h>

/** @defgroup ModuleMgrKern Kernel Module Manager Library
Expand Down
1 change: 1 addition & 0 deletions src/kernel/pspsysmem_kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#define PSPSYSMEMKERNEL_H

#include <pspkerneltypes.h>
#include <psptypes.h>
#include <pspsysmem.h>

/** @defgroup SysMemKern System Memory Manager Kernel
Expand Down
1 change: 1 addition & 0 deletions src/kernel/pspthreadman_kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#define PSPTHREADMANKERNEL_H

#include <pspkerneltypes.h>
#include <psptypes.h>
#include <pspthreadman.h>

/** @defgroup ThreadmanKern Thread Manager kernel functions
Expand Down
1 change: 1 addition & 0 deletions src/nand/pspnand_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#define PSPNAND_DRIVER_H

#include <pspkerneltypes.h>
#include <psptypes.h>

#ifdef __cplusplus
extern "C" {
Expand Down
1 change: 1 addition & 0 deletions src/net/psphttp.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#define __PSPHTTP_H__

#include <pspkerneltypes.h>
#include <psptypes.h>

#if defined(__cplusplus)
extern "C" {
Expand Down
1 change: 1 addition & 0 deletions src/net/pspnet_resolver.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ extern "C" {

#include <netinet/in.h>
#include <pspkerneltypes.h>
#include <psptypes.h>

/**
* Inititalise the resolver library
Expand Down
2 changes: 2 additions & 0 deletions src/registry/pspreg.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
extern "C" {
#endif

#include <psptypes.h>

/** @addtogroup Reg Registry Kernel Library */
/**@{*/

Expand Down
1 change: 1 addition & 0 deletions src/samples/audio/polyphonic/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <pspkernel.h>
#include <pspdebug.h>
#include <pspaudiolib.h>
#include <psptypes.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
Expand Down
1 change: 1 addition & 0 deletions src/samples/audio/wavegen/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <pspaudio.h>
#include <pspdisplay.h>
#include <pspctrl.h>
#include <psptypes.h>

#include <stdlib.h>
#include <string.h>
Expand Down
1 change: 1 addition & 0 deletions src/samples/controller/basic/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <pspctrl.h>
#include <stdlib.h>
#include <string.h>
#include <psptypes.h>

/* Define the module info section */
PSP_MODULE_INFO("CONTROLTEST", 0, 1, 1);
Expand Down
1 change: 1 addition & 0 deletions src/samples/debug/debugkb/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <stdio.h>
#include <string.h>
#include <pspdebugkb.h>
#include <psptypes.h>

/* Define the module info section */
PSP_MODULE_INFO("Debug Screen Text Input", 0, 1, 1);
Expand Down
1 change: 1 addition & 0 deletions src/samples/debug/exception/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <pspdebug.h>
#include <pspctrl.h>
#include <pspdisplay.h>
#include <psptypes.h>

PSP_MODULE_INFO("EXTEST", 0x1000, 1, 1);
/* Define the main thread's attribute value (optional) */
Expand Down
1 change: 1 addition & 0 deletions src/samples/debug/gdb/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <pspctrl.h>
#include <pspdisplay.h>
#include <stdio.h>
#include <psptypes.h>

PSP_MODULE_INFO("EXTEST", 0x1000, 1, 1);
/* Define the main thread's attribute value (optional) */
Expand Down
1 change: 1 addition & 0 deletions src/samples/debug/kprintf/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*/
#include <pspkernel.h>
#include <pspdebug.h>
#include <psptypes.h>

PSP_MODULE_INFO("KPTEST", 0x1000, 1, 1);
/* Define the main thread's attribute value (optional) */
Expand Down
1 change: 1 addition & 0 deletions src/samples/debug/profiler/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <pspkernel.h>
#include <pspdebug.h>
#include <pspdisplay.h>
#include <psptypes.h>
#include <string.h>

PSP_MODULE_INFO("PROFILER", 0x1000, 1, 1);
Expand Down
1 change: 1 addition & 0 deletions src/samples/debug/prxdecrypt/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*/
#include <pspkernel.h>
#include <pspdebug.h>
#include <psptypes.h>
#include <stdlib.h>
#include <string.h>

Expand Down
1 change: 1 addition & 0 deletions src/samples/gu/clut/clut.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <pspkernel.h>
#include <pspdisplay.h>
#include <pspdebug.h>
#include <psptypes.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
Expand Down
1 change: 1 addition & 0 deletions src/samples/gu/common/callbacks.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <pspkernel.h>
#include <pspdisplay.h>
#include <pspdebug.h>
#include <psptypes.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
Expand Down
1 change: 1 addition & 0 deletions src/samples/gu/morph/morph.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <pspkernel.h>
#include <pspdisplay.h>
#include <pspdebug.h>
#include <psptypes.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
Expand Down
1 change: 1 addition & 0 deletions src/samples/gu/morphskin/morphskin.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <pspkernel.h>
#include <pspdisplay.h>
#include <pspdebug.h>
#include <psptypes.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
Expand Down
1 change: 1 addition & 0 deletions src/samples/gu/reflection/reflection.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <pspkernel.h>
#include <pspdisplay.h>
#include <pspdebug.h>
#include <psptypes.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
Expand Down
1 change: 1 addition & 0 deletions src/samples/gu/rendertarget/rendertarget.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <pspkernel.h>
#include <pspdisplay.h>
#include <pspdebug.h>
#include <psptypes.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
Expand Down
1 change: 1 addition & 0 deletions src/samples/gu/shadowprojection/shadowprojection.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <pspkernel.h>
#include <pspdisplay.h>
#include <pspdebug.h>
#include <psptypes.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
Expand Down
1 change: 1 addition & 0 deletions src/samples/gu/signals/signals.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <pspkernel.h>
#include <pspdisplay.h>
#include <pspdebug.h>
#include <psptypes.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
Expand Down
1 change: 1 addition & 0 deletions src/samples/gu/skinning/skinning.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <pspkernel.h>
#include <pspdisplay.h>
#include <pspdebug.h>
#include <psptypes.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
Expand Down
1 change: 1 addition & 0 deletions src/samples/gu/spharm/cube.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include <pspdisplay.h>
#include <pspdebug.h>
#include <pspctrl.h>
#include <psptypes.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
Expand Down
1 change: 1 addition & 0 deletions src/samples/gu/text/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <pspgu.h>
#include <pspgum.h>
#include <pspdisplay.h>
#include <psptypes.h>

#include <string.h>
#include <math.h>
Expand Down
21 changes: 11 additions & 10 deletions src/samples/gu/timing/timing.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <pspgu.h>
#include <pspgum.h>
#include <pspctrl.h>
#include <psptypes.h>

PSP_MODULE_INFO("Timing Sample", 0, 1, 1);
PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER);
Expand Down Expand Up @@ -206,8 +207,8 @@ int main(int argc, char** argv) {
int mode = 0;
int val = 0;

SceCtrlData pad;
sceCtrlSetSamplingCycle(0);
SceCtrlData pad;
sceCtrlSetSamplingCycle(0);
sceCtrlSetSamplingMode(PSP_CTRL_MODE_DIGITAL);
unsigned int old = 0;

Expand Down Expand Up @@ -278,7 +279,7 @@ int main(int argc, char** argv) {
sceGuFinish();
sceGuSync(0, 0);

pspDebugScreenSetOffset((int)frameBuffer);
pspDebugScreenSetOffset((int)frameBuffer);
pspDebugScreenSetXY(0,0);
pspDebugScreenPrintf("%s: %1d.%03d ms", modenames[mode], (end - start)/1000, (end - start)%1000);

Expand All @@ -287,13 +288,13 @@ int main(int argc, char** argv) {

val++;

sceCtrlReadBufferPositive(&pad, 1);
if(old != pad.Buttons) {
if(pad.Buttons & (PSP_CTRL_CROSS | PSP_CTRL_CIRCLE)) {
mode+=1;
mode%=6;
}
}
sceCtrlReadBufferPositive(&pad, 1);
if(old != pad.Buttons) {
if(pad.Buttons & (PSP_CTRL_CROSS | PSP_CTRL_CIRCLE)) {
mode+=1;
mode%=6;
}
}
old = pad.Buttons;
}

Expand Down
1 change: 1 addition & 0 deletions src/samples/ir/irda/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <pspdisplay.h>
#include <pspctrl.h>
#include <pspsircs.h>
#include <psptypes.h>
#include <stdlib.h>
#include <string.h>

Expand Down
1 change: 1 addition & 0 deletions src/samples/ir/sircs/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <pspdisplay.h>
#include <pspctrl.h>
#include <pspsircs.h>
#include <psptypes.h>
#include <stdlib.h>
#include <string.h>

Expand Down
1 change: 1 addition & 0 deletions src/samples/kernel/fileio/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <pspctrl.h>
#include <pspdebug.h>
#include <pspdisplay.h>
#include <psptypes.h>
#include <pspumd.h>

#include <string.h>
Expand Down
1 change: 1 addition & 0 deletions src/samples/kernel/idstorage/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*/
#include <pspkernel.h>
#include <pspdebug.h>
#include <psptypes.h>
#include <pspidstorage.h>

/* Start in kernel mode */
Expand Down
1 change: 1 addition & 0 deletions src/samples/kernel/kdumper/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*/
#include <pspkernel.h>
#include <pspdebug.h>
#include <psptypes.h>
#include <stdlib.h>
#include <string.h>

Expand Down
1 change: 1 addition & 0 deletions src/samples/kernel/loadmodule/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <pspuser.h>
#include <pspdebug.h>
#include <pspsdk.h>
#include <psptypes.h>
#include <string.h>

/* Define the module info section, note the 0x1000 flag to enable start in kernel mode */
Expand Down
1 change: 1 addition & 0 deletions src/samples/kernel/messagebox/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <pspkernel.h>
#include <pspdebug.h>
#include <pspthreadman.h>
#include <psptypes.h>
#include <stdlib.h>
#include <string.h>

Expand Down
1 change: 1 addition & 0 deletions src/samples/kernel/regenum/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <pspreg.h>
#include <pspctrl.h>
#include <pspdisplay.h>
#include <psptypes.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down
1 change: 1 addition & 0 deletions src/samples/kernel/threadstatus/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*/
#include <pspkernel.h>
#include <pspdebug.h>
#include <psptypes.h>
#include <stdlib.h>
#include <string.h>

Expand Down
1 change: 1 addition & 0 deletions src/samples/mp3/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <pspaudio.h>
#include <pspmp3.h>
#include <psputility.h>
#include <psptypes.h>


/* Define the module info section */
Expand Down
1 change: 1 addition & 0 deletions src/samples/nand/dumpipl/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <pspuser.h>
#include <pspdebug.h>
#include <pspnand_driver.h>
#include <psptypes.h>

/* Define the module info section */
PSP_MODULE_INFO("dumpipl", 0x1000, 1, 1);
Expand Down
1 change: 1 addition & 0 deletions src/samples/net/resolver/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <pspnet_inet.h>
#include <pspnet_apctl.h>
#include <pspnet_resolver.h>
#include <psptypes.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/select.h>
Expand Down
1 change: 1 addition & 0 deletions src/samples/net/simple/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <pspnet_apctl.h>
#include <pspsdk.h>
#include <psputility.h>
#include <psptypes.h>
#include <string.h>
#include <unistd.h>

Expand Down
1 change: 1 addition & 0 deletions src/samples/net/simple_prx/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <pspnet_inet.h>
#include <pspnet_apctl.h>
#include <pspnet_resolver.h>
#include <psptypes.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/select.h>
Expand Down
Loading