2015-05-24 04:55:12 +00:00
|
|
|
// Copyright 2010 Dolphin Emulator Project
|
2015-05-17 23:08:10 +00:00
|
|
|
// Licensed under GPLv2+
|
2014-08-04 00:07:27 +00:00
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
// TODO: Merge this with the original VideoConfigDiag or something
|
|
|
|
// This is an awful way of managing a separate video backend.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
2015-05-08 14:04:40 +00:00
|
|
|
|
|
|
|
#include <wx/dialog.h>
|
2014-08-04 00:07:27 +00:00
|
|
|
|
|
|
|
#include "Core/ConfigManager.h"
|
|
|
|
#include "VideoCommon/VideoBackendBase.h"
|
2015-10-09 18:50:36 +00:00
|
|
|
#include "VideoCommon/VideoConfig.h"
|
2014-08-04 00:07:27 +00:00
|
|
|
|
|
|
|
class SoftwareVideoConfigDialog : public wxDialog
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SoftwareVideoConfigDialog(wxWindow* parent, const std::string &title, const std::string& ininame);
|
|
|
|
~SoftwareVideoConfigDialog();
|
|
|
|
|
|
|
|
void Event_Backend(wxCommandEvent &ev)
|
|
|
|
{
|
2016-01-12 08:35:24 +00:00
|
|
|
VideoBackendBase* new_backend = g_available_video_backends[ev.GetInt()];
|
2014-08-04 00:07:27 +00:00
|
|
|
|
|
|
|
if (g_video_backend != new_backend)
|
|
|
|
{
|
|
|
|
Close();
|
|
|
|
|
|
|
|
g_video_backend = new_backend;
|
2015-06-12 11:56:53 +00:00
|
|
|
SConfig::GetInstance().m_strVideoBackend = g_video_backend->GetName();
|
2014-08-04 00:07:27 +00:00
|
|
|
|
|
|
|
g_video_backend->ShowConfig(GetParent());
|
|
|
|
}
|
|
|
|
ev.Skip();
|
|
|
|
}
|
|
|
|
};
|