diff --git a/Source/Core/Core/HW/AddressSpace.h b/Source/Core/Core/HW/AddressSpace.h index 42724df053..a02989010a 100644 --- a/Source/Core/Core/HW/AddressSpace.h +++ b/Source/Core/Core/HW/AddressSpace.h @@ -6,7 +6,7 @@ #include -#include "Core/Core.h" +#include "Common/CommonTypes.h" namespace AddressSpace { diff --git a/Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp b/Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp index 4284f60bc9..9769a420b4 100644 --- a/Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp @@ -15,6 +15,7 @@ #include #include "Core/Core.h" +#include "Core/HW/AddressSpace.h" #include "Core/PowerPC/BreakPoints.h" #include "Core/PowerPC/PowerPC.h" #include "DolphinQt/Resources.h" diff --git a/Source/Core/DolphinQt/Debugger/MemoryViewWidget.h b/Source/Core/DolphinQt/Debugger/MemoryViewWidget.h index 5537139f37..dcb4409fa7 100644 --- a/Source/Core/DolphinQt/Debugger/MemoryViewWidget.h +++ b/Source/Core/DolphinQt/Debugger/MemoryViewWidget.h @@ -7,7 +7,11 @@ #include #include "Common/CommonTypes.h" -#include "Core/HW/AddressSpace.h" + +namespace AddressSpace +{ +enum class Type; +} class MemoryViewWidget : public QTableWidget { @@ -59,7 +63,7 @@ private: void OnCopyAddress(); void OnCopyHex(); - AddressSpace::Type m_address_space = AddressSpace::Type::Effective; + AddressSpace::Type m_address_space{}; Type m_type = Type::U8; BPType m_bp_type = BPType::ReadWrite; bool m_do_log = true; diff --git a/Source/Core/DolphinQt/Debugger/MemoryWidget.cpp b/Source/Core/DolphinQt/Debugger/MemoryWidget.cpp index 3bfa69b293..63fb4264fc 100644 --- a/Source/Core/DolphinQt/Debugger/MemoryWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/MemoryWidget.cpp @@ -23,6 +23,7 @@ #include "Common/File.h" #include "Common/FileUtil.h" #include "Core/ConfigManager.h" +#include "Core/HW/AddressSpace.h" #include "DolphinQt/Debugger/MemoryViewWidget.h" #include "DolphinQt/QtUtils/ModalMessageBox.h" #include "DolphinQt/Settings.h" diff --git a/Source/Core/DolphinQt/Debugger/MemoryWidget.h b/Source/Core/DolphinQt/Debugger/MemoryWidget.h index 071fbb998e..45f2a80bbf 100644 --- a/Source/Core/DolphinQt/Debugger/MemoryWidget.h +++ b/Source/Core/DolphinQt/Debugger/MemoryWidget.h @@ -9,7 +9,6 @@ #include #include "Common/CommonTypes.h" -#include "Core/HW/AddressSpace.h" class MemoryViewWidget; class QCheckBox;