mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-02 21:21:16 +00:00

File paths are recorded into the game preferences up to a (currently hardcoded) limit of 6 and opening or saving maps adds or bumps existing entries to the top. We may allow users to change the MRU limit in Advanced Preferences in a later commit. Adds two translatable strings. In order to fit file paths in the menu without filling up the whole screen sideways, we use only the file names for now. Because identical file names could prove to be an actual issue later, I intend to look into ellipsizing paths correctly in a later step. (Note that I'm piggybacking on the crummy submenu support we already had in the themable UI so that this can be safely backported to 1.12. It's decidedly not optimal usability-wise, but it'll have to do for now.)