diff options
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.md | 47 |
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 @@ | |||
1 | PS2 | ||
2 | ====== | ||
3 | SDL port for the Sony Playstation 2 contributed by: | ||
4 | - Francisco Javier Trujillo Mata | ||
5 | |||
6 | |||
7 | Credit 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 | ||
12 | To build SDL library for the PS2, make sure you have the latest PS2Dev status and run: | ||
13 | ```bash | ||
14 | cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=$PS2DEV/ps2sdk/ps2dev.cmake | ||
15 | cmake --build build | ||
16 | cmake --install build | ||
17 | ``` | ||
18 | |||
19 | ## Notes | ||
20 | If 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. | ||
21 | So to avoid the reset of the IOP CPU, you need to call to the macro `SDL_PS2_SKIP_IOP_RESET();`. | ||
22 | It could be something similar as: | ||
23 | ```c | ||
24 | ..... | ||
25 | |||
26 | SDL_PS2_SKIP_IOP_RESET(); | ||
27 | |||
28 | int main(int argc, char *argv[]) | ||
29 | { | ||
30 | ..... | ||
31 | ``` | ||
32 | For a release binary is recommendable to reset the IOP always. | ||
33 | |||
34 | Remember 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 | ||