From 8bb22f1b73f89a764261200f3f9356d0d127261e Mon Sep 17 00:00:00 2001 From: David Cernat Date: Fri, 15 Apr 2022 00:08:08 +0300 Subject: [PATCH] [Client] Make client window use TES3MP title and icon --- apps/openmw/engine.cpp | 20 ++++++++++++++++++-- files/mygui/CMakeLists.txt | 3 +++ 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/apps/openmw/engine.cpp b/apps/openmw/engine.cpp index ffae131ca..fe8a0f7a3 100644 --- a/apps/openmw/engine.cpp +++ b/apps/openmw/engine.cpp @@ -668,7 +668,15 @@ void OMW::Engine::createWindow(Settings::Manager& settings) { while (!mWindow) { - mWindow = SDL_CreateWindow("OpenMW", pos_x, pos_y, width, height, flags); + /* + Start of tes3mp change (major) + + Rename the window into TES3MP + */ + mWindow = SDL_CreateWindow("TES3MP", pos_x, pos_y, width, height, flags); + /* + End of tes3mp change (major) + */ if (!mWindow) { // Try with a lower AA @@ -742,7 +750,15 @@ void OMW::Engine::createWindow(Settings::Manager& settings) void OMW::Engine::setWindowIcon() { boost::filesystem::ifstream windowIconStream; - std::string windowIcon = (mResDir / "mygui" / "openmw.png").string(); + /* + Start of tes3mp change (major) + + Use TES3MP's logo for the window icon + */ + std::string windowIcon = (mResDir / "mygui" / "tes3mp_logo.png").string(); + /* + End of tes3mp change (major) + */ windowIconStream.open(windowIcon, std::ios_base::in | std::ios_base::binary); if (windowIconStream.fail()) Log(Debug::Error) << "Error: Failed to open " << windowIcon; diff --git a/files/mygui/CMakeLists.txt b/files/mygui/CMakeLists.txt index 3ff8a1b2b..e160e493a 100644 --- a/files/mygui/CMakeLists.txt +++ b/files/mygui/CMakeLists.txt @@ -92,6 +92,9 @@ set(MYGUI_FILES openmw_jail_screen.layout DejaVuLGCSansMono.ttf ../launcher/images/openmw.png + # Start of tes3mp addition + ../tes3mp/tes3mp_logo.png + # End of tes3mp addition OpenMWResourcePlugin.xml skins.xml