The PlayStation 2 released in year 2000 can read CDs, DVDs, and PlayStation 1&2 games. These games are formatted as PlayStation format, but are ultimately CD-ROMs and DVD-ROMs respectively.
I know that much, I know that the console has BIOS capable of interpreting the games, but how does it distinguish them? Is there a software built in to do so, or is the optical drive built to read discs including the game ROMs?
I ask this question because it seems that through hacking your PlayStation 4 or 5, you can install emulators that play PS1 and PS2 games. These consoles read DVDs, so could you develop software necessary for the PS4/5 to then read ROMs and your PlayStation 2 games? A computer with a DVD drive will play a PlayStation 2 game provided you own an emulator with the console BIOS to read it.