Skip to content

Commit

Permalink
Add SDL info to version command output
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-drexler committed Aug 2, 2024
1 parent 8a3765e commit cf45b30
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
16 changes: 12 additions & 4 deletions Quake/host.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,18 @@ void Host_FindMaxClients (void)

void Host_Version_f (void)
{
Con_Printf ("Quake Version %1.2f\n", VERSION);
Con_Printf ("QuakeSpasm Version " QUAKESPASM_VER_STRING "\n");
Con_Printf ("Ironwail Version " IRONWAIL_VER_STRING "\n");
Con_Printf ("Exe: " __TIME__ " " __DATE__ " (%s %d-bit)\n", SDL_GetPlatform (), (int)sizeof(void*)*8);
SDL_version sdl_linked;
SDL_GetVersion (&sdl_linked);

Con_Printf ("\n");
Con_Printf ("Quake %1.2f\n", VERSION);
Con_Printf ("QuakeSpasm " QUAKESPASM_VER_STRING "\n");
Con_Printf ("Ironwail " IRONWAIL_VER_STRING "\n");
Con_Printf ("Exe " __TIME__ " " __DATE__ "\n");
Con_Printf ("SDL " Q_SDL_COMPILED_VERSION_STRING " (compiled)\n");
Con_Printf (" %d.%d.%d (linked)\n", sdl_linked.major, sdl_linked.minor, sdl_linked.patch);
Con_Printf ("OS %s %d-bit\n", SDL_GetPlatform (), (int)sizeof(void*)*8);
Con_Printf ("\n");
}

/* cvar callback functions : */
Expand Down
3 changes: 3 additions & 0 deletions Quake/quakedef.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define QUAKESPASM_VER_STRING QS_STRINGIFY(QUAKESPASM_VERSION) "." QS_STRINGIFY(QUAKESPASM_VER_PATCH) QUAKESPASM_VER_SUFFIX
#define IRONWAIL_VER_STRING QS_STRINGIFY(IRONWAIL_VER_MAJOR) "." QS_STRINGIFY(IRONWAIL_VER_MINOR) "." QS_STRINGIFY(IRONWAIL_VER_PATCH) IRONWAIL_VER_SUFFIX

// SDL version the code was compiled with
#define Q_SDL_COMPILED_VERSION_STRING QS_STRINGIFY(SDL_MAJOR_VERSION) "." QS_STRINGIFY(SDL_MINOR_VERSION) "." QS_STRINGIFY(SDL_PATCHLEVEL)

#define CONSOLE_TITLE_STRING "Ironwail " IRONWAIL_VER_STRING
#define WINDOW_TITLE_STRING "Quake/Ironwail " IRONWAIL_VER_STRING
#define CONFIG_NAME "ironwail.cfg"
Expand Down

0 comments on commit cf45b30

Please sign in to comment.