source: oup/current/OniUnPacker.dpr@ 89

Last change on this file since 89 was 88, checked in by alloc, 18 years ago
  • Property svn:executable set to *
File size: 1.5 KB
Line 
1program OniUnPacker;
2
3uses
4 Forms, Windows,
5 Main in 'Main.pas' {Form_Main},
6 Data in 'Data.pas',
7 Helper_LevelDB in 'Helper_LevelDB.pas' {Form_LevelDB},
8 Helper_ValueEdit in 'Helper_ValueEdit.pas' {Form_ValueEdit},
9 Settings in 'Settings.pas' {Form_Settings},
10 FTypeReg in 'FTypeReg.pas',
11 Functions in 'Code\Functions.pas',
12 Exporters in 'Code\Exporters.pas',
13 OniImgClass in 'Code\OniImgClass.pas',
14 DataStructures in 'Code\DataStructures.pas',
15 OniDataClass in 'Code\OniDataClass.pas',
16 Template in 'Tools\Template.pas' {Form_ToolTemplate},
17 Preview in 'Tools\Preview.pas' {Form_Preview},
18 BinEdit in 'Tools\BinEdit.pas' {Form_ToolTemplate2},
19 Extractor in 'Tools\Extractor.pas' {Form_ToolTemplate3},
20 RawEdit in 'Tools\RawEdit.pas' {Form_ToolTemplate4},
21 TxmpReplace in 'Tools\TxmpReplace.pas' {Form_ToolTemplate5},
22 FolderBrowser in 'Code\FolderBrowser.pas';
23
24{$R *.res}
25{$R ExtraIcos.res}
26const
27 MutexName = 'Oni Un/Packer';
28var
29 hMutex: THandle;
30
31begin
32 hMutex := CreateMutex(nil, True, MutexName);
33 if (hMutex = 0) or (GetLastError = ERROR_ALREADY_EXISTS) then
34 begin
35 PostMessage(HWND_BROADCAST, 0, 0, 0);
36 end
37 else
38 begin
39 Application.Initialize;
40 Application.Title := 'Oni Un/Packer';
41 Application.CreateForm(TForm_Main, Form_Main);
42 Application.CreateForm(TForm_LevelDB, Form_LevelDB);
43 Application.CreateForm(TForm_ValueEdit, Form_ValueEdit);
44 Application.CreateForm(TForm_Settings, Form_Settings);
45 Application.Run;
46 end;
47 CloseHandle(hMutex);
48end.
Note: See TracBrowser for help on using the repository browser.