60 lines
2.1 KiB
C++
60 lines
2.1 KiB
C++
/*
|
|
Copyright (C) 2003 - Derek John Evans
|
|
|
|
This file is part of Yeti3D Portable Engine
|
|
|
|
Yeti3D is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public License
|
|
as published by the Free Software Foundation; either version 2
|
|
of the License, or (at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
See the GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
Original Source: 2003 - Derek J. Evans <derek@theteahouse.com.au>
|
|
Prepared for public release: 10/24/2003 - Derek J. Evans <derek@theteahouse.com.au>
|
|
*/
|
|
|
|
#include <vcl.h>
|
|
#pragma hdrstop
|
|
//---------------------------------------------------------------------------
|
|
USEFORM("UnitMain.cpp", FormMain);
|
|
USEFORM("UnitPreview.cpp", FormPreview);
|
|
USEFORM("UnitSplash.cpp", FormSplash);
|
|
//---------------------------------------------------------------------------
|
|
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
|
|
{
|
|
try
|
|
{
|
|
Application->Initialize();
|
|
Application->Title = "Yeti3D World Editor";
|
|
Application->CreateForm(__classid(TFormMain), &FormMain);
|
|
Application->CreateForm(__classid(TFormPreview), &FormPreview);
|
|
Application->CreateForm(__classid(TFormSplash), &FormSplash);
|
|
Application->Run();
|
|
}
|
|
catch (Exception &exception)
|
|
{
|
|
Application->ShowException(&exception);
|
|
}
|
|
catch (...)
|
|
{
|
|
try
|
|
{
|
|
throw Exception("");
|
|
}
|
|
catch (Exception &exception)
|
|
{
|
|
Application->ShowException(&exception);
|
|
}
|
|
}
|
|
return 0;
|
|
}
|
|
//---------------------------------------------------------------------------
|