mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
40 lines
717 B
C++
40 lines
717 B
C++
// Copyright 2013 Dolphin Emulator Project
|
|
// Licensed under GPLv2
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <wx/app.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);
|