Io: Cleanup file not found error codes.

Replay (#10888) caused error to be non zero, which was later translated to
something else, confusingly...
This commit is contained in:
Unknown W. Brackets
2018-05-06 10:15:05 -07:00
parent 8959a9087f
commit f4e8e68c44
4 changed files with 18 additions and 14 deletions
+1 -2
View File
@@ -1811,8 +1811,7 @@ u32 sceKernelLoadModule(const char *name, u32 flags, u32 optionAddr) {
s64 size = (s64)info.size;
if (!info.exists) {
const int ERROR_ERRNO_FILE_NOT_FOUND = 0x80010002;
const u32 error = hleLogError(LOADER, ERROR_ERRNO_FILE_NOT_FOUND, "file does not exist");
const u32 error = hleLogError(LOADER, SCE_KERNEL_ERROR_ERRNO_FILE_NOT_FOUND, "file does not exist");
return hleDelayResult(error, "module loaded", 500);
}