Simple Directmedia Layer
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 47 lines 1.4 kB view raw view rendered
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