mirror of
https://github.com/open-goal/jak-project
synced 2026-09-02 18:12:50 -04:00
[decomp] get started on game info (#674)
* temp * menu text * wip * recognize handle to process * more
This commit is contained in:
@@ -404,7 +404,7 @@
|
||||
)
|
||||
|
||||
|
||||
(defmacro get-process-from-handle (handle)
|
||||
(defmacro handle->process (handle)
|
||||
;; the actual implementation is more clever than this.
|
||||
;; Checks PID.
|
||||
`(if (-> ,handle process)
|
||||
@@ -433,7 +433,7 @@
|
||||
;; a 0 in the process field, so we check it manually here.
|
||||
(if (nonzero? (-> obj u64))
|
||||
(format #t "#<handle :process ~A :pid ~D>"
|
||||
(get-process-from-handle obj)
|
||||
(handle->process obj)
|
||||
(-> obj pid)
|
||||
)
|
||||
(format #t "#<handle :process 0 :pid 0>")
|
||||
|
||||
Reference in New Issue
Block a user