From 904ab3aea9ad30c950192a25e8284f49a22c2862 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Tue, 30 Jan 2018 21:38:07 -0800 Subject: [PATCH] Fixed DebugWriter. --- src/debug.cpp | 6 ++++-- src/filepath.cpp | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/debug.cpp b/src/debug.cpp index a44fd10..f4ba187 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -155,15 +155,17 @@ namespace bx BX_UNUSED(_err); int32_t total = 0; + const char* data = (const char*)_data; char temp[4096]; while (total != _size) { uint32_t len = bx::uint32_min(sizeof(temp)-1, _size-total); - memCopy(temp, _data, len); + memCopy(temp, data, len); temp[len] = '\0'; - debugOutput(temp); + data += len; total += len; + debugOutput(temp); } return total; diff --git a/src/filepath.cpp b/src/filepath.cpp index f3d6a57..1fb2c48 100644 --- a/src/filepath.cpp +++ b/src/filepath.cpp @@ -118,7 +118,6 @@ namespace bx break; } - BX_FALLTHROUGH; default: