Skip to content

Commit

Permalink
Fix compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dpjudas committed Jan 6, 2025
1 parent 4ff49af commit 60d21cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/common/platform/posix/cocoa/i_system.mm
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

#include "i_common.h"
#include "c_cvars.h"
#include "i_interface.h"

#include <fnmatch.h>
#include <sys/sysctl.h>
Expand Down
12 changes: 6 additions & 6 deletions src/common/platform/posix/sdl/i_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ void I_DetectOS()

void I_StartupJoysticks();

void InitCrashReporter()
void InitCrashReporter(int argc, char** argv)
{
#if !defined (__APPLE__)
{
Expand Down Expand Up @@ -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;
Expand All @@ -178,7 +178,7 @@ void InitExePath()

int I_GameMain(int argc, char** argv)
{
InitCrashReporter();
InitCrashReporter(argc, argv);
SetEffectiveUser();
InitLocale();

Expand All @@ -193,7 +193,7 @@ int I_GameMain(int argc, char** argv)
printf("\n");

InitArgs(argc, argv);
InitExePath();
InitExePath(argc, argv);

I_StartupJoysticks();

Expand All @@ -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();
}

0 comments on commit 60d21cb

Please sign in to comment.