You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created fresh build on Ubuntu 14.04 (but I assume same would go for other plaforms) and I got segfaults due to recent.txt and keys.txt (the one inside config directory) not existing.
Fixing the recent.txt part is pretty easy. Just check inside PlayerInfo::LoadRecent() if creating ifstream was successful.
Fixing the keys.txt part would either require check before actually trying to load them or modifying, so that it can handle file not existing and either return error value or throw exception?
Btw. installing game from ppa didn't result in segfaults. I assume the config files are already created in those.
The text was updated successfully, but these errors were encountered:
Oops. It looks like that's actually a bug I introduced recently when optimizing the file-loading code. Commit 35febc9 should fix it. (I tested it by deleting those files and found that the segfault goes away with that change.)
I created fresh build on Ubuntu 14.04 (but I assume same would go for other plaforms) and I got segfaults due to recent.txt and keys.txt (the one inside config directory) not existing.
Fixing the recent.txt part is pretty easy. Just check inside PlayerInfo::LoadRecent() if creating ifstream was successful.
Fixing the keys.txt part would either require check before actually trying to load them or modifying, so that it can handle file not existing and either return error value or throw exception?
Btw. installing game from ppa didn't result in segfaults. I assume the config files are already created in those.
The text was updated successfully, but these errors were encountered: