mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Core: Fix an assertion that mistakenly uses a fmt format string
Unfortunately, adding a DEBUG_ASSERT_MSG_FMT isn't actually possible right now because of compiler bugs: https://github.com/dolphin-emu/dolphin/pull/9284 We could require a newer version of GCC (10) but that would require updating GCC on the build machines. For what it's worth, older versions of GCC (8, 9) are broken in many ways: adding constexpr to some Matrix functions causes GCC 8 to generate bugged code that causes the Wii IR pointer to disappear, which means that the generated builds are already unusable (see https://dolp.in/i12324). Additionally, we've already had to add workarounds for those versions in the format macros to fix compilation bugs. This time, it looks like workarounds won't cut it; even applying the workaround described in https://github.com/fmtlib/fmt/pull/1580 does not help.
This commit is contained in:
parent
a9845e0a3d
commit
c0f7f91507
@ -611,7 +611,7 @@ void WiimoteDevice::ReceiveConfigurationReq(u8 ident, u8* data, u32 size)
|
||||
break;
|
||||
|
||||
default:
|
||||
DEBUG_ASSERT_MSG(IOS_WIIMOTE, 0, "Unknown Option: {:#04x}", options->type);
|
||||
DEBUG_ASSERT_MSG(IOS_WIIMOTE, 0, "Unknown Option: 0x%02x", options->type);
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user