diff --git "a/engines/sludge/savedata.cpp" "b/engines/sludge/savedata.cpp"
index 27e7154e3c9..9f37e98f2e9 100644
"a
|
"b
|
|
19 | 19 | * |
20 | 20 | */ |
21 | 21 | |
| 22 | #include "common/file.h" |
22 | 23 | #include "common/savefile.h" |
23 | 24 | #include "common/system.h" |
24 | 25 | |
… |
… |
bool CustomSaveHelper::fileToStack(const Common::String &filename, StackHandler
|
98 | 99 | stringVar.varType = SVT_NULL; |
99 | 100 | Common::String checker = _saveEncoding ? "[Custom data (encoded)]\r\n" : "[Custom data (ASCII)]\n"; |
100 | 101 | |
101 | | Common::InSaveFile *fp = g_system->getSavefileManager()->openForLoading(filename); |
| 102 | Common::SeekableReadStream *fp = g_system->getSavefileManager()->openForLoading(filename); |
| 103 | |
| 104 | if (fp == NULL) { |
| 105 | Common::File *f = new Common::File(); |
| 106 | if (f->open(filename)) { |
| 107 | fp = f; |
| 108 | } else { |
| 109 | delete f; |
| 110 | } |
| 111 | } |
102 | 112 | |
103 | 113 | if (fp == NULL) { |
104 | 114 | return fatal("No such file", filename); //TODO: false value |