mirror of
https://gitlab.com/manzerbredes/ochess.git
synced 2025-04-09 22:56:53 +00:00
18 lines
453 B
C++
18 lines
453 B
C++
#include "ochess.hpp"
|
|
#include "MainWindow.hpp"
|
|
|
|
bool MyApp::OnInit() {
|
|
wxImage::AddHandler(new wxPNGHandler);
|
|
|
|
MainWindow *frame = new MainWindow();
|
|
frame->Show(true);
|
|
return true;
|
|
}
|
|
wxIMPLEMENT_APP(MyApp);
|
|
|
|
void Abort(std::string msg) {
|
|
wxMessageDialog *dial = new wxMessageDialog(NULL, wxString(msg), wxT("Error"),
|
|
wxOK | wxICON_ERROR);
|
|
dial->ShowModal();
|
|
wxLogFatalError(wxString(msg));
|
|
}
|