mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
VideoBackend: Video config filename is now exposed in VideoBackends.
It reduces redundancy. Needed make possible to save current video config.
This commit is contained in:
@ -67,14 +67,19 @@ std::string VideoSoftware::GetDisplayName() const
|
||||
return "Software Renderer";
|
||||
}
|
||||
|
||||
std::string VideoSoftware::GetConfigName() const
|
||||
{
|
||||
return "gfx_software";
|
||||
}
|
||||
|
||||
void VideoSoftware::ShowConfig(void *hParent)
|
||||
{
|
||||
Host_ShowVideoConfig(hParent, GetDisplayName(), "gfx_software");
|
||||
Host_ShowVideoConfig(hParent, GetDisplayName(), GetConfigName());
|
||||
}
|
||||
|
||||
bool VideoSoftware::Initialize(void *window_handle)
|
||||
{
|
||||
g_SWVideoConfig.Load((File::GetUserPath(D_CONFIG_IDX) + "gfx_software.ini").c_str());
|
||||
g_SWVideoConfig.Load((File::GetUserPath(D_CONFIG_IDX) + GetConfigName() + ".ini").c_str());
|
||||
|
||||
InitInterface();
|
||||
GLInterface->SetMode(GLInterfaceMode::MODE_DETECT);
|
||||
|
@ -19,6 +19,7 @@ class VideoSoftware : public VideoBackend
|
||||
|
||||
std::string GetName() const override;
|
||||
std::string GetDisplayName() const override;
|
||||
std::string GetConfigName() const override;
|
||||
|
||||
void EmuStateChange(EMUSTATE_CHANGE newState) override;
|
||||
|
||||
|
Reference in New Issue
Block a user