I guess this will only be possible if the function that loads the disc actually takes a game supplied disc id for checking and its not the game itself doing it. But that's how i'd do it.
Comments: ** Comment from web user: SCO **
This is likely to be hard to do without a hack option, such as 'autoincrement CD rom in pbp files before a reset asked'. Actually doing it correctly is perhaps not worth it and perhaps impossible from what i can see of the cdrom api on
http://www.raphnet.net/electronique/psx_adaptor/Playstation.txt
Since it looks like the ID of the cd can be read from DMA but there is no api to compare to a specified argument, so to make it work based on a id - if the game even uses that - the emulator would have to be very
sneaky, first giving out the same id, detecting the game reading the CD id, then _actually looking at the code the game executes_ waiting to find the comparasion to a expected code, then insert code just before that comparison at runtime to actually load the right (what is expected) cd of the game.
Messy and error prone.
Maybe it's better to have a hack to just increment a wrapping counter on all cd change requests and loading that counter index on the pbp iso list, assuming all games organize discs one after the other. And if not, you can make the user try again until it's right...