Changed class File (and derived classes) to only support read-only access; added a new class DumpFile for writing

svn-id: r33412
This commit is contained in:
Max Horn 2008-07-29 16:09:10 +00:00
parent c9051fcfbd
commit 0be985ce83
30 changed files with 200 additions and 202 deletions

View file

@ -978,7 +978,7 @@ bool AGOSEngine::loadGame(const char *filename, bool restartMode) {
if (restartMode) {
// Load restart state
Common::File *file = new Common::File();
file->open(filename, Common::File::kFileReadMode);
file->open(filename);
f = file;
} else {
f = _saveFileMan->openForLoading(filename);
@ -1154,7 +1154,7 @@ bool AGOSEngine_Elvira2::loadGame(const char *filename, bool restartMode) {
if (restartMode) {
// Load restart state
Common::File *file = new Common::File();
file->open(filename, Common::File::kFileReadMode);
file->open(filename);
f = file;
} else {
f = _saveFileMan->openForLoading(filename);