Return X_ERROR_PATH_NOT_FOUND instead of X_ERROR_FILE_NOT_FOUND in XamContentCreateCore.

This commit is contained in:
gibbed
2015-05-14 17:01:40 -05:00
parent 61f4095851
commit 6fe545b3e9
2 changed files with 3 additions and 2 deletions

View File

@@ -265,7 +265,7 @@ void XamContentCreateCore(PPCContext* ppc_state, KernelState* state,
case 3: // OPEN_EXISTING
// Open only if exists.
if (!content_manager->ContentExists(content_data)) {
result = X_ERROR_FILE_NOT_FOUND;
result = X_ERROR_PATH_NOT_FOUND;
} else {
open = true;
}
@@ -281,7 +281,7 @@ void XamContentCreateCore(PPCContext* ppc_state, KernelState* state,
case 5: // TRUNCATE_EXISTING
// Fail if doesn't exist, if does exist delete and recreate.
if (!content_manager->ContentExists(content_data)) {
result = X_ERROR_FILE_NOT_FOUND;
result = X_ERROR_PATH_NOT_FOUND;
} else {
content_manager->DeleteContent(content_data);
create = true;