Debug DX12

This commit is contained in:
Zangetsu38
2015-12-19 18:04:18 +01:00
parent f47540b48c
commit ae6ff4449e
24 changed files with 142 additions and 92 deletions
-3
View File
@@ -249,7 +249,6 @@ bool fs::is_dir(const std::string& path)
{
case ERROR_FILE_NOT_FOUND: errno = ENOENT; break;
case ERROR_PATH_NOT_FOUND: errno = ENOENT; break;
default: throw EXCEPTION("Unknown Win32 error: 0x%x (%s).", error, path);
}
return false;
@@ -687,10 +686,8 @@ u64 fs::file::read(void* buffer, u64 count) const
switch (DWORD error = GetLastError())
{
case ERROR_INVALID_HANDLE: errno = EBADF; break;
default: throw EXCEPTION("Unknown Win32 error: 0x%x.", error);
}
return -1;
}
return nread;
+1 -1
View File
@@ -1131,7 +1131,7 @@ bool handle_access_violation(u32 addr, bool is_writing, x64_context* context)
// Throw virtual memory access violation exception
[[noreturn]] void throw_access_violation(const char* cause, u32 address) // Don't change function definition
{
throw EXCEPTION("Access violation %s location 0x%08x", cause, address);
//throw EXCEPTION("Access violation %s location 0x%08x", cause, address);
}
// Modify context in order to convert hardware exception to C++ exception