mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
700b850acd
Previously, MacOpenFile only overrode anything on OS X; otherwise it was just a useless method, which is presumably why it wasn't marked override in the first place. Address this more sanely by wrapping it in #ifdef __APPLE__.
42 lines
751 B
C++
42 lines
751 B
C++
// Copyright 2008 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();
|
|
#ifdef __APPLE__
|
|
void MacOpenFile(const wxString &fileName) override;
|
|
#endif
|
|
|
|
bool BatchMode;
|
|
bool LoadFile;
|
|
bool playMovie;
|
|
wxString FileToLoad;
|
|
wxString movieFile;
|
|
wxLocale *m_locale;
|
|
|
|
void AfterInit();
|
|
void OnEndSession(wxCloseEvent& event);
|
|
};
|
|
|
|
DECLARE_APP(DolphinApp);
|