jak1: save pc settings when they are changed, not just when the menu is closed (#1622)

jak1: save pc settings when they are changed, not when the menu is closed
This commit is contained in:
Tyler Wilding 2022-07-08 19:23:44 -04:00 committed by GitHub
parent 28a2ecdfd3
commit c0efde2763
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -54,10 +54,10 @@ tasks:
- sh: test -f {{.GOALC_BIN_RELEASE_DIR}}/goalc{{.EXE_FILE_EXTENSION}}
msg: "Couldn't locate compiler executable in '{{.GOALC_BIN_RELEASE_DIR}}/goalc'"
cmds:
- "{{.GOALC_BIN_RELEASE_DIR}}/goalc"
- "{{.GOALC_BIN_RELEASE_DIR}}/goalc --game {{.GAME}}"
repl-lt:
cmds:
- "{{.GOALC_BIN_RELEASE_DIR}}/goalc --auto-lt"
- "{{.GOALC_BIN_RELEASE_DIR}}/goalc --auto-lt --game {{.GAME}}"
format:
desc: "Format code"
cmds:

View file

@ -1071,6 +1071,7 @@
(sound-play "cursor-options")
)
)
(commit-to-file *pc-settings*)
;; other behaviors are hardcoded elsewhere because screw you.
)
((= (-> options (-> obj option-index) option-type) (game-option-type resolution))
@ -1084,6 +1085,7 @@
(cpad-clear! 0 triangle)
(sound-play "cursor-options")
(set! (-> obj next-display-state) (progress-screen invalid))
(commit-to-file *pc-settings*)
)
((= (-> options (-> obj option-index) option-type) (game-option-type aspect-new))
;; aspect ratio button.
@ -1115,6 +1117,7 @@
(cpad-clear! 0 square)
(cpad-clear! 0 triangle)
(sound-play "cursor-options")
(commit-to-file *pc-settings*)
(set! (-> obj next-display-state) (progress-screen invalid))
)
((!= (-> options (-> obj option-index) option-type) (game-option-type yes-no))
@ -1283,6 +1286,7 @@
(set-video-mode (-> *setting-control* default video-mode))
)
)
(commit-to-file *pc-settings*)
)
)
)