mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-01-19 20:32:37 +00:00
Qt: fix pausing/resuming game
This commit is contained in:
parent
a43d79a2a3
commit
bda904b364
@ -30,7 +30,8 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||
memoryWindow(0),
|
||||
memoryTexWindow(0),
|
||||
timer(this),
|
||||
displaylistWindow(0)
|
||||
displaylistWindow(0),
|
||||
lastUIState(UISTATE_MENU)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
@ -94,6 +95,11 @@ void MainWindow::Update()
|
||||
__CtrlButtonUp(controllist[i].psp_id);
|
||||
}
|
||||
__CtrlSetAnalog(input_state.pad_lstick_x, input_state.pad_lstick_y);
|
||||
|
||||
if (lastUIState != globalUIState) {
|
||||
lastUIState = globalUIState;
|
||||
UpdateMenus();
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::UpdateMenus()
|
||||
@ -318,19 +324,11 @@ void MainWindow::on_action_FileExit_triggered()
|
||||
void MainWindow::on_action_EmulationRun_triggered()
|
||||
{
|
||||
NativeMessageReceived("run", "");
|
||||
|
||||
if(dialogDisasm)
|
||||
{
|
||||
dialogDisasm->Stop();
|
||||
dialogDisasm->Go();
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::on_action_EmulationPause_triggered()
|
||||
{
|
||||
NativeMessageReceived("pause", "");
|
||||
if(dialogDisasm)
|
||||
dialogDisasm->Stop();
|
||||
}
|
||||
|
||||
void MainWindow::on_action_EmulationReset_triggered()
|
||||
|
@ -155,6 +155,7 @@ private:
|
||||
QTimer timer;
|
||||
CoreState nextState;
|
||||
InputState input_state;
|
||||
GlobalUIState lastUIState;
|
||||
|
||||
Debugger_Disasm *dialogDisasm;
|
||||
Debugger_Memory *memoryWindow;
|
||||
|
Loading…
x
Reference in New Issue
Block a user