summaryrefslogtreecommitdiff
path: root/src/setup/execute.c
diff options
context:
space:
mode:
authorSimon Howard2009-05-08 19:15:25 +0000
committerSimon Howard2009-05-08 19:15:25 +0000
commit97f0be5d839ae5ec5b4c4d28dcf850f7afe08555 (patch)
treee6432180085f511fa4c6cc51978c03a2d297a8e8 /src/setup/execute.c
parent86934db17860154f8fd9680bfca7e3a72669dc07 (diff)
downloadchocolate-doom-97f0be5d839ae5ec5b4c4d28dcf850f7afe08555.tar.gz
chocolate-doom-97f0be5d839ae5ec5b4c4d28dcf850f7afe08555.tar.bz2
chocolate-doom-97f0be5d839ae5ec5b4c4d28dcf850f7afe08555.zip
Choose appropriate executable depending on game type.
Subversion-branch: /branches/raven-branch Subversion-revision: 1514
Diffstat (limited to 'src/setup/execute.c')
-rw-r--r--src/setup/execute.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/src/setup/execute.c b/src/setup/execute.c
index 9846cd20..a43c3220 100644
--- a/src/setup/execute.c
+++ b/src/setup/execute.c
@@ -39,23 +39,10 @@
#include "config.h"
#include "execute.h"
+#include "mode.h"
#include "m_argv.h"
#include "m_config.h"
-#ifdef _WIN32
-#define DOOM_BINARY PACKAGE_TARNAME ".exe"
-#else
-#define DOOM_BINARY INSTALL_DIR "/" PACKAGE_TARNAME
-#endif
-
-#ifdef _WIN32
-#define DIR_SEPARATOR '\\'
-#define PATH_SEPARATOR ';'
-#else
-#define DIR_SEPARATOR '/'
-#define PATH_SEPARATOR ':'
-#endif
-
struct execute_context_s
{
char *response_file;
@@ -196,7 +183,7 @@ int ExecuteDoom(execute_context_t *context)
response_file_arg = malloc(strlen(context->response_file) + 2);
sprintf(response_file_arg, "@%s", context->response_file);
- argv[0] = DOOM_BINARY;
+ argv[0] = GetExecutableName();
argv[1] = response_file_arg;
argv[2] = NULL;