mirror of https://github.com/PCSX2/pcsx2.git
gsdx replayer: improve error message when file is corrupted
This commit is contained in:
parent
ac1b3845b2
commit
2a60264e40
|
@ -152,7 +152,7 @@ void GSDumpRaw::Read(void* ptr, size_t size) {
|
|||
} else {
|
||||
size_t ret = fread(ptr, 1, size, m_fp);
|
||||
if (ret != size) {
|
||||
fprintf(stderr, "GSDumpRaw:: Read error\n");
|
||||
fprintf(stderr, "GSDumpRaw:: Read error (%d/%d)\n", ret, size);
|
||||
throw "BAD"; // Just exit the program
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue