Changelog:
r44513 | compyx | 2023-09-13 23:28:35 +0000 (Wed, 13 Sep 2023) | 2 lines
commit++
------------------------------------------------------------------------
r44512 | compyx | 2023-09-13 23:24:57 +0000 (Wed, 13 Sep 2023) | 2 lines
Fix comparison always being false
------------------------------------------------------------------------
r44511 | compyx | 2023-09-13 16:47:21 +0000 (Wed, 13 Sep 2023) | 4 lines
Hotkeys: log full path of default hotkeys file being parsed
Also plug some memory leaks.
------------------------------------------------------------------------
r44510 | compyx | 2023-09-13 12:30:25 +0000 (Wed, 13 Sep 2023) | 2 lines
Fix -Wshorten-64-to-32 warning
------------------------------------------------------------------------
r44509 | compyx | 2023-09-13 12:21:29 +0000 (Wed, 13 Sep 2023) | 25 lines
Merge branch compyx/hotkeys-conditionals into trunk
* Further generalize the hotkeys system and its files with support for
conditionals: allow mapping hotkeys based on UI, OS and machine.
All gtk3, sdl2 and MacOS-specific .vhk files are gone, only 11 .vhk files
remain vs 47 before this commit. The hotkeys files now reside in a `hotkeys`
directory in the VICE data directory (e.g. `/usr/share/vice/hotkeys/`.
* Clearly define priority of hotkeys source: `-hotkeyfile` command line option
(and thus the "HotkeyFile" resource) has the highest priority, followed by
a custom hotkeys file "$UI-hotkeys-$MACHINE.vhk" in the user's VICE
configuration directory. In the absense of both, or when the `-default`
command line option is used, the hotkeys provided by VICE are used.
* Simplify UI and specify the source of the currently used hotkeys (Gtk3):
- The current source of the hotkeys is shown: path and a short description.
- (Re)load simply reloads the last loaded hotkeys.
- Any reference to "exporting" hotkeys is changed to "saving".
- Saving hotkeys (using "Save") without specifying a path results in hotkeys
being written to the user's VICE configuration directory as
"$UI-hotkeys-$MACHINE.vhk": no saving of settings is required, the hotkeys
are loaded from the user's VICE configuration directory on subsequent
emulator runs.
Note: make sure to run `make install` to install the new hotkeys files in their
proper location and delete any old .vhk files in `~/.config/vice/`.
------------------------------------------------------------------------