Closed MtnDont closed 1 year ago
Upon checking ps2_drivers, it appears that the correct way to check for init_memcard_driver
failure would be if (ret < 0)
, since both 0 and 1 are considered a success.
For mcInit
it would probably make sense to do something like this to catch both possible MC types:
ret = mcInit(MC_TYPE_XMC);
if (ret < 0) ret = mcInit(MC_TYPE_MC);
if (ret < 0) {
printf("ps2_memcard: mcInit failed: %d\n", ret);
return false;
}