lp:~widelands-dev/widelands/handling-various-fs-errors
- Get this branch:
- bzr branch lp:~widelands-dev/widelands/handling-various-fs-errors
Branch merges
- GunChleoc: Approve
-
Diff: 512 lines (+213/-44)9 files modifiedsrc/editor/ui_menus/main_menu_save_map.cc (+39/-10)
src/editor/ui_menus/main_menu_save_map_make_directory.cc (+34/-5)
src/editor/ui_menus/main_menu_save_map_make_directory.h (+3/-0)
src/logic/game.cc (+7/-1)
src/logic/map.cc (+13/-9)
src/network/gameclient.cc (+25/-6)
src/ui_fsmenu/loadgame.cc (+2/-1)
src/wui/load_or_save_game.cc (+83/-11)
src/wui/load_or_save_game.h (+7/-1)
Related bugs
Related blueprints
Branch information
Recent revisions
- 8904. By artydent
-
in map save menu:
- when making a directory failed only because a file/dir with that name already existed, then the make directory dialogue is reopened immediately (focussed on the edit box and with the same name in it)
- make directory dialogue can now be canceled by pressing Escape - 8900. By artydent
-
In Load/Save menu for games/replays:
- All deletion errors are caught, player gets a message.
- When deleting multiplayer replays, also the corresponding syncstream file is deleted.
- After deleting replays, the table now respects the Show Filenames setting.In Save menu for maps:
- Errors when trying to create a directory are now caught, player gets a message.
- Directory creation now doesn't allow names with map extensions, because the game would just trying to interpret them as maps and not show as directories. A tooltip is shown.
- Directory creation can now also be triggered by pressing Enter in the name edit box.Other file errors are caught and logged:
- syncstream deletion in SyncWrapper destructor
- in Map::get_correct_ loader
- file deletion/renaming in GameClient::handle_ packet - 8898. By artydent
-
- some filesystem errorchecking added
- more specific filesystem exceptions thrown - 8896. By artydent
-
Whenever a map is fully loaded (editor/
game/replay) the map is immediately saved to a temp file and the map's filesystem is reassigned to that temp file in a special directory. So when map/save files are handled anywhere, there won't be any filesystem conflicts with or even accidentally deletion of the map filesystem (which would lead to corrupt save files later). Temp files are automatically deleted when not needed anymore.
Upon application start, any found temp files that are older than a week are considered accidental leftovers (e.g. from crashes) and deleted.
- 8895. By Wideland's Bunnybot <email address hidden>
-
Merged lp:~widelands-dev/widelands/frisian-buildings:
Improved graphics for the frisian sentinel
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:widelands