mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-21 07:21:33 +02:00
Fixing a duh
This commit is contained in:
@@ -174,11 +174,12 @@ static const char *executable_folder(void)
|
||||
}
|
||||
/* Ugly unportable code! :( */
|
||||
#ifdef __APPLE__
|
||||
unsigned int length = sizeof(path) - 1;
|
||||
size_t length = sizeof(path) - 1;
|
||||
_NSGetExecutablePath(&path[0], &length);
|
||||
#else
|
||||
#ifdef __linux__
|
||||
assert (readlink("/proc/self/exe", &path[0], sizeof(path) - 1) != -1);
|
||||
size_t __attribute__((unused)) length = readlink("/proc/self/exe", &path[0], sizeof(path) - 1);
|
||||
assert(length != -1);
|
||||
#else
|
||||
#ifdef _WIN32
|
||||
HMODULE hModule = GetModuleHandle(NULL);
|
||||
|
Reference in New Issue
Block a user