Lameguy64 / PSn00bSDK

The most powerful open source SDK for the PS1 (as far as open source PS1 SDKs go). Not recommended for beginner use.
Other
838 stars 68 forks source link

IRQ handler fix, .STR playback example, multiple library builds (v0.21) #59

Closed spicyjpeg closed 2 years ago

spicyjpeg commented 2 years ago

I've finally added the long-awaited video playback example, fully working on DuckStation, pcsx-redux and no$psx (untested on real hardware) using various .STR v2 files extracted from several games. I did not include an example video file, but that can be added easily by uncommenting the CD image building commands in the example's CMake script. This PR includes fixes for critical regressions introduced by previous commits in the MDEC library and interrupt handler; both are stable now.

I also modified the CMake scripts to build multiple copies of libpsn00b, one for each target type (executable/DLL) and build type (debug/release) combination. This allows for linking of SDK libraries into DLLs as well as full stripping of all debug logging code when a project is compiled in release mode. The changes are documented extensively in doc/cmake_reference.md.

Other changes (listed in the changelog) include various minor cleanups and additions, including the ones in PR #57.