summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/MainNoGUI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/DolphinWX/MainNoGUI.cpp')
-rw-r--r--Source/Core/DolphinWX/MainNoGUI.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/Source/Core/DolphinWX/MainNoGUI.cpp b/Source/Core/DolphinWX/MainNoGUI.cpp
index 9231b3ef3a..cca5d6ffb8 100644
--- a/Source/Core/DolphinWX/MainNoGUI.cpp
+++ b/Source/Core/DolphinWX/MainNoGUI.cpp
@@ -31,6 +31,7 @@ class Platform
{
public:
virtual void Init() = 0;
+ virtual void SetTitle(const std::string &title) = 0;
virtual void MainLoop() = 0;
virtual void Shutdown() = 0;
virtual ~Platform() {};
@@ -58,7 +59,10 @@ void* Host_GetRenderHandle()
return windowHandle;
}
-void Host_UpdateTitle(const std::string& title){};
+void Host_UpdateTitle(const std::string& title)
+{
+ platform->SetTitle(title);
+}
void Host_UpdateDisasmDialog(){}
@@ -175,6 +179,11 @@ class PlatformX11 : public Platform
}
}
+ void SetTitle(const std::string &string) override
+ {
+ XStoreName(dpy, win, string.c_str());
+ }
+
void MainLoop() override
{
bool fullscreen = SConfig::GetInstance().m_LocalCoreStartupParameter.bFullscreen;