dolphin/Source/Core/DolphinWX/Main.h

52 lines
1.1 KiB
C
Raw Normal View History

// Copyright 2008 Dolphin Emulator Project
2015-05-17 23:08:10 +00:00
// Licensed under GPLv2+
// Refer to the license.txt file included.
#pragma once
2014-02-22 22:36:30 +00:00
#include <wx/app.h>
class CFrame;
2014-02-22 22:36:30 +00:00
class wxLocale;
2014-07-08 13:58:25 +00:00
extern CFrame* main_frame;
2014-02-22 22:36:30 +00:00
// Define a new application
class DolphinApp : public wxApp
{
public:
CFrame* GetCFrame();
private:
2014-03-08 00:54:44 +00:00
bool OnInit() override;
int OnExit() override;
void OnInitCmdLine(wxCmdLineParser& parser) override;
bool OnCmdLineParsed(wxCmdLineParser& parser) override;
2014-03-08 00:54:44 +00:00
void OnFatalException() override;
bool Initialize(int& c, wxChar** v) override;
#ifdef __APPLE__
void MacOpenFile(const wxString &fileName) override;
#endif
void OnEndSession(wxCloseEvent& event);
void InitLanguageSupport();
void AfterInit();
bool m_batch_mode = false;
bool m_load_file = false;
bool m_play_movie = false;
bool m_use_debugger = false;
bool m_use_logger = false;
bool m_select_video_backend = false;
bool m_select_audio_emulation = false;
wxString m_video_backend_name;
wxString m_audio_emulation_name;
wxString m_user_path;
wxString m_file_to_load;
wxString m_movie_file;
wxLocale* m_locale;
};
DECLARE_APP(DolphinApp);