mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
DolphinWX: Get rid of some magic numbers in MemoryView and MemoryWindow
This commit is contained in:
@ -9,6 +9,11 @@
|
||||
|
||||
class DebugInterface;
|
||||
|
||||
enum class MemoryDataType
|
||||
{
|
||||
U8, U16, U32
|
||||
};
|
||||
|
||||
class CMemoryView : public wxControl
|
||||
{
|
||||
public:
|
||||
@ -22,8 +27,12 @@ public:
|
||||
curAddress = addr;
|
||||
Refresh();
|
||||
}
|
||||
int dataType; // u8,u16,u32
|
||||
int curAddress; // Will be accessed by parent
|
||||
|
||||
void SetDataType(MemoryDataType data_type)
|
||||
{
|
||||
dataType = data_type;
|
||||
Refresh();
|
||||
}
|
||||
|
||||
private:
|
||||
void OnPaint(wxPaintEvent& event);
|
||||
@ -47,6 +56,8 @@ private:
|
||||
bool selecting;
|
||||
|
||||
int memory;
|
||||
int curAddress;
|
||||
MemoryDataType dataType;
|
||||
|
||||
enum EViewAsType
|
||||
{
|
||||
|
Reference in New Issue
Block a user