[ox/std] Remove write size output from mGBA logging function

This commit is contained in:
Gary Talent 2022-12-03 17:00:00 -06:00
parent abaa970396
commit 1868d53ecb

View File

@ -17,9 +17,9 @@
#define REG_DEBUG_STRING (reinterpret_cast<char*>(0x4FFF600)) #define REG_DEBUG_STRING (reinterpret_cast<char*>(0x4FFF600))
namespace ox::hw { namespace ox::hw {
static std::size_t (*infoLog)(ox::CRStringView) = [](ox::CRStringView) -> std::size_t { return 0; }; static void (*infoLog)(ox::CRStringView) = [](ox::CRStringView) {};
static std::size_t (*debugLog)(ox::CRStringView) = [](ox::CRStringView) -> std::size_t { return 0; }; static void (*debugLog)(ox::CRStringView) = [](ox::CRStringView) {};
static std::size_t (*errorLog)(ox::CRStringView) = [](ox::CRStringView) -> std::size_t { return 0; }; static void (*errorLog)(ox::CRStringView) = [](ox::CRStringView) {};
} }
namespace mgba { namespace mgba {
@ -38,7 +38,6 @@ static auto mkLogger() {
const auto sz = ox::min<std::size_t>(0x100, str.bytes()); const auto sz = ox::min<std::size_t>(0x100, str.bytes());
ox_strncpy(REG_DEBUG_STRING, str.data(), sz); ox_strncpy(REG_DEBUG_STRING, str.data(), sz);
REG_DEBUG_FLAGS = chan | 0x100; REG_DEBUG_FLAGS = chan | 0x100;
return sz;
}; };
} }