dolphin/Source/Core/DolphinWX/Main.h

40 lines
718 B
C
Raw Normal View History

// Copyright 2013 Dolphin Emulator Project
2015-05-18 01:08:10 +02:00
// Licensed under GPLv2+
// Refer to the license.txt file included.
#pragma once
2014-02-22 23:36:30 +01:00
#include <wx/app.h>
class CFrame;
2014-02-22 23:36:30 +01:00
class wxLocale;
2014-07-08 15:58:25 +02:00
extern CFrame* main_frame;
2014-02-22 23:36:30 +01:00
// Define a new application
class DolphinApp : public wxApp
{
public:
CFrame* GetCFrame();
private:
2014-03-08 01:54:44 +01:00
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);