Bug #892
wallpaper txt codec fix
| Status: | Fixed | Start date: | 12/30/2011 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % Done: | 100% |
||
| Category: | RoR - GUI | |||
| Target version: | 0.39 | |||
| Operating System: | Cross-Platform | Operating System Bits: | 32 Bit |
Description
Error message:
14:44:11: Texture: wallpaper.jpg: Loading 1 faces(PF_R8G8B8,495x371x1) with 0 generated mipmaps from Image. Internal format is PF_X8R8G8B8,495x371x1.
14:44:11: OGRE EXCEPTION: Can not find codec for 'txt' image format.
Problem:
The game tries to load the info.txt file as wallpaper.
Possible fix:
In source/main/gui/gui_manager.cpp:186: change
FileInfoListPtr files = Ogre::ResourceGroupManager::getSingleton().findResourceFileInfo("Wallpapers", "*", false);
to
FileInfoListPtr files = Ogre::ResourceGroupManager::getSingleton().findResourceFileInfo("Wallpapers", "*.jpg", false);
Notes:
I didn't test this.
Associated revisions
fixes #892