plat_getcwd() now uses ~/Library/86Box on Mac, fixed #4838.

This commit is contained in:
OBattler
2024-09-19 09:45:32 +02:00
parent 61ac77affe
commit 2abfaf923b

View File

@@ -227,7 +227,12 @@ plat_getcwd(char *bufp, int max)
{
#ifdef __APPLE__
/* Working directory for .app bundles is undefined. */
#ifdef USE_EXE_PATH
strncpy(bufp, exe_path, max);
#else
CharPointer(bufp, max) = QDir::homePath().toUtf8();
path_append_fiename(bufp, bufp, "Library/86Box");
#endif
#else
CharPointer(bufp, max) = QDir::currentPath().toUtf8();
#endif