From 3bfd42220533a3f2cd19e8f8a726ecc48ee97625 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Mon, 15 Jul 2013 22:52:03 -0400 Subject: SCUMM: Make all HE saves prepend the target name This makes HE follow the ScummVM convention of using the target name everywhere. It also fixes having more than one team in both soccer and football. Loading old saves will still work and they will be tried if the newer save names are not found. --- engines/scumm/he/intern_he.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'engines/scumm/he/intern_he.h') diff --git a/engines/scumm/he/intern_he.h b/engines/scumm/he/intern_he.h index a674288775..067f508d2c 100644 --- a/engines/scumm/he/intern_he.h +++ b/engines/scumm/he/intern_he.h @@ -81,10 +81,23 @@ protected: int virtScreenSave(byte *dst, int x1, int y1, int x2, int y2); void virtScreenLoad(int resIdx, int x1, int y1, int x2, int y2); - int convertFilePath(byte *dst, int dstSize); virtual void decodeParseString(int a, int b); void swapObjects(int object1, int object2); + Common::String convertFilePath(const byte *src); + Common::String convertSavePath(const byte *src); + Common::String convertSavePathOld(const byte *src); + + Common::SeekableReadStream *openFileForReading(const byte *fileName); + Common::SeekableReadStream *openSaveFileForReading(const byte *fileName); + Common::WriteStream *openSaveFileForWriting(const byte *fileName); + Common::WriteStream *openSaveFileForAppending(const byte *fileName); + void deleteSaveFile(const byte *fileName); + void renameSaveFile(const byte *from, const byte *to); + + Common::SeekableReadStream *openSaveFileForReading(int slot, bool compat, Common::String &fileName); + Common::WriteStream *openSaveFileForWriting(int slot, bool compat, Common::String &fileName); + /* HE version 60 script opcodes */ void o60_setState(); void o60_roomOps(); -- cgit v1.2.3