summaryrefslogtreecommitdiff
path: root/src/contrib/SDL-3.2.20/docs/README-ps2.md
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2025-08-30 16:53:58 -0700
committer3gg <3gg@shellblade.net>2025-08-30 16:53:58 -0700
commit6aaedb813fa11ba0679c3051bc2eb28646b9506c (patch)
tree34acbfc9840e02cb4753e6306ea7ce978bf8b58e /src/contrib/SDL-3.2.20/docs/README-ps2.md
parent8f228ade99dd3d4c8da9b78ade1815c9adf85c8f (diff)
Update to SDL3
Diffstat (limited to 'src/contrib/SDL-3.2.20/docs/README-ps2.md')
-rw-r--r--src/contrib/SDL-3.2.20/docs/README-ps2.md47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/contrib/SDL-3.2.20/docs/README-ps2.md b/src/contrib/SDL-3.2.20/docs/README-ps2.md
new file mode 100644
index 0000000..d358565
--- /dev/null
+++ b/src/contrib/SDL-3.2.20/docs/README-ps2.md
@@ -0,0 +1,47 @@
1PS2
2======
3SDL port for the Sony Playstation 2 contributed by:
4- Francisco Javier Trujillo Mata
5
6
7Credit to
8 - The guys that ported SDL to PSP & Vita because I'm taking them as reference.
9 - David G. F. for helping me with several issues and tests.
10
11## Building
12To build SDL library for the PS2, make sure you have the latest PS2Dev status and run:
13```bash
14cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=$PS2DEV/ps2sdk/ps2dev.cmake
15cmake --build build
16cmake --install build
17```
18
19## Notes
20If you trying to debug a SDL app through [ps2client](https://github.com/ps2dev/ps2client) you need to avoid the IOP reset, otherwise you will lose the connection with your computer.
21So to avoid the reset of the IOP CPU, you need to call to the macro `SDL_PS2_SKIP_IOP_RESET();`.
22It could be something similar as:
23```c
24.....
25
26SDL_PS2_SKIP_IOP_RESET();
27
28int main(int argc, char *argv[])
29{
30.....
31```
32For a release binary is recommendable to reset the IOP always.
33
34Remember to do a clean compilation every time you enable or disable the `SDL_PS2_SKIP_IOP_RESET` otherwise the change won't be reflected.
35
36## Getting PS2 Dev
37[Installing PS2 Dev](https://github.com/ps2dev/ps2dev)
38
39## Running on PCSX2 Emulator
40[PCSX2](https://github.com/PCSX2/pcsx2)
41
42[More PCSX2 information](https://pcsx2.net/)
43
44## To Do
45- PS2 Screen Keyboard
46- Dialogs
47- Others