Skip to content

Commit 2af76dc

Browse files
committed
Add version information block
1 parent 97a588d commit 2af76dc

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

res/resource.aps

79.4 KB
Binary file not shown.

res/resource.rc

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
// Copyright (c) 2024 Multi Theft Auto team and contributors
22
// SPDX-License-Identifier: GPL-3.0-only
33

4-
#pragma code_page(65001)
4+
#pragma code_page(1252)
55

66
#include "resources.h"
7+
#include "Windows.h"
8+
9+
#if DBG
10+
#define VER_DBG VS_FF_DEBUG
11+
#else
12+
#define VER_DBG 0
13+
#endif
714

815
// Icon with lowest ID value placed first to ensure application icon
916
// remains consistent on all systems.
@@ -15,3 +22,36 @@ ID_CERTIFICATE_2_ID RCDATA "2 Certum Trusted Network CA 2.cer"
1522
ID_CERTIFICATE_3_ID RCDATA "3 Certum Code Signing 2021 CA.cer"
1623
ID_CERTIFICATE_4_ID RCDATA "4 SSL.com Root Certification Authority RSA.cer"
1724
ID_CERTIFICATE_5_ID RCDATA "5 SSL.com Code Signing Intermediate CA RSA R1.cer"
25+
26+
// Version information.
27+
VS_VERSION_INFO VERSIONINFO
28+
FILEVERSION 2,9,0,0
29+
PRODUCTVERSION 2,9,0,0
30+
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
31+
FILEFLAGS VER_DBG
32+
FILEOS VOS_NT_WINDOWS32
33+
FILETYPE VFT_APP
34+
FILESUBTYPE VFT2_UNKNOWN
35+
BEGIN
36+
BLOCK "StringFileInfo"
37+
BEGIN
38+
// https://learn.microsoft.com/en-us/windows/win32/menurc/stringfileinfo-block
39+
BLOCK "040904b0"
40+
BEGIN
41+
VALUE "Comments", ""
42+
VALUE "CompanyName", "Multi Theft Auto"
43+
VALUE "FileDescription", "MTADiag"
44+
VALUE "FileVersion", "2.9.0.0"
45+
VALUE "InternalName", "MTADiag"
46+
VALUE "LegalCopyright", "(C) 2003 - 2024 Multi Theft Auto team and contributors"
47+
VALUE "OriginalFilename", "MTADiag.exe"
48+
VALUE "ProductName", "MTADiag"
49+
VALUE "ProductVersion", "2.9.0.0"
50+
END
51+
END
52+
BLOCK "VarFileInfo"
53+
BEGIN
54+
// https://learn.microsoft.com/en-us/windows/win32/menurc/varfileinfo-block
55+
VALUE "Translation", 0x0409, 1200 // Language tag: en-US, Character set: Unicode
56+
END
57+
END

0 commit comments

Comments
 (0)