From 6152332e3655c663bd3c72ea246bf4590e7e3a4c Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 11 Dec 2014 19:18:25 +0000 Subject: [PATCH] Demote error to warning when failing to open a logfile * This means you don't hit a debugbreak and fire an exception in profile if you load an image file (which tries to load as a logfile first, and fails). --- renderdoc/serialise/serialiser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderdoc/serialise/serialiser.cpp b/renderdoc/serialise/serialiser.cpp index e0651835a..3241d5456 100644 --- a/renderdoc/serialise/serialiser.cpp +++ b/renderdoc/serialise/serialiser.cpp @@ -184,7 +184,7 @@ Serialiser::Serialiser(size_t length, const byte *memoryBuf, bool fileheader) char magicFile[5] = { 0 }; memcpy(magicRef, &MAGIC_HEADER, sizeof(uint32_t)); memcpy(magicFile, &header->magic, sizeof(uint32_t)); - RDCERR("Invalid in-memory buffer. Expected magic %s, got %s", magicRef, magicFile); + RDCWARN("Invalid in-memory buffer. Expected magic %s, got %s", magicRef, magicFile); m_ErrorCode = eSerError_Corrupt; m_HasError = true;