mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 00:57:44 -04:00
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:
parent
28a2ecdfd3
commit
c0efde2763
|
@ -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:
|
||||
|
|
|
@ -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*)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue