From 04ac23d2040c807a4e90038ca3a30d461006bf99 Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Wed, 27 Apr 2022 22:56:13 +0200 Subject: Hardcode version number (#152) * Hardcode version number This way, we don't get the wrong version number when launching Titanfall2.exe via `-northstar` The hardcoded value should be overwritten by CI on release Fixes #129 * Set Northstar version in separate header file * Make `northstar_version` array a constant * Fix formatting --- LauncherInjector/resources.rc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'LauncherInjector') diff --git a/LauncherInjector/resources.rc b/LauncherInjector/resources.rc index 99fcc41e..de16250b 100644 --- a/LauncherInjector/resources.rc +++ b/LauncherInjector/resources.rc @@ -1,6 +1,7 @@ // Microsoft Visual C++ generated resource script. // #include "resource1.h" +#include "../NorthstarDedicatedTest/ns_version.h" #define APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// @@ -61,8 +62,8 @@ IDI_ICON1 ICON "ns_icon.ico" // VS_VERSION_INFO VERSIONINFO - FILEVERSION 0,0,0,1 - PRODUCTVERSION 0,0,0,1 + FILEVERSION NORTHSTAR_VERSION + PRODUCTVERSION NORTHSTAR_VERSION FILEFLAGSMASK 0x3fL #ifdef _DEBUG FILEFLAGS 0x1L -- cgit v1.2.3