mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:53:51 +00:00
Fix for loading window icon on Windows
This commit is contained in:
parent
753d35b0de
commit
f8f0380413
1 changed files with 1 additions and 1 deletions
|
@ -414,7 +414,7 @@ void OMW::Engine::setWindowIcon()
|
||||||
{
|
{
|
||||||
boost::filesystem::ifstream windowIconStream;
|
boost::filesystem::ifstream windowIconStream;
|
||||||
std::string windowIcon = (mResDir / "mygui" / "openmw.png").string();
|
std::string windowIcon = (mResDir / "mygui" / "openmw.png").string();
|
||||||
windowIconStream.open(windowIcon);
|
windowIconStream.open(windowIcon, std::ios_base::in | std::ios_base::binary);
|
||||||
if (windowIconStream.fail())
|
if (windowIconStream.fail())
|
||||||
std::cerr << "Failed to open " << windowIcon << std::endl;
|
std::cerr << "Failed to open " << windowIcon << std::endl;
|
||||||
osgDB::ReaderWriter* reader = osgDB::Registry::instance()->getReaderWriterForExtension("png");
|
osgDB::ReaderWriter* reader = osgDB::Registry::instance()->getReaderWriterForExtension("png");
|
||||||
|
|
Loading…
Reference in a new issue