mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 08:25:35 +00:00
GUI: Use PauseToken in Debugger
This commit is contained in:
parent
c15f268e9b
commit
c5bdd7a1f2
@ -147,11 +147,11 @@ void Debugger::debugPrintColumns(const Common::StringArray &list) {
|
||||
}
|
||||
|
||||
void Debugger::preEnter() {
|
||||
g_engine->pauseEngine(true);
|
||||
_debugPauseToken = g_engine->pauseEngine();
|
||||
}
|
||||
|
||||
void Debugger::postEnter() {
|
||||
g_engine->pauseEngine(false);
|
||||
_debugPauseToken.clear();
|
||||
}
|
||||
|
||||
void Debugger::attach(const char *entry) {
|
||||
|
@ -31,6 +31,8 @@
|
||||
#include "common/str.h"
|
||||
#include "common/str-array.h"
|
||||
|
||||
#include "engine.h"
|
||||
|
||||
namespace GUI {
|
||||
|
||||
#ifndef USE_TEXT_CONSOLE_FOR_DEBUGGER
|
||||
@ -172,6 +174,9 @@ private:
|
||||
*/
|
||||
bool _firstTime;
|
||||
|
||||
protected:
|
||||
PauseToken _debugPauseToken;
|
||||
|
||||
#ifndef USE_TEXT_CONSOLE_FOR_DEBUGGER
|
||||
GUI::ConsoleDialog *_debuggerDialog;
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user