mirror of
https://github.com/open-goal/jak-project
synced 2026-06-09 12:46:43 -04:00
[decompiler] detect seek! and seekl! macros (#1317)
* detect `seek!` and `seekl!` * fancy struct instead of pair mess * fixes * i think this was wrong? * update refs * update source * More logical branching * even better branching
This commit is contained in:
+2
-4
@@ -329,9 +329,7 @@
|
||||
(defun increment-success-for-hint ((arg0 game-text-id))
|
||||
(let ((gp-0 (find-hint-control-index arg0)))
|
||||
(when (>= gp-0 0)
|
||||
(set! (-> *game-info* hint-control gp-0 num-success)
|
||||
(seekl (-> *game-info* hint-control gp-0 num-success) 127 1)
|
||||
)
|
||||
(seekl! (-> *game-info* hint-control gp-0 num-success) 127 1)
|
||||
0
|
||||
)
|
||||
)
|
||||
@@ -398,7 +396,7 @@
|
||||
)
|
||||
(cond
|
||||
(v1-21
|
||||
(set! (-> gp-1 num-attempts) (seekl (-> gp-1 num-attempts) 127 1))
|
||||
(seekl! (-> gp-1 num-attempts) 127 1)
|
||||
(and (>= (-> gp-1 num-attempts) (-> gp-1 num-attempts-before-playing))
|
||||
(or (= (-> gp-1 num-success-before-killing) -1)
|
||||
(< (-> gp-1 num-success) (-> gp-1 num-success-before-killing))
|
||||
|
||||
Reference in New Issue
Block a user