]> skyeroc.xyz Git - dgamelaunch/commitdiff
configure now accepts parameter --num-games=INT which will
authorPasi Kallinen <paxed@alt.org>
Tue, 1 Jan 2008 21:41:17 +0000 (21:41 +0000)
committerPasi Kallinen <paxed@alt.org>
Tue, 1 Jan 2008 21:41:17 +0000 (21:41 +0000)
set the maximum number of games dgamelaunch supports.

git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@400 db0b04b0-f4d1-0310-9a6d-de3e77497b0e

configure.ac
dgamelaunch.h

index 771f0a86f3052831b2e834769809212d574452ad..6d4d13f6ed4e268f2f4e6b2eb101b9ee12a9caf1 100644 (file)
@@ -87,7 +87,14 @@ if test "$enable_sqlite" = yes; then
    AC_DEFINE_UNQUOTED(USE_SQLITE_DB, "$dgl_sqlite_db", [Path and filename of the SQLite database.])
 fi
 
+def_dgl_num_games=4
 
+AC_ARG_WITH(num-games,
+[AC_HELP_STRING([--num-games=INT], [Max. number of games this dgamelaunch supports per dgl installation.])],
+[dgl_num_games=$withval], [dgl_num_games=$def_dgl_num_games])
+
+AC_DEFINE_UNQUOTED(DIFF_GAMES, $dgl_num_games, [Max. number of games this dgamelaunch supports per dgl installation.])
+AC_MSG_RESULT([Number of games this dgamelaunch supports: $dgl_num_games]);
 
 AC_ARG_WITH(config-file,
 [AC_HELP_STRING([--with-config-file=PATH], [Define the path to the default configuration file.])],
index 99b2d8fd03c7ba1f987c24c5c717da4900a04d67..33df47022fdd7b06ca49af7952eb4f958ae0439c 100644 (file)
@@ -14,7 +14,7 @@
 
 
 /* max # of different games playable from within this dgl */
-#define DIFF_GAMES 4
+/*#define DIFF_GAMES 4*/
 
 typedef enum
 {