-
Notifications
You must be signed in to change notification settings - Fork 0
/
muApp.h
61 lines (48 loc) · 1.42 KB
/
muApp.h
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// ============================================================================
// muApp
// ============================================================================
#pragma once
// the application icon (under Windows and OS/2 it is in resources and even
// though we could still include the XPM here it would be unused)
//#if !defined(__WXMSW__) && !defined(__WXPM__)
//#include "muPrecompile.xpm"
//#endif
// IDs for the controls and the menu commands
enum
{
// menu items
muPrecompile_Quit = wxID_EXIT,
muPrecompile_About = wxID_ABOUT
};
// Define a new application type, each program should derive a class from wxApp
class muApp : public wxApp
{
public:
~muApp();
// override base class virtuals
virtual void OnInitCmdLine(wxCmdLineParser& parser);
virtual bool OnInit();
virtual int OnExit();
public:
static wxString GetUserAgent();
static wxFileName GetAppDir();
static wxFileName GetGamePath();
static wxFileName GetGameDir();
static wxString GetProductName();
public:
wxString GetCmdLine();
wxString GetGameCommand();
void StartGame();
private:
void LogPlatform();
private:
wxSingleInstanceChecker* m_checker;
wxFFile logFile;
wxLog* logTarget;
wxLog* logTargetOld;
};
DECLARE_APP(muApp);
wxString muGetXMLError(const TiXmlDocument& doc);
// ============================================================================
// EOF
// ============================================================================