SPU Local Storage capture

This commit is contained in:
Eladash 2020-10-08 09:14:35 +03:00 committed by Ivan
parent 73f96f48ee
commit 865464f607
5 changed files with 134 additions and 5 deletions

View file

@ -234,7 +234,9 @@ void debugger_frame::keyPressEvent(QKeyEvent* event)
const u32 pc = m_debugger_list->m_pc + i * 4;
if (QApplication::keyboardModifiers() & Qt::ControlModifier)
const auto modifiers = QApplication::keyboardModifiers();
if (modifiers & Qt::ControlModifier)
{
switch (event->key())
{
@ -261,7 +263,21 @@ void debugger_frame::keyPressEvent(QKeyEvent* event)
dlg->show();
return;
}
case Qt::Key_S:
{
if (modifiers & Qt::AltModifier)
{
const auto cpu = this->cpu.lock();
if (!cpu || cpu->id_type() == 1)
{
return;
}
static_cast<spu_thread*>(cpu.get())->capture_local_storage();
}
return;
}
case Qt::Key_F10:
{
DoStep(true);