mirror of
https://github.com/open-goal/jak-project
synced 2026-06-16 23:00:49 -04:00
f7bd0752f8
* wip * getting stuff set up so we can actually run test cases * better handle block entry stuff * types2 working on gstring * comments * math ref working * up to first stack stuff * stack fixes * bounding box * math stuff is working * float fixes * temp debug for (method 9 profile-array) * stupid stupid bug * debugging * everything is broken * some amount of type stuff works * bitfield * texture bitfields not working * temp * types * more stuff * type check * temp * float related fixes for light and res problems * revisit broken files, fix bugs * more types * vector debug * bug fixes for decompiler crashes in harder functions * update goal_src
47 lines
1.1 KiB
Common Lisp
47 lines
1.1 KiB
Common Lisp
;;-*-Lisp-*-
|
|
(in-package goal)
|
|
|
|
;; name: memory-usage-h.gc
|
|
;; name in dgo: memory-usage-h
|
|
;; dgos: ENGINE, GAME
|
|
|
|
;; DECOMP BEGINS
|
|
|
|
(declare-file (debug))
|
|
(when *debug-segment*
|
|
(deftype memory-usage-info (structure)
|
|
((name string :offset-assert 0)
|
|
(count int32 :offset-assert 4)
|
|
(used int32 :offset-assert 8)
|
|
(total int32 :offset-assert 12)
|
|
)
|
|
:method-count-assert 9
|
|
:size-assert #x10
|
|
:flag-assert #x900000010
|
|
)
|
|
|
|
(deftype memory-usage-block (basic)
|
|
((work-bsp basic :offset-assert 4)
|
|
(length int32 :offset-assert 8)
|
|
(data memory-usage-info 112 :inline :offset-assert 16)
|
|
)
|
|
:method-count-assert 12
|
|
:size-assert #x710
|
|
:flag-assert #xc00000710
|
|
(:methods
|
|
(memory-usage-block-method-9 () none 9)
|
|
(memory-usage-block-method-10 () none 10)
|
|
(memory-usage-block-method-11 () none 11)
|
|
)
|
|
)
|
|
|
|
|
|
(define *mem-usage* (new 'debug 'memory-usage-block))
|
|
(define *dma-mem-usage* (new 'debug 'memory-usage-block))
|
|
(define *temp-mem-usage* (the-as memory-usage-block #f))
|
|
|
|
)
|
|
|
|
|
|
|