mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 11:26:18 -04:00
Fix minor issues related to the speedrunner mode menu, also stop saving the pc-settings
every frame when sr mode is on (#3413)
Fixes #3209
This commit is contained in:
parent
390a511055
commit
62fa9d80e1
|
@ -492,6 +492,9 @@
|
||||||
(none)))
|
(none)))
|
||||||
|
|
||||||
(defmethod draw-menu ((this speedrun-manager))
|
(defmethod draw-menu ((this speedrun-manager))
|
||||||
|
;; don't allow the menu to open during blackouts, apparently causes bugs
|
||||||
|
(when (>= (-> *game-info* blackout-time) (current-time))
|
||||||
|
(return 0))
|
||||||
;; handle opening and closing the menu
|
;; handle opening and closing the menu
|
||||||
(cond
|
(cond
|
||||||
((!= (-> *pc-settings* speedrunner-mode-custom-bind) 0)
|
((!= (-> *pc-settings* speedrunner-mode-custom-bind) 0)
|
||||||
|
|
|
@ -674,10 +674,13 @@
|
||||||
)
|
)
|
||||||
)))
|
)))
|
||||||
|
|
||||||
(when (or (!= old (-> *pc-settings* cheats))
|
;; when speedrunning...the cheats are manually modified to facilitate the chosen category
|
||||||
|
;; don't persist these and don't spam the pc-settings saving routine every frame.
|
||||||
|
(when (and (not (-> *pc-settings* speedrunner-mode?))
|
||||||
|
(or (!= old (-> *pc-settings* cheats))
|
||||||
(!= old-unlocked (-> *pc-settings* cheats-unlocked))
|
(!= old-unlocked (-> *pc-settings* cheats-unlocked))
|
||||||
(!= old-purchased (-> *pc-settings* cheats-purchased))
|
(!= old-purchased (-> *pc-settings* cheats-purchased))
|
||||||
(!= old-revealed (-> *pc-settings* cheats-revealed)))
|
(!= old-revealed (-> *pc-settings* cheats-revealed))))
|
||||||
;; save pc-settings if we made new progress
|
;; save pc-settings if we made new progress
|
||||||
(pc-settings-save)))
|
(pc-settings-save)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue