Error while reading file from CDROM #714
-
|
Hi, I'm currently facing the problem of loading files into memory only when the ELF is packaged inside the ISO. Using PCSX2 and enabling host filesystem, I can successfully load the file via SDL2 API. However, when I try to read from the packed ISO with the following line, the file won't load correctly. I've attached the logs. Trying to read anything from cdrom0: result in the same error. While accessing to "host:" related path gives just It seems like the cdrom0 FS isn't mounted for some reason. EDIT: Any help is appreciated 🙏 Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
|
|
Beta Was this translation helpful? Give feedback.
The issue is likely that CDVDMAN.IRX isn't loaded or the path format is wrong. You should try:
Make sure CDVDMAN is loaded:
Check your IRX loading order. You need something like:
siop_reset();
load_module("CDVDMAN.IRX");
load_module("CDVD.IRX");
Before trying to access cdrom0:.
Use the correct path format:
PS2 expects backslashes (even on Unix):
SDL_RWops *file = SDL_RWFromFile("cdrom0:\DATA\TEST.TXT", "r");
SDL might be converting them, but CDVDMAN is picky about it.
If SDL still doesn't work, use the IOP directly:
Instead of relying on SDL's path conversion, use the PS2's file APIs:
int fd = open("cdrom0:\DATA…