1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-04 13:42:55 +01:00

small fixes for platform/osx.c

This commit is contained in:
Linus Unnebäck
2015-12-06 18:34:34 +01:00
parent 1d3cefe73d
commit fc849eb097

View File

@@ -21,6 +21,7 @@
#if defined(__APPLE__) && defined(__MACH__)
#include "platform.h"
#include "../util/util.h"
#include <mach-o/dyld.h>
@@ -32,7 +33,7 @@ bool platform_check_steam_overlay_attached() {
void platform_get_exe_path(utf8 *outPath)
{
char exePath[MAX_PATH];
int size = MAX_PATH;
uint32_t size = MAX_PATH;
int result = _NSGetExecutablePath(exePath, &size);
if (result != 0) {
log_fatal("failed to get path");