psxbios: Add checks for card_write, card_read
authorgameblabla <gameblabla@openmailbox.org>
Wed, 17 Jul 2019 23:55:57 +0000 (01:55 +0200)
committergameblabla <gameblabla@openmailbox.org>
Wed, 17 Jul 2019 23:55:57 +0000 (01:55 +0200)
commitbd48ba5ea8c87bf8c771550bc5320f7e6f73c9a6
tree48dfb8f5a7f91e2fbfe9a11bbfe3c3651b901ec1
parent76b81516963f0f50049be59172c651b559d9fabf
psxbios: Add checks for card_write, card_read

This also implements a bug which allows writes to 0x400
(Is supposed to only accept sector number between 0..3FFh).
Function should return 0 if sector is invalid.
libpcsxcore/psxbios.c