diff options
| author | Johannes Schickel | 2012-07-24 23:46:54 +0200 | 
|---|---|---|
| committer | Johannes Schickel | 2012-07-24 23:49:50 +0200 | 
| commit | 7d519074053ab0482c1d163a626a9554b52a8783 (patch) | |
| tree | f9bed20aa5ffed5831a8a7cf514ccfbdb38c8ccc /gui/saveload.cpp | |
| parent | ca225cc7e0affd4bca287def475e34dabe251d8a (diff) | |
| download | scummvm-rg350-7d519074053ab0482c1d163a626a9554b52a8783.tar.gz scummvm-rg350-7d519074053ab0482c1d163a626a9554b52a8783.tar.bz2 scummvm-rg350-7d519074053ab0482c1d163a626a9554b52a8783.zip  | |
GUI: Add possibility to disable the grid based chooser via DISABLE_SAVELOADCHOOSER_GRID.
Diffstat (limited to 'gui/saveload.cpp')
| -rw-r--r-- | gui/saveload.cpp | 7 | 
1 files changed, 6 insertions, 1 deletions
diff --git a/gui/saveload.cpp b/gui/saveload.cpp index d6a8688ce3..c2bbcd9bec 100644 --- a/gui/saveload.cpp +++ b/gui/saveload.cpp @@ -40,6 +40,7 @@ SaveLoadChooser::~SaveLoadChooser() {  }  void SaveLoadChooser::selectChooser(const MetaEngine &engine) { +#ifndef DISABLE_SAVELOADCHOOSER_GRID  	const SaveLoadChooserType requestedType = getRequestedSaveLoadDialog(engine);  	if (!_impl || _impl->getType() != requestedType) {  		delete _impl; @@ -51,10 +52,13 @@ void SaveLoadChooser::selectChooser(const MetaEngine &engine) {  			break;  		case kSaveLoadDialogList: +#endif // !DISABLE_SAVELOADCHOOSER_GRID  			_impl = new SaveLoadChooserSimple(_title, _buttonLabel, _saveMode); +#ifndef DISABLE_SAVELOADCHOOSER_GRID  			break;  		}  	} +#endif // !DISABLE_SAVELOADCHOOSER_GRID  }  Common::String SaveLoadChooser::createDefaultSaveDescription(const int slot) const { @@ -91,10 +95,11 @@ int SaveLoadChooser::runModalWithPluginAndTarget(const EnginePlugin *plugin, con  	int ret;  	do {  		ret = _impl->run(target, &(**plugin)); - +#ifndef DISABLE_SAVELOADCHOOSER_GRID  		if (ret == kSwitchSaveLoadDialog) {  			selectChooser(**plugin);  		} +#endif // !DISABLE_SAVELOADCHOOSER_GRID  	} while (ret < -1);  	// Revert to the old active domain  | 
