diff options
| author | Eugene Sandulenko | 2019-07-09 11:38:52 +0200 | 
|---|---|---|
| committer | Eugene Sandulenko | 2019-09-03 17:17:16 +0200 | 
| commit | d12d3ee64754600f96fb73090975ab9cea0621fb (patch) | |
| tree | 2b928ea19f915e95dbc02fd2f759cc6b65bcbeb7 | |
| parent | 6e0e4411a18323b8cf60f964f688b41c94e89652 (diff) | |
| download | scummvm-rg350-d12d3ee64754600f96fb73090975ab9cea0621fb.tar.gz scummvm-rg350-d12d3ee64754600f96fb73090975ab9cea0621fb.tar.bz2 scummvm-rg350-d12d3ee64754600f96fb73090975ab9cea0621fb.zip | |
HDB: Proper prototype for saveGameState()
| -rw-r--r-- | engines/hdb/hdb.cpp | 4 | ||||
| -rw-r--r-- | engines/hdb/hdb.h | 2 | ||||
| -rw-r--r-- | engines/hdb/saveload.cpp | 4 | 
3 files changed, 5 insertions, 5 deletions
| diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp index ec2aba44ae..1f45a40749 100644 --- a/engines/hdb/hdb.cpp +++ b/engines/hdb/hdb.cpp @@ -256,7 +256,7 @@ bool HDBGame::startMap(const char *name) {  	//  	if (!scumm_strnicmp(name, "map", 3) && scumm_stricmp(name, "map30")) {  		_menu->fillSavegameSlots(); -		saveGameState(0);          // we ignore the slot parameter in everything else since we just keep saving... +		saveGameState(0, Common::String::format("Autosave %s", name)); // we ignore the slot parameter in everything else since we just keep saving...  	}  	return true;  } @@ -878,7 +878,7 @@ Common::Error HDBGame::run() {  				_sound->playSound(SND_VORTEX_SAVE);  				_ai->stopEntity(e);  				_menu->fillSavegameSlots(); -				saveGameState(_saveInfo.slot); +				saveGameState(_saveInfo.slot, "FIXME"); // Add here date/level name // TODO  				_saveInfo.active = false;  			} diff --git a/engines/hdb/hdb.h b/engines/hdb/hdb.h index 2b41c7f3ab..f09b81de39 100644 --- a/engines/hdb/hdb.h +++ b/engines/hdb/hdb.h @@ -157,7 +157,7 @@ public:  		_changeLevel = true;  	} -	Common::Error saveGameState(int slot); +	Common::Error saveGameState(int slot, const Common::String &desc);  	Common::Error loadGameState(int slot);  	void saveGame(Common::OutSaveFile *out);  	void loadGame(Common::InSaveFile *in); diff --git a/engines/hdb/saveload.cpp b/engines/hdb/saveload.cpp index 394b8042b9..5f977fe70f 100644 --- a/engines/hdb/saveload.cpp +++ b/engines/hdb/saveload.cpp @@ -24,7 +24,7 @@  namespace HDB { -Common::Error HDBGame::saveGameState(int slot) { +Common::Error HDBGame::saveGameState(int slot, const Common::String &desc) {  	// If no map is loaded, don't try to save  	if (!g_hdb->_map->isLoaded()) @@ -128,4 +128,4 @@ void HDBGame::loadGame(Common::InSaveFile *in) {  	_gfx->turnOffFade();  } -} // End of Namespace
\ No newline at end of file +} // End of Namespace | 
