pcsx-redux/src/mips/psyqo-paths
2023-12-30 19:05:20 -08:00
..
examples/cdrom-loader Relaxing psyqo's compilation rules outside CI 2023-12-30 19:05:20 -08:00
src Creating the psyqo's paths helpers library. 2023-05-08 20:31:08 -07:00
cdrom-loader.hh [Chores] Format code 2023-12-09 15:04:21 +00:00
compile_flags.txt Creating the psyqo's paths helpers library. 2023-05-08 20:31:08 -07:00
Makefile Creating the psyqo's paths helpers library. 2023-05-08 20:31:08 -07:00
psyqo-paths.mk Creating the psyqo's paths helpers library. 2023-05-08 20:31:08 -07:00
README.md Creating the psyqo's paths helpers library. 2023-05-08 20:31:08 -07:00

While the PSYQo library is still very light, and not really opinionated on how to process certain operations, it means it can be tedious and verbose to write certain things. This is where the PSYQo Paths library comes in: it provides a set of functions called "Paths" to help with common operations, such as loading a file from CD-Rom.

The point is to provide a set of functions that are easy to use, but are also too generic to be included in the PSYQo library itself. Using them comes with the caveat that they are not optimized for any specific use case, and may not be the best solution for your specific problem. However, they should be good enough for most cases, and can be used as a starting point for more specific implementations.

Loading a file from CD-Rom

This Path will allow you to load a file from CD-Rom, and return a vector containing the file's data. As with the rest of PSYQo, the loading is still going to be done asynchronously, so you will need to either pass a callback to the class' method, or use the schedule version of the method using the task scheduler.

See the example for a full usage example.