aboutsummaryrefslogtreecommitdiff
path: root/backends/ps2/asyncfio.cpp
diff options
context:
space:
mode:
authorRobert Göffringmann2005-11-09 19:51:57 +0000
committerRobert Göffringmann2005-11-09 19:51:57 +0000
commit1f647b48bc8b955cfb5c36534ef221e3c3002cba (patch)
treebe98eb9ce6790524d94fd0ac53e44953ceb2a84f /backends/ps2/asyncfio.cpp
parent2b4c9b00b06a83972426b90114b3c598701b5859 (diff)
downloadscummvm-rg350-1f647b48bc8b955cfb5c36534ef221e3c3002cba.tar.gz
scummvm-rg350-1f647b48bc8b955cfb5c36534ef221e3c3002cba.tar.bz2
scummvm-rg350-1f647b48bc8b955cfb5c36534ef221e3c3002cba.zip
sync HEAD with 0-8-0 branch.
svn-id: r19534
Diffstat (limited to 'backends/ps2/asyncfio.cpp')
-rw-r--r--backends/ps2/asyncfio.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/backends/ps2/asyncfio.cpp b/backends/ps2/asyncfio.cpp
index b621db8657..724cb052ef 100644
--- a/backends/ps2/asyncfio.cpp
+++ b/backends/ps2/asyncfio.cpp
@@ -51,6 +51,8 @@ int AsyncFio::open(const char *name, int ioMode) {
fileXioOpen(name, ioMode, DEFAULT_MODE);
fileXioWaitAsync(FXIO_WAIT, &res);
SignalSema(_ioSema);
+ if (res < -2)
+ printf("File %s error: %d (mode %d)\n", name, res, ioMode);
return res;
}
@@ -60,10 +62,8 @@ void AsyncFio::close(int handle) {
fileXioClose(handle);
int res;
fileXioWaitAsync(FXIO_WAIT, &res);
- if (res != 0) {
+ if (res != 0)
sioprintf("ERROR: fileXioClose failed, EC %d", res);
- SleepThread();
- }
_ioSlots[handle] = 0;
SignalSema(_ioSema);
}