mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2024-12-28 18:46:06 +00:00
platform: restored use of magic_enum
This commit is contained in:
parent
d752aa5357
commit
66b695f5c7
|
@ -26,7 +26,6 @@ enum class InterruptId : u32 {
|
|||
Compute6RelMem = 6u,
|
||||
GfxEop = 7u,
|
||||
GfxFlip = 8u,
|
||||
MaxValue
|
||||
};
|
||||
|
||||
using IrqHandler = std::function<void(InterruptId)>;
|
||||
|
@ -81,7 +80,7 @@ private:
|
|||
std::queue<IrqHandler> one_time_subscribers{};
|
||||
std::mutex m_lock{};
|
||||
};
|
||||
std::array<IrqContext, (int)InterruptId::MaxValue> irq_contexts{};
|
||||
std::array<IrqContext, magic_enum::enum_count<InterruptId>()> irq_contexts{};
|
||||
};
|
||||
|
||||
using IrqC = Common::Singleton<IrqController>;
|
||||
|
|
Loading…
Reference in a new issue