diff options
| author | Filippos Karapetis | 2010-07-22 16:22:48 +0000 | 
|---|---|---|
| committer | Filippos Karapetis | 2010-07-22 16:22:48 +0000 | 
| commit | 529af0fc3e4e537d81c3baf445885d87d5dacab1 (patch) | |
| tree | defb244ed2768b853dd1d25715f6c2b80683fe6d | |
| parent | 34c8f5dcc5e1b63b1d97e836fdaabc4e9810acce (diff) | |
| download | scummvm-rg350-529af0fc3e4e537d81c3baf445885d87d5dacab1.tar.gz scummvm-rg350-529af0fc3e4e537d81c3baf445885d87d5dacab1.tar.bz2 scummvm-rg350-529af0fc3e4e537d81c3baf445885d87d5dacab1.zip | |
Extended the "version" console command to also show the game version found in the VERSION file
svn-id: r51150
| -rw-r--r-- | engines/sci/console.cpp | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp index 8cbe946e4a..c2db56c40a 100644 --- a/engines/sci/console.cpp +++ b/engines/sci/console.cpp @@ -411,6 +411,13 @@ bool Console::cmdGetVersion(int argc, const char **argv) {  	const char *viewTypeDesc[] = { "Unknown", "EGA", "VGA", "VGA SCI1.1", "Amiga" };  	bool hasVocab997 = g_sci->getResMan()->testResource(ResourceId(kResourceTypeVocab, VOCAB_RESOURCE_SELECTORS)) ? true : false; +	Common::String gameVersion = "N/A"; + +	Common::File versionFile; +	if (versionFile.open("VERSION")) { +		gameVersion = versionFile.readLine(); +		versionFile.close(); +	}  	DebugPrintf("Game ID: %s\n", _engine->getGameIdStr());  	DebugPrintf("Emulated interpreter version: %s\n", getSciVersionDesc(getSciVersion())); @@ -427,6 +434,7 @@ bool Console::cmdGetVersion(int argc, const char **argv) {  	DebugPrintf("Resource volume version: %s\n", g_sci->getResMan()->getVolVersionDesc());  	DebugPrintf("Resource map version: %s\n", g_sci->getResMan()->getMapVersionDesc());  	DebugPrintf("Contains selector vocabulary (vocab.997): %s\n", hasVocab997 ? "yes" : "no"); +	DebugPrintf("Game version (VERSION file): %s\n", gameVersion.c_str());  	DebugPrintf("\n");  	return true; | 
