From 093eaa64c0a707427b7ce9b8e697983a59e03c9b Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Thu, 12 Sep 2019 09:47:56 -0700 Subject: [PATCH] Platform changes --- BeefySysLib/platform/win/Platform.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/BeefySysLib/platform/win/Platform.cpp b/BeefySysLib/platform/win/Platform.cpp index d76cc8fd..a445bf96 100644 --- a/BeefySysLib/platform/win/Platform.cpp +++ b/BeefySysLib/platform/win/Platform.cpp @@ -417,7 +417,7 @@ void Beefy::BFFatalError(const StringImpl& message, const StringImpl& file, int #ifdef _DEBUG OutputDebugStrF("FATAL ERROR: %s\n", message.c_str()); - _wassert(UTF8Decode(message).c_str(), UTF8Decode(file).c_str(), line); + _wassert(UTF8Decode(message).c_str(), UTF8Decode(file).c_str(), line); #else String error = StrFormat("%s in %s:%d", message.c_str(), file.c_str(), line); ::MessageBoxA(NULL, error.c_str(), "FATAL ERROR", MB_ICONERROR | MB_OK); @@ -2491,6 +2491,9 @@ BFP_EXPORT void BFP_CALLTYPE BfpDirectory_Delete(const char* path, BfpFileResult case ERROR_FILE_NOT_FOUND: OUTRESULT(BfpFileResult_NotFound); break; + case ERROR_DIR_NOT_EMPTY: + OUTRESULT(BfpFileResult_NotEmpty); + break; default: OUTRESULT(BfpFileResult_UnknownError); break; @@ -2554,6 +2557,9 @@ BFP_EXPORT void BFP_CALLTYPE BfpDirectory_GetSysDirectory(BfpSysDirectoryKind sy case BfpSysDirectoryKind_Desktop: _GetKnownFolder(FOLDERID_Desktop); return; + case BfpSysDirectoryKind_Desktop_Common: + _GetKnownFolder(FOLDERID_PublicDesktop); + return; case BfpSysDirectoryKind_AppData_Local: _GetKnownFolder(FOLDERID_LocalAppData); return;