sm64coopdx/autogen/lua_definitions
Agent X 4b84a87c6f
Mod storage, network_discord_id_from_local_index and other small changes (#200)
* Mod storage & network_discord_id_from_local_index

Introducing mod storage, a key/value system for saving things like high scores or settings or anything like that to AppData\Roaming\sm64ex-coop\sav\mod-name.sav (Windows example)
You can currently save only strings meaning if you want to save a number you'd need to do
mod_storage_save("score", tostring(score))
and then
score = tonumber(mod_storage_load("score"))
To handle types like that.
network_discord_id_from_local_index() returns the discord ID of a player by local index.
Some misc changes I made were removing the unsed ini.h include in save_file.c and making the autogen converters output LF line endings instead of CRLF on windows.

* Prevent getting id if using direct connect

* Update djui_panel_player.c

Why does this bother me?

Co-authored-by: djoslin0 <djoslin0@users.noreply.github.com>
2022-09-26 19:28:26 -07:00
..
constants.lua Expose level_trigger_warp and related constants (#197) 2022-09-19 19:51:27 -07:00
functions.lua Mod storage, network_discord_id_from_local_index and other small changes (#200) 2022-09-26 19:28:26 -07:00
manual.lua Fix issues Extended Moveset mod (+ extras) (#146) 2022-08-07 15:25:00 -07:00
structs.lua Color type and palette/color functions (#199) 2022-09-26 19:11:51 -07:00