From 157b37d5578dffe4ca1f3ece83aa978dbc8eabe4 Mon Sep 17 00:00:00 2001 From: Kirollos Date: Fri, 22 Nov 2024 20:21:55 +0200 Subject: [PATCH] chore: macro for plugin version --- DiscordEuroscope/DiscordEuroscopeExt.cpp | 2 +- DiscordEuroscope/config.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/DiscordEuroscope/DiscordEuroscopeExt.cpp b/DiscordEuroscope/DiscordEuroscopeExt.cpp index fda7888..1560963 100644 --- a/DiscordEuroscope/DiscordEuroscopeExt.cpp +++ b/DiscordEuroscope/DiscordEuroscopeExt.cpp @@ -21,7 +21,7 @@ #include "ConfigManager.h" #include "MessageFormatter.h" -DiscordEuroscopeExt::DiscordEuroscopeExt() : EuroScopePlugIn::CPlugIn(EuroScopePlugIn::COMPATIBILITY_CODE, "Discord Euroscope", "1.3.0", "Kirollos Nashaat", "GNU GPLv3") +DiscordEuroscopeExt::DiscordEuroscopeExt() : EuroScopePlugIn::CPlugIn(EuroScopePlugIn::COMPATIBILITY_CODE, "DiscordEuroscope", PLUGIN_VERSION, "Kirollos Nashaat", "GNU GPLv3") { char DllPathFile[_MAX_PATH]; std::string RCPath; diff --git a/DiscordEuroscope/config.h b/DiscordEuroscope/config.h index abb359d..9637a46 100644 --- a/DiscordEuroscope/config.h +++ b/DiscordEuroscope/config.h @@ -16,6 +16,8 @@ */ #pragma once +#define PLUGIN_VERSION ("1.3.0") + #define UPDATE_TIMER (1000) // milliseconds #define CONFIG_FILENAME "DiscordEuroscope_config.json" // No longer used by any logic in the code. Only used to be dumped in default .json config file.