Fix macOS rom directory (#1823)

* Fix macOS rom directory

* Fix typo
This commit is contained in:
Cacodemon345
2021-11-18 02:09:40 +06:00
committed by GitHub
parent b14e04b926
commit f6741b172e

View File

@@ -27,6 +27,9 @@
#include <string.h>
#include <time.h>
#include <wchar.h>
#ifndef _WIN32
#include <pwd.h>
#endif
#ifdef __APPLE__
#include <string.h>
#include <dispatch/dispatch.h>
@@ -584,7 +587,7 @@ usage:
if (vmrp && (path2[0] == '\0')) {
#ifdef __APPLE__
strcpy(rom_path, "~/Library/Application Support/86Box/roms");
sprintf("%s/Library/Application Support/86Box/roms", getenv("HOME") ? getenv("HOME") : getpwuid(getuid())->pw_dir);
#else
strcpy(path2, usr_path);
plat_path_slash(path2);