Skip to content
This repository has been archived by the owner on Jun 24, 2023. It is now read-only.

Commit

Permalink
Log version in pre_init
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWillard committed Dec 12, 2020
1 parent 469257c commit d603f7e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
8 changes: 4 additions & 4 deletions addons/main/script_version.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define MAJOR 1
#define MINOR 0
#define PATCHLVL 10
#define BUILD 2
#define MAJOR 0
#define MINOR 2
#define PATCHLVL 0
#define BUILD 16
12 changes: 11 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@

#define GRAD_REPLAY_USER_AGENT "grad_replay_intercept/0.3"

#ifndef __GRAD_REPLAY_INTERCEPT_VERSION_HEADER__
#define __GRAD_REPLAY_INTERCEPT_VERSION_HEADER__
#include "../addons/main/script_version.hpp"
#endif

namespace nl = nlohmann;

namespace fs = std::filesystem;
Expand Down Expand Up @@ -65,7 +70,12 @@ int intercept::api_version() {
void intercept::register_interfaces() {}

void intercept::pre_init() {
intercept::sqf::diag_log(sqf::text("[GRAD] (replay_intercept) INFO: Running"));

std::stringstream strVersion;
strVersion << "[GRAD] (replay_intercept) INFO: Running (";
strVersion << MAJOR << "." << MINOR << "." << PATCHLVL << "." << BUILD << ")";

intercept::sqf::diag_log(sqf::text(strVersion.str()));
}

std::map<int, std::array<float_t, 4>> constructColorMap(types::auto_array<types::game_value> colorArray) {
Expand Down

0 comments on commit d603f7e

Please sign in to comment.