Fix mac build

This commit is contained in:
Eidolon 2023-10-15 15:12:42 -05:00
parent 0cd57b7712
commit 89f8c7d15b
2 changed files with 14 additions and 4 deletions

View file

@ -788,12 +788,12 @@ void I_GetConsoleEvents(void){}
static inline void I_StartupConsole(void)
{
#ifdef _DEBUG
consolevent = !M_CheckParm("-noconsole");
consolevent = M_CheckParm("-noconsole") > 0 ? SDL_FALSE : SDL_TRUE;
#else
consolevent = M_CheckParm("-console");
consolevent = M_CheckParm("-console") > 0 ? SDL_TRUE : SDL_FALSE;
#endif
framebuffer = M_CheckParm("-framebuffer");
framebuffer = M_CheckParm("-framebuffer") > 0 ? SDL_TRUE : SDL_FALSE;
if (framebuffer)
consolevent = SDL_FALSE;

View file

@ -1,5 +1,15 @@
#ifndef __MAC_RESOURCES_H__
#define __MAC_RESOURCES_H__
#ifdef __cplusplus
extern "C"
{
#endif
void OSX_GetResourcesPath(char * buffer);
#endif
#ifdef __cplusplus
}
#endif
#endif