mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Core: add locked state to watches
This commit is contained in:
@ -62,6 +62,11 @@ void Watches::UpdateWatchName(std::size_t index, std::string name)
|
|||||||
m_watches[index].name = std::move(name);
|
m_watches[index].name = std::move(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Watches::UpdateWatchLockedState(std::size_t index, bool locked)
|
||||||
|
{
|
||||||
|
m_watches[index].locked = locked;
|
||||||
|
}
|
||||||
|
|
||||||
void Watches::EnableWatch(std::size_t index)
|
void Watches::EnableWatch(std::size_t index)
|
||||||
{
|
{
|
||||||
m_watches[index].is_enabled = Watch::State::Enabled;
|
m_watches[index].is_enabled = Watch::State::Enabled;
|
||||||
|
@ -22,6 +22,7 @@ struct Watch
|
|||||||
u32 address;
|
u32 address;
|
||||||
std::string name;
|
std::string name;
|
||||||
State is_enabled;
|
State is_enabled;
|
||||||
|
bool locked = false;
|
||||||
|
|
||||||
Watch(u32 address, std::string name, State is_enabled);
|
Watch(u32 address, std::string name, State is_enabled);
|
||||||
};
|
};
|
||||||
@ -36,6 +37,7 @@ public:
|
|||||||
void UpdateWatch(std::size_t index, u32 address, std::string name);
|
void UpdateWatch(std::size_t index, u32 address, std::string name);
|
||||||
void UpdateWatchAddress(std::size_t index, u32 address);
|
void UpdateWatchAddress(std::size_t index, u32 address);
|
||||||
void UpdateWatchName(std::size_t index, std::string name);
|
void UpdateWatchName(std::size_t index, std::string name);
|
||||||
|
void UpdateWatchLockedState(std::size_t index, bool locked);
|
||||||
void EnableWatch(std::size_t index);
|
void EnableWatch(std::size_t index);
|
||||||
void DisableWatch(std::size_t index);
|
void DisableWatch(std::size_t index);
|
||||||
bool HasEnabledWatch(u32 address) const;
|
bool HasEnabledWatch(u32 address) const;
|
||||||
|
@ -32,6 +32,7 @@ public:
|
|||||||
virtual void UpdateWatch(std::size_t index, u32 address, std::string name) = 0;
|
virtual void UpdateWatch(std::size_t index, u32 address, std::string name) = 0;
|
||||||
virtual void UpdateWatchAddress(std::size_t index, u32 address) = 0;
|
virtual void UpdateWatchAddress(std::size_t index, u32 address) = 0;
|
||||||
virtual void UpdateWatchName(std::size_t index, std::string name) = 0;
|
virtual void UpdateWatchName(std::size_t index, std::string name) = 0;
|
||||||
|
virtual void UpdateWatchLockedState(std::size_t index, bool locked) = 0;
|
||||||
virtual void EnableWatch(std::size_t index) = 0;
|
virtual void EnableWatch(std::size_t index) = 0;
|
||||||
virtual void DisableWatch(std::size_t index) = 0;
|
virtual void DisableWatch(std::size_t index) = 0;
|
||||||
virtual bool HasEnabledWatch(u32 address) const = 0;
|
virtual bool HasEnabledWatch(u32 address) const = 0;
|
||||||
|
@ -112,6 +112,11 @@ void PPCDebugInterface::UpdateWatchName(std::size_t index, std::string name)
|
|||||||
return m_watches.UpdateWatchName(index, std::move(name));
|
return m_watches.UpdateWatchName(index, std::move(name));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void PPCDebugInterface::UpdateWatchLockedState(std::size_t index, bool locked)
|
||||||
|
{
|
||||||
|
return m_watches.UpdateWatchLockedState(index, locked);
|
||||||
|
}
|
||||||
|
|
||||||
void PPCDebugInterface::EnableWatch(std::size_t index)
|
void PPCDebugInterface::EnableWatch(std::size_t index)
|
||||||
{
|
{
|
||||||
m_watches.EnableWatch(index);
|
m_watches.EnableWatch(index);
|
||||||
|
@ -40,6 +40,7 @@ public:
|
|||||||
void UpdateWatch(std::size_t index, u32 address, std::string name) override;
|
void UpdateWatch(std::size_t index, u32 address, std::string name) override;
|
||||||
void UpdateWatchAddress(std::size_t index, u32 address) override;
|
void UpdateWatchAddress(std::size_t index, u32 address) override;
|
||||||
void UpdateWatchName(std::size_t index, std::string name) override;
|
void UpdateWatchName(std::size_t index, std::string name) override;
|
||||||
|
void UpdateWatchLockedState(std::size_t index, bool locked) override;
|
||||||
void EnableWatch(std::size_t index) override;
|
void EnableWatch(std::size_t index) override;
|
||||||
void DisableWatch(std::size_t index) override;
|
void DisableWatch(std::size_t index) override;
|
||||||
bool HasEnabledWatch(u32 address) const override;
|
bool HasEnabledWatch(u32 address) const override;
|
||||||
|
Reference in New Issue
Block a user