psxbios: Add checks to PAD_init
authorgameblabla <gameblabla@openmailbox.org>
Wed, 17 Jul 2019 23:10:33 +0000 (01:10 +0200)
committergameblabla <gameblabla@openmailbox.org>
Wed, 17 Jul 2019 23:10:33 +0000 (01:10 +0200)
commita824e83d363ce167068e497a97b25f6d637807d6
treefb54aea32ec8f5d5e82a982f24d1067878a1f17a
parentbee52312d06313957cfe73dacdb1717d1c8bcddb
psxbios: Add checks to PAD_init

Nocash documentation says that function fails if type is not 0x20000000
or 0x20000001. In case of failure, it should return 0.
If not, then it should return 2.

This fixes input in Digimon World.
libpcsxcore/psxbios.c