[Scummvm-cvs-logs] SF.net SVN: scummvm:[53021] scummvm/branches/branch-1-2-0/gui
agent-q at users.sourceforge.net
agent-q at users.sourceforge.net
Tue Oct 5 00:39:56 CEST 2010
Revision: 53021
http://scummvm.svn.sourceforge.net/scummvm/?rev=53021&view=rev
Author: agent-q
Date: 2010-10-04 22:39:55 +0000 (Mon, 04 Oct 2010)
Log Message:
-----------
GUI: Allow disabling of Mass Add dialog. Saves a few Kb of binary size on the DS, and is not particularly useful on that platform.
Modified Paths:
--------------
scummvm/branches/branch-1-2-0/gui/launcher.cpp
scummvm/branches/branch-1-2-0/gui/massadd.cpp
Modified: scummvm/branches/branch-1-2-0/gui/launcher.cpp
===================================================================
--- scummvm/branches/branch-1-2-0/gui/launcher.cpp 2010-10-04 22:37:45 UTC (rev 53020)
+++ scummvm/branches/branch-1-2-0/gui/launcher.cpp 2010-10-04 22:39:55 UTC (rev 53021)
@@ -722,6 +722,8 @@
void LauncherDialog::addGame() {
int modifiers = g_system->getEventManager()->getModifierState();
+
+#ifndef DISABLE_MASS_ADD
const bool massAdd = (modifiers & Common::KBD_SHIFT) != 0;
if (massAdd) {
@@ -750,6 +752,7 @@
updateButtons();
return;
}
+#endif
// Allow user to add a new game to the list.
// 1) show a dir selection dialog which lets the user pick the directory
Modified: scummvm/branches/branch-1-2-0/gui/massadd.cpp
===================================================================
--- scummvm/branches/branch-1-2-0/gui/massadd.cpp 2010-10-04 22:37:45 UTC (rev 53020)
+++ scummvm/branches/branch-1-2-0/gui/massadd.cpp 2010-10-04 22:39:55 UTC (rev 53021)
@@ -36,6 +36,8 @@
#include "gui/ListWidget.h"
+#ifndef DISABLE_MASS_ADD
+
namespace GUI {
/*
@@ -265,3 +267,5 @@
} // End of namespace GUI
+
+#endif // DISABLE_MASS_ADD
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