1
0
mirror of https://github.com/djhackersdev/bemanitools.git synced 2024-11-28 08:20:51 +01:00

launcher: print build info at startup

This commit is contained in:
Shiz 2023-04-30 19:25:02 +02:00 committed by icex2
parent 7d0c502c45
commit d3f192976c
4 changed files with 17 additions and 0 deletions

View File

@ -20,4 +20,8 @@ src_launcher := \
options.c \
property.c \
stubs.c \
version.c \
volatile_launcher := \
version.c \

View File

@ -14,6 +14,7 @@
#include "launcher/options.h"
#include "launcher/property.h"
#include "launcher/stubs.h"
#include "launcher/version.h"
#include "util/codepage.h"
#include "util/defs.h"
@ -139,6 +140,10 @@ int main(int argc, const char **argv)
struct property_node *ea3_config_root;
log_to_writer(log_writer_file, stdout);
log_info(
"launcher build date %s, gitrev %s",
launcher_build_date,
launcher_gitrev);
/* Read command line */

View File

@ -0,0 +1,4 @@
#include "util/defs.h"
const char *launcher_build_date = __DATE__ " " __TIME__;
const char *launcher_gitrev = STRINGIFY(GITREV);

View File

@ -0,0 +1,4 @@
#pragma once
extern const char *launcher_build_date;
extern const char *launcher_gitrev;