CdlGetmode is GetParam, fix it according to Mednafen's implementation
authorgameblabla <gameblabla@protonmail.com>
Sat, 25 Sep 2021 13:23:40 +0000 (15:23 +0200)
committergameblabla <gameblabla@protonmail.com>
Sat, 25 Sep 2021 13:23:40 +0000 (15:23 +0200)
commit95465b976c88587fba20a8c6877a0bc1f476f276
treef783ef63fc5b9a94f51db56213459ed4db69a579
parente1a78bc470e29c3ec77d3634fdb8849e093b5527
CdlGetmode is GetParam, fix it according to Mednafen's implementation

The result size for GetParam (previously Getmode) should be only 5 and done this way.

Here's Mednafen implementation :
https://github.com/libretro-mirrors/mednafen-git/blob/1899500078169e787f86eb5302a3f35abdaa8764/src/psx/cdc.cpp#L2095

Nocash's documentation also shows that our previous implementation was wrong :
https://problemkaputt.de/psx-spx.htm
(See CDROM Controller Command Summary section or CDROM - Status Commands)
libpcsxcore/cdrom.c