Open bigianb opened 5 months ago
Oh, very nice! We'll have to fix the problematic cases in the emu.
Interesting cases we could add: Using ChDir('\..')
while being in the root dir. And also ChDir('\..\somedir')
. There's a bunch of games that seem to use that (LOTR: The Return of the King for example, EA games, Kim Possible).
exactly - it's something I've wanted to do for a while - it takes the guesswork out of things and can form an automated test at some stage. I'll keep adding the edge cases but thought what is shown currently is a good start because it specifically does things that RTA does.
The following small home-brew file executes memory card calls and logs the output. There are differences between PCSX2 and Play! which I think will cause issues with games.
https://github.com/bigianb/ps2-functests/tree/main
Summary seems to be that mcChrDir seems to return the working directory after the cd (different than docs). cd to a non existing directory should return -4 whilst Play! returns 0
PCSX2 output:
Play! output