sm64coopdx/docs/lua
Cooliokid956 efcfff210d
Miscellaneous additions (#711)
- Fixed script file path shortening for Windows in console errors (what I could at least, the one left unfixed is preprocessed and I can't mess with that)
- Adjusted audio sanity check messages to sound more natural
- 9 new functions added:

## `audio_stream_set_loop_points(audio, start, end)`
Sets an audio stream's loop points in samples, no longer requiring a hacky method to loop streams in mods

## `get_active_mod()`
Returns the mod currently being processed, can be used by mods with APIs to determine what they're being used by and react accordingly

## `get_area_update_counter()`
Returns `gAreaUpdateCounter`, can be used to determine various in-game statistics, as well as if the game is being updated

## Exposed several object pointers
`get_current_object()` to retrieve `gCurrentObject`
`get_dialog_object()` to retrieve `gContinueDialogFunctionObject`
`(get|set)_cutscene_focus()` to retrieve/assign `gCutsceneFocus`
`(get|set)_secondary_camera_focus()` to retrieve/assign `gSecondCameraFocus`
2025-03-24 07:31:06 +10:00
..
examples Add files via upload (#286) 2024-09-01 13:43:08 -04:00
guides Add mod menu text hook and make hook functions return index 2025-03-15 18:04:59 -04:00
constants.md Miscellaneous additions (#711) 2025-03-24 07:31:06 +10:00
functions-2.md Document about **800** functions (53.33%) 2024-12-08 17:55:23 -05:00
functions-3.md More settings to the Camera settings menu (#555) 2025-03-14 13:01:51 +10:00
functions-4.md Expose some cool math functions 2025-03-14 22:25:56 -04:00
functions-5.md Miscellaneous additions (#711) 2025-03-24 07:31:06 +10:00
functions-6.md Miscellaneous additions (#711) 2025-03-24 07:31:06 +10:00
functions.md Miscellaneous additions (#711) 2025-03-24 07:31:06 +10:00
globals.md Final touches for geo hooks (#588) 2024-12-28 08:44:36 -05:00
lua.md Document sound functions 2024-12-16 20:18:28 -05:00
structs.md More settings to the Camera settings menu (#555) 2025-03-14 13:01:51 +10:00