Fix compile errors

This commit is contained in:
Magnus Norddahl 2025-01-06 09:55:38 +01:00
commit 46ad7f622c
2 changed files with 7 additions and 6 deletions

View file

@ -33,6 +33,7 @@
#include "i_common.h"
#include "c_cvars.h"
#include "i_interface.h"
#include <fnmatch.h>
#include <sys/sysctl.h>

View file

@ -126,7 +126,7 @@ void I_DetectOS()
void I_StartupJoysticks();
void InitCrashReporter()
void InitCrashReporter(int argc, char** argv)
{
#if !defined (__APPLE__)
{
@ -155,7 +155,7 @@ void InitArgs(int argc, char** argv)
Args = new FArgs(argc, argv);
}
void InitExePath()
void InitExePath(int argc, char** argv)
{
#ifdef PROGDIR
progdir = PROGDIR;
@ -178,7 +178,7 @@ void InitExePath()
int I_GameMain(int argc, char** argv)
{
InitCrashReporter();
InitCrashReporter(argc, argv);
SetEffectiveUser();
InitLocale();
@ -193,7 +193,7 @@ int I_GameMain(int argc, char** argv)
printf("\n");
InitArgs(argc, argv);
InitExePath();
InitExePath(argc, argv);
I_StartupJoysticks();
@ -208,11 +208,11 @@ int I_ToolMain(int argc, char** argv)
{
RunningAsTool = true;
InitCrashReporter();
InitCrashReporter(argc, argv);
SetEffectiveUser();
InitLocale();
InitArgs(argc, argv);
InitExePath();
InitExePath(argc, argv);
return GameMain();
}