done with saving updated keybindings, both saving to application's RAM memory and to disk

This commit is contained in:
2025-02-21 20:31:26 +00:00
parent edb9b300c3
commit 1bab4d89d7
2 changed files with 32 additions and 2 deletions

View File

@@ -287,8 +287,15 @@ struct
end
fun saveKeys game =
let val () = InputState.setControls (#userKeys game)
in ()
let
val newKeys = #userKeys game
val () = InputState.setControls newKeys
val io = TextIO.openOut "controls.config"
val () = TextIO.output (io, CoreKey.userKeysToString newKeys)
val () = TextIO.closeOut io
in
()
end
fun runEffects game =