-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathExt.rc
165 lines (138 loc) · 4.54 KB
/
Ext.rc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
// Microsoft Visual C++ generated resource script.
//
#include "resource.h"
// Wraps str into double-quotes, like "str". This function cannot be defined via /D.
#define sub_asStr(str) #str
#define asStr(str) sub_asStr(str)
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#define APSTUDIO_HIDDEN_SYMBOLS
#include <windows.h>
#undef APSTUDIO_HIDDEN_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif // _WIN32
/////////////////////////////////////////////////////////////////////////////
//
// Version
//
1 VERSIONINFO
FILEVERSION 1,0,0,EXTENSION_VERSION
PRODUCTVERSION 1,0,0,EXTENSION_VERSION
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
#ifdef _DEBUG
FILEFLAGS VS_FF_DEBUG
#else
FILEFLAGS 0
#endif
FILEOS VOS__WINDOWS32
FILETYPE VFT_DLL
FILESUBTYPE VFT2_UNKNOWN
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904e4"
BEGIN
VALUE "ProductName", PROJECT_NAME "\0"
VALUE "CompanyName", COMPANY_NAME "\0"
VALUE "FileDescription", PROJECT_NAME ", " asStr(CONFIG) " build " asStr(EXTENSION_VERSION) ".\0"
VALUE "FileVersion", "2.00" "\0"
VALUE "InternalName", PROJECT_NAME ".mfx\0"
VALUE "LegalCopyright", "Copyright © " YEAR " " COMPANY_NAME "\0"
VALUE "OriginalFilename", PROJECT_NAME ".mfx\0"
VALUE "ProductVersion", "Build " asStr(EXTENSION_VERSION) ", date " BUILD_DATE ".\0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x0409, 1252
END
END
// Note: 0x0409 is English US, 1252 is International
// https://docs.microsoft.com/en-us/windows/win32/menurc/versioninfo-resource
/////////////////////////////////////////////////////////////////////////////
//
// RCDATA
//
// All new extensions should use this! Don't set it to 0!
// Pre-existing extensions that are already in MFAs (i.e. pre 8th Nov 2019) should use 0!
//
// Some backstory:
// KPX_MAGICNUMBER is normally 200. The magic number in the KPX_MAGICNUMBER resource
// is stored in the MFA, normally as below: 0x2516, 0x5908.
// Due to an SDK optimisation mistake, KPX_MAGICNUMBER was undefined in DarkEdif
// extensions and the magic number was stored as 0 in all MFXs and thus MFAs made
// with them.
//
// A MFA that was written with an ext with one magic number, and a MFX that has a
// different magic number, are treated as completely different extensions, so you can't
// upgrade your magic tool number outside of a CF2.5+ MFACFG file (ask Yves) or a
// particular MFA modding tool (ask Phi).
//
// In the event you're getting "MFX is not installed" mistakes, you'll need to either
// revert your magic number, or rewrite your MFAs with new magic number. That requires
// a MFA modding tool, that Phi has.
KPX_MAGICNUMBER RCDATA
BEGIN
0x2516, 0x5908
END
#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//
1 TEXTINCLUDE
BEGIN
"resource.h\0"
END
2 TEXTINCLUDE
BEGIN
"#define APSTUDIO_HIDDEN_SYMBOLS\r\n"
"#include <windows.h>\r\n"
"#undef APSTUDIO_HIDDEN_SYMBOLS\r\n"
"\0"
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// String Table
//
// KPX_MARK: MF2 for MMF2, CC25 for MMF1.5, CC2 for MMF1.2
// MMF 1.5 can load both CC25 and CC2, MMF1.2 only loads CC2
STRINGTABLE
BEGIN
1 "MF2"
END
// 2 KPX_NAME - Default object name
// 3 KPX_CREATETITLE -Tool title (popup?)
// 4 KPX_HIDDEN - If hidden KCX (?)
// 400 EXO_ICON - Icon in object bar
// 401 EXO_IMAGE - Image in frame editor
// 210 VITALIZE_ID - magic num?
// 200 KPX_TOOLICON - Icon v2 (MMF1.5+?)
/////////////////////////////////////////////////////////////////////////////
//
// Edif
//
// External JSON file (DARKEXT_JSON_FILE_EXTERNAL) means not embedded in ext
// If editor, DarkExt.json is used, otherwise DarkExt.PostMinify.json,
// which is created by DarkEdifPreBuildTool minifying DarkExt.json.
#if EditorBuild
IDR_EDIF_ICON Edif "Icon.png"
#if !defined(DARKEXT_JSON_FILE_EXTERNAL)
IDR_EDIF_JSON Edif "DarkExt.json"
#endif
#elif /* RuntimeBuild and */ !defined(DARKEXT_JSON_FILE_EXTERNAL)
IDR_EDIF_JSON Edif "DarkExt.PostMinify.json"
#endif
#endif // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////