mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-05-10 19:01:46 +00:00
Fix compilation warnings
This commit is contained in:
parent
ff29d848e2
commit
cc9348c71c
3 changed files with 2 additions and 16 deletions
|
|
@ -17,15 +17,12 @@ gNetworkPlayers = {}
|
||||||
--- @type Mod[]
|
--- @type Mod[]
|
||||||
--- Array of all mods loaded, starting from 0
|
--- Array of all mods loaded, starting from 0
|
||||||
--- - All mods are loaded in the same order for every player
|
--- - All mods are loaded in the same order for every player
|
||||||
--- - Index 0 is the first mod in the list (The top of the mod list)
|
--- - Index 0 is the first mod in the list (the top of the mod list)
|
||||||
gActiveMods = {}
|
gActiveMods = {}
|
||||||
|
|
||||||
--- @type Character[]
|
--- @type Character[]
|
||||||
gCharacters = {}
|
gCharacters = {}
|
||||||
|
|
||||||
--- @type PlayerPalette[]
|
|
||||||
gPalettePresets = {}
|
|
||||||
|
|
||||||
--- @type GlobalTextures
|
--- @type GlobalTextures
|
||||||
gTextures = {}
|
gTextures = {}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ struct ConsoleQueuedMessage {
|
||||||
|
|
||||||
struct ConsoleQueuedMessage* sConsoleQueuedMessages = NULL;
|
struct ConsoleQueuedMessage* sConsoleQueuedMessages = NULL;
|
||||||
|
|
||||||
static void djui_console_message_queue(char* message) {
|
static void djui_console_message_queue(const char* message) {
|
||||||
struct ConsoleQueuedMessage* queued = malloc(sizeof(struct ConsoleQueuedMessage));
|
struct ConsoleQueuedMessage* queued = malloc(sizeof(struct ConsoleQueuedMessage));
|
||||||
queued->message = strdup(message);
|
queued->message = strdup(message);
|
||||||
queued->next = NULL;
|
queued->next = NULL;
|
||||||
|
|
|
||||||
|
|
@ -603,17 +603,6 @@ void smlua_cobject_init_globals(void) {
|
||||||
lua_setglobal(L, "gCharacters");
|
lua_setglobal(L, "gCharacters");
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
|
||||||
lua_newtable(L);
|
|
||||||
int t = lua_gettop(gLuaState);
|
|
||||||
for (s32 i = 0; i < PALETTE_PRESET_MAX; i++) {
|
|
||||||
lua_pushinteger(L, i);
|
|
||||||
smlua_push_object(L, LOT_PLAYERPALETTE, &gPalettePresets[i]);
|
|
||||||
lua_settable(L, t);
|
|
||||||
}
|
|
||||||
lua_setglobal(L, "gPalettePresets");
|
|
||||||
}
|
|
||||||
|
|
||||||
#define EXPOSE_GLOBAL(lot, ptr) \
|
#define EXPOSE_GLOBAL(lot, ptr) \
|
||||||
{ \
|
{ \
|
||||||
smlua_push_object(L, lot, &ptr); \
|
smlua_push_object(L, lot, &ptr); \
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue