Reported by @Feldfeld.
Hotkeys currently cannot be 'empty'. There is special handling for 'unused', but those don't appear in the hotkey setup window.
The root cause is that ConfigDB wasn't set up to expect empty values, but I think it's fair to accept those.
Adjust hotkey files accordingly.
Details
- Reviewers
- None
- Commits
- rP24618: Allow hotkeys/config settings to be empty.
Test empty hotkeys.
Diff Detail
- Repository
- rP 0 A.D. Public Repository
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Build is green
builderr-debug-macos.txt /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../../../binaries/system/libengine_dbg.a(precompiled.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../../../binaries/system/libgraphics_dbg.a(precompiled.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../../../binaries/system/libgui_dbg.a(precompiled.o) has no symbols ld: warning: text-based stub file /System/Library/Frameworks//CoreAudio.framework/CoreAudio.tbd and library file /System/Library/Frameworks//CoreAudio.framework/CoreAudio are out of sync. Falling back to library file for linking. ld: warning: text-based stub file /System/Library/Frameworks//AudioToolbox.framework/AudioToolbox.tbd and library file /System/Library/Frameworks//AudioToolbox.framework/AudioToolbox are out of sync. Falling back to library file f
See https://jenkins.wildfiregames.com/job/macos-differential/2726/display/redirect for more details.
Build has FAILED
builderr-release-gcc7.txt g++: internal compiler error: Segmentation fault signal terminated program cc1plus Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-8/README.Bugs> for instructions. make[1]: *** [engine.make:273: obj/engine_Release/CConsole.o] Error 4 make: *** [Makefile:119: engine] Error 2
Link to build: https://jenkins.wildfiregames.com/job/docker-differential/4389/display/redirect
See console output for more information: https://jenkins.wildfiregames.com/job/docker-differential/4389/display/redirectconsole
source/ps/ConfigDB.cpp | ||
---|---|---|
399 ↗ | (On Diff #15068) | This change is only for KeyMap hotkeys right? Or can it break other stuff, like for instance vsync? |
source/ps/ConfigDB.cpp | ||
---|---|---|
399 ↗ | (On Diff #15068) | How is vsync supposed to work? This affects all config options. |
source/ps/ConfigDB.cpp | ||
---|---|---|
399 ↗ | (On Diff #15068) | I mean how does it affect things relying on numeric values? |
source/ps/ConfigDB.cpp | ||
---|---|---|
399 ↗ | (On Diff #15068) | Well the only thing it does is allow empty values, so I guess it could? But I don't think we really have any at the moment. |
Build is green
builderr-debug-macos.txt /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../../../binaries/system/libengine_dbg.a(precompiled.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../../../binaries/system/libgraphics_dbg.a(precompiled.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../../../binaries/system/libgui_dbg.a(precompiled.o) has no symbols ld: warning: text-based stub file /System/Library/Frameworks//CoreAudio.framework/CoreAudio.tbd and library file /System/Library/Frameworks//CoreAudio.framework/CoreAudio are out of sync. Falling back to library file for linking. ld: warning: text-based stub file /System/Library/Frameworks//AudioToolbox.framework/AudioToolbox.tbd and library file /System/Library/Frameworks//AudioToolbox.framework/AudioToolbox are out of sync. Falling back to library file f
See https://jenkins.wildfiregames.com/job/macos-differential/2797/display/redirect for more details.
source/ps/ConfigDB.cpp | ||
---|---|---|
102–104 ↗ | (On Diff #15181) | mh, yeah, good point. |
447–450 ↗ | (On Diff #15181) | Not sure what you mean, this is writing "" ? |
source/ps/Hotkey.cpp | ||
52 ↗ | (On Diff #15181) | So they appear in the hotkey editor. There is no 'central' list of hotkeys, and doing it via the config doesn't seem much better. |
source/ps/ConfigDB.cpp | ||
---|---|---|
447–450 ↗ | (On Diff #15181) | I think it's convenient and unlikely to be much worse than a straight concatenation here (which is harder to write) |
Build is green
builderr-debug-macos.txt /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../../../binaries/system/libengine_dbg.a(precompiled.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../../../binaries/system/libgraphics_dbg.a(precompiled.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../../../binaries/system/libgui_dbg.a(precompiled.o) has no symbols ld: warning: text-based stub file /System/Library/Frameworks//CoreAudio.framework/CoreAudio.tbd and library file /System/Library/Frameworks//CoreAudio.framework/CoreAudio are out of sync. Falling back to library file for linking. ld: warning: text-based stub file /System/Library/Frameworks//AudioToolbox.framework/AudioToolbox.tbd and library file /System/Library/Frameworks//AudioToolbox.framework/AudioToolbox are out of sync. Falling back to library file f
See https://jenkins.wildfiregames.com/job/macos-differential/2822/display/redirect for more details.