From 1868d53ecbd75761e233398280c8da0c6c72b63d Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 3 Dec 2022 17:00:00 -0600 Subject: [PATCH] [ox/std] Remove write size output from mGBA logging function --- deps/ox/src/ox/std/tracehook.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/deps/ox/src/ox/std/tracehook.cpp b/deps/ox/src/ox/std/tracehook.cpp index 96c9b52ec..fb710314e 100644 --- a/deps/ox/src/ox/std/tracehook.cpp +++ b/deps/ox/src/ox/std/tracehook.cpp @@ -17,9 +17,9 @@ #define REG_DEBUG_STRING (reinterpret_cast(0x4FFF600)) namespace ox::hw { -static std::size_t (*infoLog)(ox::CRStringView) = [](ox::CRStringView) -> std::size_t { return 0; }; -static std::size_t (*debugLog)(ox::CRStringView) = [](ox::CRStringView) -> std::size_t { return 0; }; -static std::size_t (*errorLog)(ox::CRStringView) = [](ox::CRStringView) -> std::size_t { return 0; }; +static void (*infoLog)(ox::CRStringView) = [](ox::CRStringView) {}; +static void (*debugLog)(ox::CRStringView) = [](ox::CRStringView) {}; +static void (*errorLog)(ox::CRStringView) = [](ox::CRStringView) {}; } namespace mgba { @@ -38,7 +38,6 @@ static auto mkLogger() { const auto sz = ox::min(0x100, str.bytes()); ox_strncpy(REG_DEBUG_STRING, str.data(), sz); REG_DEBUG_FLAGS = chan | 0x100; - return sz; }; }