mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 15:19:42 -06:00
RegisterView: Convert #define into a static constant in CRegTable
This commit is contained in:
@ -5,6 +5,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
|
#include <cstddef>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <wx/grid.h>
|
#include <wx/grid.h>
|
||||||
|
|
||||||
@ -26,8 +27,6 @@
|
|||||||
// Interrupt Mask (PI)
|
// Interrupt Mask (PI)
|
||||||
// Interrupt Cause(PI)
|
// Interrupt Cause(PI)
|
||||||
|
|
||||||
#define NUM_SPECIALS 14
|
|
||||||
|
|
||||||
class CRegTable : public wxGridTableBase
|
class CRegTable : public wxGridTableBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -52,6 +51,8 @@ public:
|
|||||||
void UpdateCachedRegs();
|
void UpdateCachedRegs();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
static constexpr size_t NUM_SPECIALS = 14;
|
||||||
|
|
||||||
u32 m_CachedRegs[32];
|
u32 m_CachedRegs[32];
|
||||||
u32 m_CachedSpecialRegs[NUM_SPECIALS];
|
u32 m_CachedSpecialRegs[NUM_SPECIALS];
|
||||||
u64 m_CachedFRegs[32][2];
|
u64 m_CachedFRegs[32][2];
|
||||||
|
Reference in New Issue
Block a user