-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathApp.cpp
More file actions
36 lines (28 loc) · 692 Bytes
/
App.cpp
File metadata and controls
36 lines (28 loc) · 692 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
** HLMWadExplorer
**
** Copyright (C) 2015 Tobias Taschner <github@tc84.de>
**
** Licensed under GPL v3 or later
*/
#include <wx/wx.h>
#include "ExploreFrame.h"
class WADExplorerApp : public wxApp
{
public:
virtual bool OnInit()
{
wxImage::AddHandler(new wxPNGHandler());
wxImage::AddHandler(new wxJPEGHandler());
wxImage::AddHandler(new wxGIFHandler());
wxImage::AddHandler(new wxTGAHandler());
SetAppName("HLMWADExplorer");
SetAppDisplayName("HLM WAD Explorer");
ExploreFrame* frame = new ExploreFrame(NULL);
if (!frame->OpenBaseFile())
return false;
frame->Show();
return true;
}
};
wxIMPLEMENT_APP(WADExplorerApp);