mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
ioFailed() is now checked when saving a game
svn-id: r29767
This commit is contained in:
parent
6ef7e37488
commit
c07894bcea
@ -217,7 +217,8 @@ void SagaEngine::save(const char *fileName, const char *saveName) {
|
||||
|
||||
out->finalize();
|
||||
|
||||
// TODO: Check out->ioFailed()
|
||||
if (out->ioFailed())
|
||||
warning("Can't write file '%s'. (Disk full?)", fileName);
|
||||
|
||||
delete out;
|
||||
}
|
||||
@ -252,7 +253,7 @@ void SagaEngine::load(const char *fileName) {
|
||||
warning("This savegame is not endian-safe. There may be problems");
|
||||
|
||||
if (_saveHeader.type != MKID_BE('SAGA')) {
|
||||
error("SagaEngine::load wrong format");
|
||||
error("SagaEngine::load wrong save game format");
|
||||
}
|
||||
|
||||
if (_saveHeader.version > 4) {
|
||||
|
Loading…
Reference in New Issue
Block a user