program mulpatcher;

uses
  Forms,
  SysUtils,
  uMulpatcher in 'uMulpatcher.pas' {MainForm},
  uConfig in 'uConfig.pas',
  uAnimations in 'uAnimations.pas',
  uUtilities in 'uUtilities.pas',
  uGaugeForm in 'uGaugeForm.pas' {gaugeForm},
  uVerdata in 'uVerdata.pas',
  uGump in 'uGump.pas',
  uArt in 'uArt.pas',
  uTextures in 'uTextures.pas',
  uRadarcol in 'uRadarcol.pas',
  uHues in 'uHues.pas',
  uHueForm in 'uHueForm.pas' {HueForm},
  uLight in 'uLight.pas',
  uTiledata in 'uTiledata.pas',
  uAnim2 in 'uAnim2.pas',
  uAnim3 in 'uAnim3.pas',
  uAnimdata in 'uAnimdata.pas',
  uAboutForm in 'uAboutForm.pas' {AboutForm},
  uStaticChooseForm in 'uStaticChooseForm.pas' {StaticChooseForm},
  uMulti in 'uMulti.pas',
  uSound in 'uSound.pas',
  uStatic in 'uStatic.pas',
  uSEditorForm in 'uSEditorForm.pas' {SEditorForm},
  uDiffForm in 'uDiffForm.pas' {DiffForm},
  uMap in 'uMap.pas',
  uItem in 'uItem.pas',
  uStaticToolForm in 'uStaticToolForm.pas' {StaticToolForm},
  uMapForm in 'uMapForm.pas' {MapForm},
  uHFSE in 'uHFSE.pas' {HFSE},
  uSCFSE in 'uSCFSE.pas' {SCFSE},
  uInfoForm in 'uInfoForm.pas' {InfoForm},
  uMapToolForm in 'uMapToolForm.pas' {MaptoolForm},
  uMCFSE in 'uMCFSE.pas' {MCFSE},
  uWorldFile in 'uWorldFile.pas',
  uItems in 'uItems.pas',
  uStaticDiff in 'uStaticDiff.pas',
  uStaticDiffForm in 'uStaticDiffForm.pas' {StaticDiffForm},
  uMulCrypt in 'uMulCrypt.pas',
  uAnim4 in 'uAnim4.pas',
  uAnim5 in 'uAnim5.pas';

{$R *.res}

begin
  uConfig.Config := TConfig.Create;
  uConfig.Config.Load( ExtractFilePath( Application.ExeName ) + 'config.xml' );
  uAnimations.Animation := TAnimation.Create;
  uVerdata.Verdata := TVerdata.Create;
  uGump.Gump := TGump.Create;
  uArt.Art := TArt.Create;
  uTextures.Textures := TTextures.Create;
  uRadarcol.Radarcol := TRadarcol.Create;
  uHues.Hues := THues.Create;
  uHues.Hues2 := THues.Create;
  uLight.Light := TLight.Create;
  uTiledata.Tiledata := TTiledata.Create;
  uAnim2.Anim2 := TAnim2.Create;
  uAnim3.Anim3 := TAnim3.Create;
  uAnim4.Anim4 := TAnim4.Create;
  uAnim5.Anim5 := TAnim5.Create;
  uAnimdata.Animdata := TAnimdata.Create;
  uMulti.Multi := TMulti.Create;
  uSound.Sound := TSound.Create;
  uStatic.Statics := TStatics.Create;
  uMap.Map := TMap.Create;
  uItems.Items := TItems.Create;
  uWorldFile.WorldFile := TWorldFile.Create;
  uStaticDiff.StaticDiff := TStaticDiff.Create;

  Application.Initialize;
  Application.CreateForm(TMainForm, MainForm);
  Application.CreateForm(TgaugeForm, gaugeForm);
  Application.CreateForm(THueForm, HueForm);
  Application.CreateForm(TAboutForm, AboutForm);
  Application.CreateForm(TStaticChooseForm, StaticChooseForm);
  Application.CreateForm(TSEditorForm, SEditorForm);
  Application.CreateForm(TDiffForm, DiffForm);
  Application.CreateForm(TStaticToolForm, StaticToolForm);
  Application.CreateForm(TMapForm, MapForm);
  Application.CreateForm(THFSE, HFSE);
  Application.CreateForm(TSCFSE, SCFSE);
  Application.CreateForm(TInfoForm, InfoForm);
  Application.CreateForm(TMaptoolForm, MaptoolForm);
  Application.CreateForm(TMCFSE, MCFSE);
  Application.CreateForm(TStaticDiffForm, StaticDiffForm);
  Application.Run;

  uConfig.Config.Free;
  uAnimations.Animation.Free;
  uVerdata.Verdata.Free;
  uGump.Gump.Free;
  uArt.Art.Free;
  uTextures.Textures.Free;
  uRadarcol.Radarcol.Free;
  uHues.Hues.Free;
  uHues.Hues2.Free;
  uLight.Light.Free;
  uTiledata.Tiledata.Free;
  uAnim2.Anim2.Free;
  uAnim3.Anim3.Free;
  uAnim4.Anim4.Free;
  uAnim5.Anim5.Free;
  uAnimdata.Animdata.Free;
  uMulti.Multi.Free;
  uSound.Sound.Free;
  uStatic.Statics.Free;
  uMap.Map.Free;
  uItems.Items.Free;
  uWorldFile.WorldFile.Free;
  uStaticDiff.StaticDiff.Free;
end.

