mirror of
https://github.com/djhackersdev/bemanitools.git
synced 2024-11-28 00:10:51 +01:00
launcher: print build info at startup
This commit is contained in:
parent
7d0c502c45
commit
d3f192976c
@ -20,4 +20,8 @@ src_launcher := \
|
||||
options.c \
|
||||
property.c \
|
||||
stubs.c \
|
||||
version.c \
|
||||
|
||||
volatile_launcher := \
|
||||
version.c \
|
||||
|
||||
|
@ -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 */
|
||||
|
||||
|
4
src/main/launcher/version.c
Normal file
4
src/main/launcher/version.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include "util/defs.h"
|
||||
|
||||
const char *launcher_build_date = __DATE__ " " __TIME__;
|
||||
const char *launcher_gitrev = STRINGIFY(GITREV);
|
4
src/main/launcher/version.h
Normal file
4
src/main/launcher/version.h
Normal file
@ -0,0 +1,4 @@
|
||||
#pragma once
|
||||
|
||||
extern const char *launcher_build_date;
|
||||
extern const char *launcher_gitrev;
|
Loading…
Reference in New Issue
Block a user