mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-10-05 05:56:32 +00:00
[Client] Make client window use TES3MP title and icon
This commit is contained in:
parent
2898ad6e9a
commit
8bb22f1b73
2 changed files with 21 additions and 2 deletions
|
@ -668,7 +668,15 @@ void OMW::Engine::createWindow(Settings::Manager& settings)
|
||||||
{
|
{
|
||||||
while (!mWindow)
|
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)
|
if (!mWindow)
|
||||||
{
|
{
|
||||||
// Try with a lower AA
|
// Try with a lower AA
|
||||||
|
@ -742,7 +750,15 @@ void OMW::Engine::createWindow(Settings::Manager& settings)
|
||||||
void OMW::Engine::setWindowIcon()
|
void OMW::Engine::setWindowIcon()
|
||||||
{
|
{
|
||||||
boost::filesystem::ifstream windowIconStream;
|
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);
|
windowIconStream.open(windowIcon, std::ios_base::in | std::ios_base::binary);
|
||||||
if (windowIconStream.fail())
|
if (windowIconStream.fail())
|
||||||
Log(Debug::Error) << "Error: Failed to open " << windowIcon;
|
Log(Debug::Error) << "Error: Failed to open " << windowIcon;
|
||||||
|
|
|
@ -92,6 +92,9 @@ set(MYGUI_FILES
|
||||||
openmw_jail_screen.layout
|
openmw_jail_screen.layout
|
||||||
DejaVuLGCSansMono.ttf
|
DejaVuLGCSansMono.ttf
|
||||||
../launcher/images/openmw.png
|
../launcher/images/openmw.png
|
||||||
|
# Start of tes3mp addition
|
||||||
|
../tes3mp/tes3mp_logo.png
|
||||||
|
# End of tes3mp addition
|
||||||
OpenMWResourcePlugin.xml
|
OpenMWResourcePlugin.xml
|
||||||
skins.xml
|
skins.xml
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue