25 #include "common/scummsys.h" 26 #include "common/system.h" 27 #include "common/error.h" 28 #include "common/fs.h" 29 #include "common/hash-str.h" 30 #include "common/random.h" 31 #include "common/serializer.h" 32 #include "common/util.h" 33 #include "engines/engine.h" 34 #include "engines/savestate.h" 35 #include "graphics/screen.h" 37 #include "m4/detection.h" 39 #include "m4/core/rooms.h" 43 struct M4GameDescription;
62 bool _useOriginalSaveLoad =
false;
81 uint32 getFeatures()
const;
83 bool useOriginalSaveLoad()
const {
84 return _useOriginalSaveLoad;
171 enum LoadDialogSource { kLoadFromMainMenu, kLoadFromGameDialog, kLoadFromHotkey };
184 #define SHOULD_QUIT ::M4::g_engine->shouldQuit() Definition: detection.h:53
Common::Error loadGameStream(Common::SeekableReadStream *stream) override
bool saveGameFromMenu(int slotNum, const Common::String &desc, Graphics::Surface &thumbnail)
EngineFeature
Definition: engine.h:253
virtual Vars * createVars()=0
virtual void showSaveScreen()
bool hasFeature(EngineFeature f) const override
Definition: m4.h:114
Common::String getGameId() const
virtual void setupConsole()=0
Common::Error run() override
uint getRandomNumber(uint max)
Common::Error syncGame(Common::Serializer &s)
Definition: serializer.h:79
bool loadSaveThumbnail(int slotNum, M4sprite *thumbnail) const
Common::Error saveGameStream(Common::WriteStream *stream, bool isAutosave=false) override
Common::Language getLanguage() const
virtual void showLoadScreen(LoadDialogSource fromMainMenu)
virtual void showEngineInfo()=0
Definition: database.h:28
uint32 getRandomNumber(uint maxNum)
Definition: m4.h:110
bool canLoadGameStateCurrently(Common::U32String *msg=nullptr) override
bool autosaveExists() const
void syncSoundSettings() override
Common::Error loadGameState(int slot) override
SaveStateList listSaves() const
bool canSaveGameStateCurrently(Common::U32String *msg=nullptr) override
Language
Definition: language.h:45