mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
484130049d
The messages can come through CFrame::MSWWindowProc and the wxApp implementation, so make sure to catch both. Fixes issue 6546.
42 lines
742 B
C++
42 lines
742 B
C++
// Copyright 2013 Dolphin Emulator Project
|
|
// Licensed under GPLv2
|
|
// Refer to the license.txt file included.
|
|
|
|
#ifndef __MAIN_H_
|
|
#define __MAIN_H_
|
|
|
|
#include "Frame.h"
|
|
|
|
// Define a new application
|
|
class CFrame;
|
|
class DolphinApp : public wxApp
|
|
{
|
|
public:
|
|
CFrame* GetCFrame();
|
|
|
|
private:
|
|
bool OnInit();
|
|
int OnExit();
|
|
void OnFatalException();
|
|
bool Initialize(int& c, wxChar **v);
|
|
void InitLanguageSupport();
|
|
void MacOpenFile(const wxString &fileName);
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
wxTimer *m_afterinit;
|
|
bool BatchMode;
|
|
bool LoadFile;
|
|
bool playMovie;
|
|
wxString FileToLoad;
|
|
wxString movieFile;
|
|
wxLocale *m_locale;
|
|
|
|
void AfterInit(wxTimerEvent& WXUNUSED(event));
|
|
void OnEndSession(wxCloseEvent& event);
|
|
};
|
|
|
|
DECLARE_APP(DolphinApp);
|
|
|
|
#endif
|