Types
Types
Functions
unpack-comp-huf(dst: pointer, src: pointer, arg2: uint, dict: huf-dictionary-node) => nonesource
Unpack data compressed with huffman encoding.
unpack-comp-rle(out: pointer, in: pointer) => nonesource
Unpack run-length-encoded data. Has sections of repeated values, then normally copied.
Types
file-info: basicsource
Fields
type: type
file-type: symbol
file-name: basic
major-version: uint32
minor-version: uint32
maya-file-name: basic
tool-debug: basic
mdb-file-name: basic
Functions
file-info-correct-version?(info: file-info, kind: file-kind, version-override: int) => symbolsource
Check if the version and kind in the info is valid. The version-override can specify a
non-default version, or set to 0 for the default version
file-stream-read-string(stream: file-stream, str: string) => stringsource
Fill a string with data from a file stream.
Note: this function does not work.
make-file-name(kind: file-kind, name: string, art-group-version: int, arg3: symbol) => stringsource
Get a file name to open a file with the given kind and name.
The art-group-version argument can be used to override the version
of the art-group. Set it to 0 or less to use the default version
Similar to MakeFileName in C.
Note: file type enum is different between C and GOAL.
File versions should match those in versions.h.
Uses a single file-temp-string buffer, shared with make-vfile-name.
arg3 is unused.
make-vfile-name(kind: file-kind, name: string) => stringsource
Make virtual? file name. This makes a name that the kernel knows how to
handle in a specific way. This function is not used.
Variables
*file-temp-string*: stringsource
ART_GROUP_FILE_VERSION: unknownsource
LEVEL_BT_FILE_VERSION: unknownsource
LEVEL_VS_FILE_VERSION: unknownsource
SCE_SEEK_CUR: unknownsource
SCE_SEEK_END: unknownsource
SCE_SEEK_SET: unknownsource
TPAGE_FILE_VERSION: unknownsource
TX_FILE_VERSION: unknownsource
Types
load-chunk-msg: structuresource
Fields
rsvd: uint16
result: load-msg-result
address: pointer
section: uint32
maxlen: uint32
id: uint32
basename: uint8
load-dgo-msg: structuresource
Fields
rsvd: uint16
result: load-msg-result
b1: pointer
b2: pointer
bt: pointer
name: uint128
name-chars: uint8
address: uint32
Functions
destroy-mem(arg0: pointer, arg1: pointer) => nonesource
Overwrite memory from arg0 to arg1
dgo-load-begin(name: string, buffer1: pointer, buffer2: pointer, buffer-top: pointer) => load-dgo-msgsource
Send a DGO load RPC!
dgo-load-cancel() => nonesource
Send a command to the IOP to cancel loading a DGO.
NOTE: this might stall for a long time (multiple frames)
if you call it while an object is currently being loaded.
I believe this is only good to call if you do it after
dgo-load-get-next and before dgo-load-continue
dgo-load-continue(buffer-top: pointer) => intsource
Send a command to to the IOP to continue loading a DGO
dgo-load-get-next(last-object: pointer) => pointersource
Check if the currently loading object is done.
Will set the last-object flag depending on if there is more.
Returns #f if it hasn't loaded yet and the address otherwise
dgo-load-link(obj-file: dgo-header, heap: kheap, print-login: symbol, last-object: symbol) => symbolsource
Begin linking an object from a DGO.
The obj-file argument should be the thing returned from dgo-load-get-next
find-temp-buffer(size: int) => pointersource
A terrible function to find some temporary space in the DMA system.
It is unused, thankfully
str-ambient-play(name: string) => nonesource
Queue a command to do something
str-ambient-stop(name: string) => nonesource
str-load(name: string, chunk-id: int, address: pointer, len: int) => symbolsource
Begin a streaming load if possible!
We must be able to grab the lock, and no streaming load in progress.
Return if we actually start the load.
str-load-cancel() => nonesource
Cancel a str load. This doesn't actually tell the OVERLORD to stop, it just frees the lock.
str-load-status(length-out: pointer) => symbolsource
Check the status of the str load.
The 'busy status indicates it is still going
The 'error status indicates the load failed.
The 'complete status means the load is finished, and length-out contains the loaded length.
str-play-async(name: string, id: sound-id) => nonesource
Queue a play cmd to do... something?
Locks the queue, doesn't check other locks
str-play-kick() => nonesource
Call str RPC if we aren't busy