[Scummvm-git-logs] scummvm master -> bb69363580fba64b02c146961eb0373c3c5ea1f5

eriktorbjorn noreply at scummvm.org
Thu Jul 14 05:46:18 UTC 2022


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
bb69363580 DEVTOOLS: Make C++ the default mode for md5table


Commit: bb69363580fba64b02c146961eb0373c3c5ea1f5
    https://github.com/scummvm/scummvm/commit/bb69363580fba64b02c146961eb0373c3c5ea1f5
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2022-07-14T07:44:58+02:00

Commit Message:
DEVTOOLS: Make C++ the default mode for md5table

Like the built-in help says. Before, you still had to pass --c++ to it.

Changed paths:
    devtools/md5table.cpp


diff --git a/devtools/md5table.cpp b/devtools/md5table.cpp
index 09237e1e75e..90221659998 100644
--- a/devtools/md5table.cpp
+++ b/devtools/md5table.cpp
@@ -237,9 +237,7 @@ int main(int argc, char *argv[])
 
 	OutputMode outputMode = kCPPOutput;
 
-	if (argc != 2)
-		showhelp(argv[0]);
-	if (strcmp(argv[1], "--c++") == 0) {
+	if (argc == 1 || strcmp(argv[1], "--c++") == 0) {
 		outputMode = kCPPOutput;
 	} else if (strcmp(argv[1], "--php") == 0) {
 		outputMode = kPHPOutput;




More information about the Scummvm-git-logs mailing list