[Scummvm-cvs-logs] SF.net SVN: scummvm:[40995] scummvm/trunk/engines/sci/console.cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Fri May 29 15:19:18 CEST 2009
Revision: 40995
http://scummvm.svn.sourceforge.net/scummvm/?rev=40995&view=rev
Author: thebluegr
Date: 2009-05-29 13:19:18 +0000 (Fri, 29 May 2009)
Log Message:
-----------
Fixed a bug with the "size" console command
Modified Paths:
--------------
scummvm/trunk/engines/sci/console.cpp
Modified: scummvm/trunk/engines/sci/console.cpp
===================================================================
--- scummvm/trunk/engines/sci/console.cpp 2009-05-29 13:09:26 UTC (rev 40994)
+++ scummvm/trunk/engines/sci/console.cpp 2009-05-29 13:19:18 UTC (rev 40995)
@@ -297,7 +297,7 @@
Resource *resource = _vm->getResMgr()->findResource(res, resNum, 0);
if (resource) {
Common::hexdump(resource->data, resource->size, 16, 0);
- DebugPrintf("Resource %s.%03d not has been dumped to standard output\n", argv[1], resNum);
+ DebugPrintf("Resource %s.%03d has been dumped to standard output\n", argv[1], resNum);
} else {
DebugPrintf("Resource %s.%03d not found\n", argv[1], resNum);
}
@@ -332,9 +332,9 @@
}
bool Console::cmdResourceSize(int argc, const char **argv) {
- if (argc != 2) {
+ if (argc != 3) {
DebugPrintf("Shows the size of a resource\n");
- DebugPrintf("Usage: %s <resource number>\n", argv[0]);
+ DebugPrintf("Usage: %s <resource type> <resource number>\n", argv[0]);
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