mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Platform changes
This commit is contained in:
parent
303b45f438
commit
093eaa64c0
1 changed files with 7 additions and 1 deletions
|
@ -417,7 +417,7 @@ void Beefy::BFFatalError(const StringImpl& message, const StringImpl& file, int
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
OutputDebugStrF("FATAL ERROR: %s\n", message.c_str());
|
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
|
#else
|
||||||
String error = StrFormat("%s in %s:%d", message.c_str(), file.c_str(), line);
|
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);
|
::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:
|
case ERROR_FILE_NOT_FOUND:
|
||||||
OUTRESULT(BfpFileResult_NotFound);
|
OUTRESULT(BfpFileResult_NotFound);
|
||||||
break;
|
break;
|
||||||
|
case ERROR_DIR_NOT_EMPTY:
|
||||||
|
OUTRESULT(BfpFileResult_NotEmpty);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
OUTRESULT(BfpFileResult_UnknownError);
|
OUTRESULT(BfpFileResult_UnknownError);
|
||||||
break;
|
break;
|
||||||
|
@ -2554,6 +2557,9 @@ BFP_EXPORT void BFP_CALLTYPE BfpDirectory_GetSysDirectory(BfpSysDirectoryKind sy
|
||||||
case BfpSysDirectoryKind_Desktop:
|
case BfpSysDirectoryKind_Desktop:
|
||||||
_GetKnownFolder(FOLDERID_Desktop);
|
_GetKnownFolder(FOLDERID_Desktop);
|
||||||
return;
|
return;
|
||||||
|
case BfpSysDirectoryKind_Desktop_Common:
|
||||||
|
_GetKnownFolder(FOLDERID_PublicDesktop);
|
||||||
|
return;
|
||||||
case BfpSysDirectoryKind_AppData_Local:
|
case BfpSysDirectoryKind_AppData_Local:
|
||||||
_GetKnownFolder(FOLDERID_LocalAppData);
|
_GetKnownFolder(FOLDERID_LocalAppData);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue