1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-24 11:43:05 +01:00

Make a some printfs into error log calls.

This commit is contained in:
lioncash 2014-03-27 08:26:20 -04:00
parent 007f0f2437
commit 7f5412f427
2 changed files with 4 additions and 3 deletions

View File

@ -701,7 +701,7 @@ int32_t cellGcmMapLocalMemory(u64 address, u64 size)
}
else
{
printf("RSX local memory already mapped");
cellGcmSys.Error("RSX local memory already mapped");
return CELL_GCM_ERROR_FAILURE;
}

View File

@ -50,9 +50,10 @@ int sdata_unpack(wxString packed_file, wxString unpacked_file)
char buffer [10200];
packed_stream->Read(buffer, 256);
if (re32(*(u32*)&buffer[0]) != 0x4E504400) // "NPD\x00"
u32 format = re32(*(u32*)&buffer[0]);
if (format != 0x4E504400) // "NPD\x00"
{
printf("ERROR: illegal format.");
sys_fs.Error("Illegal format. Expected 0x4E504400, but got 0x%08x", format);
return CELL_EFSSPECIFIC;
}