dolphin/Source/Core/DolphinWX/Main.h
Lioncash ac387031a4 DolphinWX: Kill off trivial event tables
Also fixes some of the wonky stuff in Main where we would fire an event to do post-init stuff which isn't necessary anymore.
2014-11-09 00:08:33 -05:00

43 lines
808 B
C++

// Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
#pragma once
#include <wx/app.h>
#include <wx/chartype.h>
#include <wx/defs.h>
#include <wx/event.h>
#include <wx/string.h>
class CFrame;
class wxLocale;
extern CFrame* main_frame;
// Define a new application
class DolphinApp : public wxApp
{
public:
CFrame* GetCFrame();
private:
bool OnInit() override;
int OnExit() override;
void OnFatalException() override;
bool Initialize(int& c, wxChar **v) override;
void InitLanguageSupport();
void MacOpenFile(const wxString &fileName);
bool BatchMode;
bool LoadFile;
bool playMovie;
wxString FileToLoad;
wxString movieFile;
wxLocale *m_locale;
void AfterInit();
void OnEndSession(wxCloseEvent& event);
};
DECLARE_APP(DolphinApp);