[dynarmic] Add a formatter for `Dynarmic::IR::Opcode` (#2948)

fa6dcae702/games-emulation/eden/files/eden-0.0.4_rc1-add-a-formatter-for-Dynarmic-IR-Opcode.patch

Co-authored-by: Pavel Sobolev <contact@paveloom.dev>

Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2948
This commit is contained in:
crueter 2025-11-04 08:42:35 +01:00
parent 82a476d458
commit 4bf2e0a7aa
No known key found for this signature in database
GPG Key ID: 425ACD2D4830EBC6
1 changed files with 8 additions and 0 deletions

View File

@ -654,3 +654,11 @@ constexpr bool MayGetNZCVFromOp(const Opcode op) noexcept {
}
} // namespace Dynarmic::IR
template<>
struct fmt::formatter<Dynarmic::IR::Opcode> : fmt::formatter<std::string_view> {
template<typename FormatContext>
auto format(Dynarmic::IR::Opcode op, FormatContext& ctx) const {
return formatter<std::string_view>::format(GetNameOf(op), ctx);
}
};