mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
More range-based loops and overrides
This commit is contained in:
@ -56,7 +56,7 @@ static volatile bool fifoStateRun = false;
|
||||
static volatile bool emuRunningState = false;
|
||||
static std::mutex m_csSWVidOccupied;
|
||||
|
||||
std::string VideoSoftware::GetName()
|
||||
std::string VideoSoftware::GetName() const
|
||||
{
|
||||
return _trans("Software Renderer");
|
||||
}
|
||||
|
@ -13,7 +13,7 @@ class VideoSoftware : public VideoBackend
|
||||
bool Initialize(void *&) override;
|
||||
void Shutdown() override;
|
||||
|
||||
std::string GetName() override;
|
||||
std::string GetName() const override;
|
||||
|
||||
void EmuStateChange(EMUSTATE_CHANGE newState) override;
|
||||
|
||||
|
@ -47,11 +47,10 @@ VideoConfigDialog::VideoConfigDialog(wxWindow* parent, const std::string& title,
|
||||
wxStaticText* const label_backend = new wxStaticText(page_general, wxID_ANY, _("Backend:"));
|
||||
wxChoice* const choice_backend = new wxChoice(page_general, wxID_ANY, wxDefaultPosition);
|
||||
|
||||
std::vector<VideoBackend*>::const_iterator
|
||||
it = g_available_video_backends.begin(),
|
||||
itend = g_available_video_backends.end();
|
||||
for (; it != itend; ++it)
|
||||
choice_backend->AppendString(StrToWxStr((*it)->GetDisplayName()));
|
||||
for (const VideoBackend* backend : g_available_video_backends)
|
||||
{
|
||||
choice_backend->AppendString(StrToWxStr(backend->GetDisplayName()));
|
||||
}
|
||||
|
||||
// TODO: How to get the translated plugin name?
|
||||
choice_backend->SetStringSelection(StrToWxStr(g_video_backend->GetName()));
|
||||
|
Reference in New Issue
Block a user