SHERLOCK: RT: Further split-off of Scalpel-specific code

This commit is contained in:
Paul Gilbert 2015-06-25 20:42:02 -04:00
parent 66fb4b828b
commit 92ac962718
26 changed files with 1183 additions and 855 deletions

View file

@ -42,7 +42,7 @@ enum {
enum SaveMode { SAVEMODE_NONE = 0, SAVEMODE_LOAD = 1, SAVEMODE_SAVE = 2 };
extern const int ENV_POINTS[6][3];
extern const char *const EMPTY_SAVEGAME_SLOT;
struct SherlockSavegameHeader {
uint8 _version;
@ -70,7 +70,7 @@ public:
};
class SaveManager {
private:
protected:
SherlockEngine *_vm;
Common::String _target;
Graphics::Surface *_saveThumb;
@ -90,14 +90,10 @@ public:
SaveMode _envMode;
bool _justLoaded;
public:
static SaveManager *init(SherlockEngine *vm, const Common::String &target);
SaveManager(SherlockEngine *vm, const Common::String &target);
~SaveManager();
/**
* Shows the in-game dialog interface for loading and saving games
*/
void drawInterface();
/**
* Creates a thumbnail for the current on-screen contents
*/
@ -144,16 +140,6 @@ public:
*/
void saveGame(int slot, const Common::String &name);
/**
* Make sure that the selected savegame is on-screen
*/
bool checkGameOnScreen(int slot);
/**
* Prompts the user to enter a description in a given slot
*/
bool promptForDescription(int slot);
/**
* Returns true if the given save slot is empty
*/