[Scummvm-cvs-logs] SF.net SVN: scummvm:[51150] scummvm/trunk/engines/sci/console.cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Thu Jul 22 18:22:50 CEST 2010
Revision: 51150
http://scummvm.svn.sourceforge.net/scummvm/?rev=51150&view=rev
Author: thebluegr
Date: 2010-07-22 16:22:48 +0000 (Thu, 22 Jul 2010)
Log Message:
-----------
Extended the "version" console command to also show the game version found in the VERSION file
Modified Paths:
--------------
scummvm/trunk/engines/sci/console.cpp
Modified: scummvm/trunk/engines/sci/console.cpp
===================================================================
--- scummvm/trunk/engines/sci/console.cpp 2010-07-22 16:12:04 UTC (rev 51149)
+++ scummvm/trunk/engines/sci/console.cpp 2010-07-22 16:22:48 UTC (rev 51150)
@@ -411,7 +411,14 @@
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()));
DebugPrintf("\n");
@@ -427,6 +434,7 @@
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;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list