forked from TES5Edit/TES5Edit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxEdit.dpr
164 lines (144 loc) · 6.03 KB
/
xEdit.dpr
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
{******************************************************************************
This Source Code Form is subject to the terms of the Mozilla Public License,
v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain
one at https://mozilla.org/MPL/2.0/.
*******************************************************************************}
{$I xeDefines.inc}
{$IFDEF EXCEPTION_LOGGING_ENABLED}
// JCL_DEBUG_EXPERT_GENERATEJDBG OFF
// JCL_DEBUG_EXPERT_INSERTJDBG ON
// JCL_DEBUG_EXPERT_DELETEMAPFILE ON
{$ENDIF}
program xEdit;
{$RTTI EXPLICIT METHODS([vcPrivate, vcProtected, vcPublic, vcPublished]) PROPERTIES([vcPrivate, vcProtected, vcPublic, vcPublished]) FIELDS([vcPrivate, vcProtected, vcPublic, vcPublished])}
uses
{$IFDEF EXCEPTION_LOGGING_ENABLED}
nxExceptionHook,
{$ENDIF }
Winapi.Windows,
Forms,
Dialogs,
SysUtils,
VirtualTrees,
VTEditors,
VirtualEditTree,
{$IFNDEF LiteVersion}
cxVTEditors,
{$ENDIF }
Vcl.Themes,
Vcl.Styles,
Vcl.Styles.Hooks,
Vcl.Styles.Utils.Menus,
Vcl.Styles.Utils.Forms,
Vcl.Styles.Utils.StdCtrls,
Vcl.Styles.Utils.ScreenTips,
xeInit in 'xEdit\xeInit.pas',
wbBetterStringList in 'Core\wbBetterStringList.pas',
wbBSA in 'Core\wbBSA.pas',
wbCommandLine in 'Core\wbCommandLine.pas',
wbDataFormat in 'Core\wbDataFormat.pas',
wbDataFormatMaterial in 'Core\wbDataFormatMaterial.pas',
wbDataFormatMisc in 'Core\wbDataFormatMisc.pas',
wbDataFormatNif in 'Core\wbDataFormatNif.pas',
wbDataFormatNifTypes in 'Core\wbDataFormatNifTypes.pas',
wbDefinitionsCommon in 'Core\wbDefinitionsCommon.pas',
wbDefinitionsFNV in 'Core\wbDefinitionsFNV.pas',
wbDefinitionsFNVSaves in 'Core\wbDefinitionsFNVSaves.pas',
wbDefinitionsFO3 in 'Core\wbDefinitionsFO3.pas',
wbDefinitionsFO3Saves in 'Core\wbDefinitionsFO3Saves.pas',
wbDefinitionsFO4 in 'Core\wbDefinitionsFO4.pas',
wbDefinitionsFO4Saves in 'Core\wbDefinitionsFO4Saves.pas',
wbDefinitionsFO76 in 'Core\wbDefinitionsFO76.pas',
wbDefinitionsTES3 in 'Core\wbDefinitionsTES3.pas',
wbDefinitionsTES4 in 'Core\wbDefinitionsTES4.pas',
wbDefinitionsTES4Saves in 'Core\wbDefinitionsTES4Saves.pas',
wbDefinitionsTES5 in 'Core\wbDefinitionsTES5.pas',
wbDefinitionsTES5Saves in 'Core\wbDefinitionsTES5Saves.pas',
wbHalfFloat in 'Core\wbHalfFloat.pas',
wbHardcoded in 'Core\wbHardcoded.pas' {wbHardcodedContainer: TDataModule},
wbHelpers in 'Core\wbHelpers.pas',
wbImplementation in 'Core\wbImplementation.pas',
wbInterface in 'Core\wbInterface.pas',
wbLocalization in 'Core\wbLocalization.pas',
wbLOD in 'Core\wbLOD.pas',
wbModGroups in 'Core\wbModGroups.pas',
wbNifMath in 'Core\wbNifMath.pas',
wbNifScanner in 'Core\wbNifScanner.pas',
wbSaveInterface in 'Core\wbSaveInterface.pas',
wbSort in 'Core\wbSort.pas',
wbStreams in 'Core\wbStreams.pas',
xeDeveloperMessageForm in 'xEdit\xeDeveloperMessageForm.pas' {frmDeveloperMessage},
xeEditWarningForm in 'xEdit\xeEditWarningForm.pas' {frmEditWarning},
xeFileSelectForm in 'xEdit\xeFileSelectForm.pas' {frmFileSelect},
xeFilterOptionsForm in 'xEdit\xeFilterOptionsForm.pas' {frmFilterOptions},
xeLegendForm in 'xEdit\xeLegendForm.pas' {frmLegend},
xeLocalizationForm in 'xEdit\xeLocalizationForm.pas' {frmLocalization},
xeLocalizePluginForm in 'xEdit\xeLocalizePluginForm.pas' {frmLocalizePlugin},
xeLODGenForm in 'xEdit\xeLODGenForm.pas',
xeLogAnalyzerForm in 'xEdit\xeLogAnalyzerForm.pas' {frmLogAnalyzer},
xeMainForm in 'xEdit\xeMainForm.pas' {frmMain},
xeModGroupEditForm in 'xEdit\xeModGroupEditForm.pas',
xeModGroupSelectForm in 'xEdit\xeModGroupSelectForm.pas',
xeModuleSelectForm in 'xEdit\xeModuleSelectForm.pas',
xeOptionsForm in 'xEdit\xeOptionsForm.pas' {frmOptions},
xeRichEditForm in 'xEdit\xeRichEditForm.pas' {frmRichEdit},
xejviScriptAdapter in 'xEdit\JvI\xejviScriptAdapter.pas',
xejviScriptAdapterDF in 'xEdit\JvI\xejviScriptAdapterDF.pas',
xejviScriptAdapterMisc in 'xEdit\JvI\xejviScriptAdapterMisc.pas',
xeScriptForm in 'xEdit\xeScriptForm.pas' {frmScript},
xeTipForm in 'xEdit\xeTipForm.pas',
xeViewElementsForm in 'xEdit\xeViewElementsForm.pas' {frmViewElements},
xeWaitForm in 'xEdit\xeWaitForm.pas' {frmWait},
xeWorldspaceCellDetailsForm in 'xEdit\xeWorldspaceCellDetailsForm.pas' {frmWorldspaceCellDetails},
xeScriptHost in 'xEdit\xeScriptHost.pas',
xejviScriptHost in 'xEdit\JvI\xejviScriptHost.pas',
wbDefinitionsSF1 in 'Core\wbDefinitionsSF1.pas',
wbDefinitionsSignatures in 'Core\wbDefinitionsSignatures.pas',
__FNVConversionFunctions in 'xEdit\Convert\__FNVConversionFunctions.pas',
__FNVMultiLoop3 in 'xEdit\Convert\__FNVMultiLoop3.pas',
__FNVMultiLoopFunctions in 'xEdit\Convert\__FNVMultiLoopFunctions.pas',
__ScriptAdapterFunctions in 'xEdit\Convert\__ScriptAdapterFunctions.pas',
__FNVImportFuctionsTextv2 in 'xEdit\Convert\__FNVImportFuctionsTextv2.pas',
__FNVImportCleanup in 'xEdit\Convert\__FNVImportCleanup.pas',
converterFileManager in 'xEdit\Convert\converterFileManager.pas',
convertMain in 'xEdit\Convert\convertMain.pas';
{$R *.res}
{$MAXSTACKSIZE 2097152}
const
IMAGE_FILE_LARGE_ADDRESS_AWARE = $0020;
{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}
begin
if FindCmdLineSwitch('script:Extract') then begin
convertMain.Main;
Exit;
end;
UseLatestCommonDialogs := True;
SysUtils.FormatSettings.DecimalSeparator := '.';
Application.Initialize;
Application.MainFormOnTaskbar := True;
Application.UpdateFormatSettings := False;
Application.HintHidePause := 10000;
xeInitStyles;
if not xeDoInit then
Exit;
if xeIconResource <> '' then begin
var lIconHandle := LoadIcon(HInstance, PChar(xeIconResource));
if lIconHandle <> 0 then
Application.Icon.Handle := lIconHandle;
end;
{$IFDEF EXCEPTION_LOGGING_ENABLED}
nxEHAppVersion := wbApplicationTitle;
{$ENDIF}
Application.Title := wbApplicationTitle;
try
Application.CreateForm(TfrmMain, frmMain);
if xeHideForm then begin
frmMain.Visible := False;
Application.ShowMainForm := False;
frmMain.tmrStartup.Enabled := True;
end;
Application.Run;
finally
DoRename;
end;
end.