by Bio Hazard » Mon Nov 20, 2006 3:11 am
Can ZDoom output the version information when you start it? Since I have to do it all from source, I can lose track of which version I have and getting ZDoom to start up all the way to the console can sometimes be pretty tricky.
I'll see if I can do it myself since nobody seems to care about the Linux branch.
Well, here's a quick patch for a couple changes I made. It does 2 things:
- ZDoom tells you a little about itself as the first thing it does. That way you can know what version etc it is.
- The pick IWAD thing tells you that you can exit by selecting "0" and I just couldn't stand how there wasn't a colon after the "Which one?" prompt

Anyway, here it is:
Spoiler:
Code: Select all
diff -ur zdoom-old/src/sdl/i_main.cpp zdoom/src/sdl/i_main.cpp
--- zdoom-old/src/sdl/i_main.cpp 2006-05-11 20:14:40.000000000 -0700
+++ zdoom/src/sdl/i_main.cpp 2006-11-20 01:07:09.000000000 -0800
@@ -140,6 +140,7 @@
int main (int argc, char **argv)
{
+ printf("ZDoom v%s - SVN revision %s - SDL version\nCompiled on %s\n\n",DOTVERSIONSTR_NOREV,SVN_REVISION_STRING,__DATE__);
{
int s[4] = { SIGSEGV, SIGILL, SIGFPE, SIGBUS };
cc_install_handlers(4, s, "zdoom-crash.log", DoomSpecificInfo);
diff -ur zdoom-old/src/sdl/i_system.cpp zdoom/src/sdl/i_system.cpp
--- zdoom-old/src/sdl/i_system.cpp 2006-09-19 19:00:19.000000000 -0700
+++ zdoom/src/sdl/i_system.cpp 2006-11-20 00:59:27.000000000 -0800
@@ -348,7 +348,7 @@
{
int i;
- printf ("Please select a game wad:\n");
+ printf ("Please select a game wad (or 0 to exit):\n");
for (i = 0; i < numwads; ++i)
{
const char *filepart = strrchr (wads[i].Path, '/');
@@ -358,7 +358,7 @@
filepart++;
printf ("%d. %s (%s)\n", i+1, IWADTypeNames[wads[i].Type], filepart);
}
- printf ("Which one? ");
+ printf ("Which one?: ");
scanf ("%d", &i);
if (i > numwads)
return -1;
Also, here's it attached in case you don't like inline.
- Attachments
-
- main-iwad-edit.txt
- (1.12 KiB) Downloaded 29 times
Can ZDoom output the version information when you start it? Since I have to do it all from source, I can lose track of which version I have and getting ZDoom to start up all the way to the console can sometimes be pretty tricky.
I'll see if I can do it myself since nobody seems to care about the Linux branch.
Well, here's a quick patch for a couple changes I made. It does 2 things:[list=1][*]ZDoom tells you a little about itself as the first thing it does. That way you can know what version etc it is.
[*]The pick IWAD thing tells you that you can exit by selecting "0" and I just couldn't stand how there wasn't a colon after the "Which one?" prompt :)[/list]Anyway, here it is:[spoiler][code]diff -ur zdoom-old/src/sdl/i_main.cpp zdoom/src/sdl/i_main.cpp
--- zdoom-old/src/sdl/i_main.cpp 2006-05-11 20:14:40.000000000 -0700
+++ zdoom/src/sdl/i_main.cpp 2006-11-20 01:07:09.000000000 -0800
@@ -140,6 +140,7 @@
int main (int argc, char **argv)
{
+ printf("ZDoom v%s - SVN revision %s - SDL version\nCompiled on %s\n\n",DOTVERSIONSTR_NOREV,SVN_REVISION_STRING,__DATE__);
{
int s[4] = { SIGSEGV, SIGILL, SIGFPE, SIGBUS };
cc_install_handlers(4, s, "zdoom-crash.log", DoomSpecificInfo);
diff -ur zdoom-old/src/sdl/i_system.cpp zdoom/src/sdl/i_system.cpp
--- zdoom-old/src/sdl/i_system.cpp 2006-09-19 19:00:19.000000000 -0700
+++ zdoom/src/sdl/i_system.cpp 2006-11-20 00:59:27.000000000 -0800
@@ -348,7 +348,7 @@
{
int i;
- printf ("Please select a game wad:\n");
+ printf ("Please select a game wad (or 0 to exit):\n");
for (i = 0; i < numwads; ++i)
{
const char *filepart = strrchr (wads[i].Path, '/');
@@ -358,7 +358,7 @@
filepart++;
printf ("%d. %s (%s)\n", i+1, IWADTypeNames[wads[i].Type], filepart);
}
- printf ("Which one? ");
+ printf ("Which one?: ");
scanf ("%d", &i);
if (i > numwads)
return -1;
[/code][/spoiler]Also, here's it attached in case you don't like inline.