#include "../xvaga/wxinc.h"

extern int xvt_main(int argc, char** argv);

class TMainApp : public wxApp
{
	virtual bool OnInit();
	virtual int OnExit();

  DECLARE_DYNAMIC_CLASS(TMainApp);
};

IMPLEMENT_DYNAMIC_CLASS(TMainApp, wxApp)

DECLARE_APP(TMainApp)

IMPLEMENT_APP(TMainApp)

bool TMainApp::OnInit()
{
	xvt_main(argc, argv);
	return FALSE;  // Prevents entering the Main Loop
}

int TMainApp::OnExit()
{
	return wxApp::OnExit();
}