diff --git a/Source/Core/Core/CheatSearch.cpp b/Source/Core/Core/CheatSearch.cpp index 66882911ba..9d2d288555 100644 --- a/Source/Core/Core/CheatSearch.cpp +++ b/Source/Core/Core/CheatSearch.cpp @@ -478,31 +478,31 @@ Cheats::SearchErrorCode Cheats::CheatSearchSession::RunSearch() } template -size_t Cheats::CheatSearchSession::GetMemoryRangeCount() +size_t Cheats::CheatSearchSession::GetMemoryRangeCount() const { return m_memory_ranges.size(); } template -Cheats::MemoryRange Cheats::CheatSearchSession::GetMemoryRange(size_t index) +Cheats::MemoryRange Cheats::CheatSearchSession::GetMemoryRange(size_t index) const { return m_memory_ranges[index]; } template -PowerPC::RequestedAddressSpace Cheats::CheatSearchSession::GetAddressSpace() +PowerPC::RequestedAddressSpace Cheats::CheatSearchSession::GetAddressSpace() const { return m_address_space; } template -Cheats::DataType Cheats::CheatSearchSession::GetDataType() +Cheats::DataType Cheats::CheatSearchSession::GetDataType() const { return Cheats::GetDataType(Cheats::SearchValue{T(0)}); } template -bool Cheats::CheatSearchSession::GetAligned() +bool Cheats::CheatSearchSession::GetAligned() const { return m_aligned; } diff --git a/Source/Core/Core/CheatSearch.h b/Source/Core/Core/CheatSearch.h index b03a7f8adc..9aefabbe2c 100644 --- a/Source/Core/Core/CheatSearch.h +++ b/Source/Core/Core/CheatSearch.h @@ -140,11 +140,11 @@ public: // Run either a new search or a next search based on the current state of this session. virtual SearchErrorCode RunSearch() = 0; - virtual size_t GetMemoryRangeCount() = 0; - virtual MemoryRange GetMemoryRange(size_t index) = 0; - virtual PowerPC::RequestedAddressSpace GetAddressSpace() = 0; - virtual DataType GetDataType() = 0; - virtual bool GetAligned() = 0; + virtual size_t GetMemoryRangeCount() const = 0; + virtual MemoryRange GetMemoryRange(size_t index) const = 0; + virtual PowerPC::RequestedAddressSpace GetAddressSpace() const = 0; + virtual DataType GetDataType() const = 0; + virtual bool GetAligned() const = 0; virtual bool IsIntegerType() const = 0; virtual bool IsFloatingType() const = 0; @@ -186,11 +186,11 @@ public: void ResetResults() override; SearchErrorCode RunSearch() override; - size_t GetMemoryRangeCount() override; - MemoryRange GetMemoryRange(size_t index) override; - PowerPC::RequestedAddressSpace GetAddressSpace() override; - DataType GetDataType() override; - bool GetAligned() override; + size_t GetMemoryRangeCount() const override; + MemoryRange GetMemoryRange(size_t index) const override; + PowerPC::RequestedAddressSpace GetAddressSpace() const override; + DataType GetDataType() const override; + bool GetAligned() const override; bool IsIntegerType() const override; bool IsFloatingType() const override;