[wesnoth-commits] [wesnoth/wesnoth] b66bdb: Add other versions of Wesnoth to the Load Game dialog

Steve Cotton noreply at github.com
Sun Nov 3 11:19:45 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: b66bdb8a16ec8fbcfffdc14d7a4c4349004f4959
      https://github.com/wesnoth/wesnoth/commit/b66bdb8a16ec8fbcfffdc14d7a4c4349004f4959
  Author: Steve Cotton <steve at octalot.co.uk>
  Date:   2019-11-03 (Sun, 03 Nov 2019)

  Changed paths:
    M changelog.md
    M data/gui/window/game_load.cfg
    M src/filesystem.cpp
    M src/filesystem.hpp
    M src/game_launcher.cpp
    M src/gui/dialogs/game_load.cpp
    M src/gui/dialogs/game_load.hpp
    M src/gui/dialogs/multiplayer/mp_create_game.cpp
    M src/hotkey/hotkey_handler.cpp
    M src/hotkey/hotkey_handler_sp.cpp
    M src/play_controller.cpp
    M src/save_index.cpp
    M src/save_index.hpp
    M src/savegame.cpp
    M src/savegame.hpp
    M src/tests/gui/test_gui2.cpp

  Log Message:
  -----------
  Add other versions of Wesnoth to the Load Game dialog

If a save directory from another version is found, a drop-down list of
directories is added below the filter box in the Load Game dialog.

Refactor save_index_class to allow instances for other directories.

Design idea: all new saves go in to the main save directory. Games can be
loaded from other directories, but those directories are treated as read-only.
When building an index for other directories, the index is kept in memory and
not written to disk - this results in some noticeable lag in the UI when
opening the other versions' directories, but not the usual save dir.





More information about the Commits mailing list