ref: 1920a6c4526109740094a7f552742258928056b8
parent: 5779ad7a5dd18be86b6e02df3eae51942c95cef4
author: Jacob Moody <[email protected]>
date: Sun Feb 5 20:52:01 EST 2023
fix dropped files
--- a/Engine/src/display.c
+++ b/Engine/src/display.c
@@ -1138,7 +1138,7 @@
SDL_CHECK_SUCCESS( SDL_SetPaletteColors(surface->format->palette, fmt_swap, 0, 256) );
}
-void VBE_presentPalette()
+void VBE_presentPalette(void)
{
// tanguyf: updating the palette is not immediate with a buffered surface, screen needs updating as well.
// Call this function if nextpage() is not called. E.g. static intro logo.
--- a/Engine/src/display.h
+++ b/Engine/src/display.h
@@ -63,7 +63,7 @@
void getvalidvesamodes(void);
void VBE_getPalette(int32_t start, int32_t num, uint8_t *dapal);
void VBE_setPalette(uint8_t *palettebuffer);
-void VBE_presentPalette();
+void VBE_presentPalette(void);
void setvmode(int mode);
--- a/Game/src/console.c
+++ b/Game/src/console.c
@@ -29,8 +29,8 @@
// Private member functions
void CONSOLE_InsertUsedCommand(const char * szUsedCommand);
-void CONSOLE_ClearUsedCommandList();
-void CONSOLE_RecalculateDirtyBuffer();
+void CONSOLE_ClearUsedCommandList(void);
+void CONSOLE_RecalculateDirtyBuffer(void);
// console argument tracker
int argc;
--- a/Game/src/cvar_defs.c
+++ b/Game/src/cvar_defs.c
@@ -19,7 +19,7 @@
// Bind our Cvars at startup. You can still add bindings after this call, but
// it is recommanded that you bind your default CVars here.
-void CVARDEFS_Init()
+void CVARDEFS_Init(void)
{
g_CV_console_text_color = 0; // Set default value
REGCONVAR("SetConsoleColor", " - Change console color.",g_CV_console_text_color, CVARDEFS_DefaultFunction);
@@ -62,7 +62,7 @@
}
// I any of the Cvars need to render.. to it here.
-void CVARDEFS_Render()
+void CVARDEFS_Render(void)
{
if(g_CV_DebugJoystick)
{
--- a/Game/src/cvar_defs.h
+++ b/Game/src/cvar_defs.h
@@ -3,8 +3,8 @@
#include <inttypes.h>
-void CVARDEFS_Init();
-void CVARDEFS_Render();
+void CVARDEFS_Init(void);
+void CVARDEFS_Render(void);
//
// Function declarations
//
@@ -36,4 +36,4 @@
int g_CV_CubicInterpolation;
-#endif
\ No newline at end of file
+#endif
--- a/Game/src/cvars.h
+++ b/Game/src/cvars.h
@@ -18,8 +18,8 @@
void CVAR_RegisterCvar(const char * varname, const char * varhelp, void* variable, function_t function);
-int CVAR_GetNumCvarBindings();
+int CVAR_GetNumCvarBindings(void);
cvar_binding* CVAR_GetCvarBinding(int nBinding);
-void CVAR_Render();
+void CVAR_Render(void);
-#endif
\ No newline at end of file
+#endif
--- a/Game/src/mkfile
+++ b/Game/src/mkfile
@@ -3,10 +3,16 @@
CFLAGS=-Fpw -I/sys/include/npe -I/sys/include/npe/SDL2 -I ../../Engine/src -D__plan9__ -D__${objtype}__
TARG=games/duke3d
+LIB=\
+ ../../Engine/src/libbuild.a \
+
+
OFILES=\
actors.$O \
animlib.$O \
+ cvars.$O \
config.$O \
+ console.$O \
control.$O \
game.$O \
gamedef.$O \