mirror of
https://github.com/open-goal/jak-project
synced 2026-08-20 22:35:07 -04:00
b5d21be9c5
* temp * temp * before cleaning up * cleanup merge * fix warnings * merge fix * clang format
50 lines
1.0 KiB
Common Lisp
50 lines
1.0 KiB
Common Lisp
;;-*-Lisp-*-
|
|
(in-package goal)
|
|
|
|
;; name: cam-start.gc
|
|
;; name in dgo: cam-start
|
|
;; dgos: ENGINE, GAME
|
|
|
|
;; DECOMP BEGINS
|
|
|
|
(defun cam-stop ()
|
|
(kill-by-name "camera-master" *active-pool*)
|
|
(kill-by-name "camera-slave" *active-pool*)
|
|
(kill-by-name "camera-combiner" *active-pool*)
|
|
(set! *camera* #f)
|
|
(set! *camera-combiner* #f)
|
|
#f
|
|
)
|
|
|
|
(defun cam-start ((arg0 symbol))
|
|
(cam-stop)
|
|
(set! *camera-combiner*
|
|
(the-as camera-combiner
|
|
(ppointer->process
|
|
(process-spawn camera-combiner :init cam-combiner-init :from *camera-dead-pool* :to *camera-pool*)
|
|
)
|
|
)
|
|
)
|
|
(set! *camera*
|
|
(the-as camera-master
|
|
(ppointer->process
|
|
(process-spawn camera-master :init cam-master-init :from *camera-master-dead-pool* :to *camera-pool*)
|
|
)
|
|
)
|
|
)
|
|
(if arg0
|
|
(reset-cameras)
|
|
)
|
|
0
|
|
(none)
|
|
)
|
|
|
|
;; removed because it doesn't work yet.
|
|
(format #t "skipping cam-start~%")
|
|
(format 0 "skipping cam-start~%")
|
|
; (cam-start #f)
|
|
|
|
|
|
|
|
|