diff options
author | Simon Howard | 2006-09-26 23:50:39 +0000 |
---|---|---|
committer | Simon Howard | 2006-09-26 23:50:39 +0000 |
commit | 1b3dff9b4a1236afdec52056a08df51505c19df7 (patch) | |
tree | fd250ecfd37741eb4b5f78aa6f7c07eea1dc44fd /setup/testconfig.c | |
parent | e6028047cd51a6d14d4e30b0aae733f51a810f86 (diff) | |
download | chocolate-doom-1b3dff9b4a1236afdec52056a08df51505c19df7.tar.gz chocolate-doom-1b3dff9b4a1236afdec52056a08df51505c19df7.tar.bz2 chocolate-doom-1b3dff9b4a1236afdec52056a08df51505c19df7.zip |
When invoking chocolate doom, run it from the install dir on Unix.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 676
Diffstat (limited to 'setup/testconfig.c')
-rw-r--r-- | setup/testconfig.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/setup/testconfig.c b/setup/testconfig.c index 4e991d1a..19e1ca2c 100644 --- a/setup/testconfig.c +++ b/setup/testconfig.c @@ -37,7 +37,15 @@ static void TestCallback(TXT_UNCAST_ARG(widget), TXT_UNCAST_ARG(data)) TXT_SetWidgetAlign(label, TXT_HORIZ_CENTER); TXT_AddWidget(testwindow, label); TXT_DrawDesktop(); + +#ifdef _WIN32 + // On windows, just run the command - we aren't installed anywhere + // special. system("chocolate-doom -testcontrols"); +#else + // Use the location where we are installed + system(INSTALL_DIR "/chocolate-doom -testcontrols"); +#endif TXT_CloseWindow(testwindow); } |