PilzAdam wrote:The favorite server list is broken under windows.
std::ifstream istream(path.c_str(), std::ios::binary);std::ifstream istream(path.c_str());ds-2k wrote:PilzAdam, could you try making a windows build with a modification to:
https://github.com/minetest/minetest/blob/master/src/serverlist.cpp#L56
replacingYour phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
std::ifstream istream(path.c_str(), std::ios::binary);
withYour phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
std::ifstream istream(path.c_str());
and see if the favorites list works for windows users then? (Other uses of ifstream/ofstream such as reading minetest.conf do not use std::ios::binary: https://github.com/minetest/minetest/blob/master/src/settings.h#L169).
sfan5 wrote:Here you go: http://sfan.sf.funpic.de/minetest-builds/c55/minetest-0.4.6-a031a15-serverlistfix-win32.7z
ds-2k wrote:sfan5 wrote:Here you go: http://sfan.sf.funpic.de/minetest-builds/c55/minetest-0.4.6-a031a15-serverlistfix-win32.7z
I rebooted into windows xp and this works (I joined 2 servers and they both appeared in the server favorites list). When I compiled on linux with that change, the server favorites list continues to work fine, so I think you could pull request the fix to the main repository.
Users browsing this forum: No registered users and 13 guests