mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-08-21 07:18:33 +00:00
[dynarmic] Add a formatter for Dynarmic::IR::Opcode (#2948)
https://github.com/gentoo/guru/blob/fa6dcae7027e4c4d5b71fadcfa7dc01af8ff2358/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:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user