mirror of
https://github.com/Dark98/threeSD.git
synced 2026-07-03 00:38:58 +00:00
Try fix log path for macos
This commit is contained in:
@@ -25,6 +25,8 @@ std::uint64_t GetLoggingTime() {
|
|||||||
#ifdef __WIN32
|
#ifdef __WIN32
|
||||||
// _SH_DENYWR allows read-only access for other programs.
|
// _SH_DENYWR allows read-only access for other programs.
|
||||||
static FileUtil::IOFile g_log_file{FileUtil::GetExeDirectory() + DIR_SEP LOG_FILE, "w", _SH_DENYWR};
|
static FileUtil::IOFile g_log_file{FileUtil::GetExeDirectory() + DIR_SEP LOG_FILE, "w", _SH_DENYWR};
|
||||||
|
#elif __APPLE__
|
||||||
|
static FileUtil::IOFile g_log_file{FileUtil::GetBundleDirectory() + "/../" LOG_FILE, "w"};
|
||||||
#else
|
#else
|
||||||
static FileUtil::IOFile g_log_file{ROOT_DIR DIR_SEP LOG_FILE, "w"};
|
static FileUtil::IOFile g_log_file{ROOT_DIR DIR_SEP LOG_FILE, "w"};
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user