Debugger: Script Window: Added whilePaused event
This commit is contained in:
parent
c5d65fadd9
commit
c0def0b4cb
4 changed files with 4 additions and 0 deletions
|
@ -1005,6 +1005,7 @@ bool Debugger::SleepUntilResume(BreakSource source, uint32_t breakpointId, Break
|
|||
_pausedForDebugHelper = breakRequested;
|
||||
while((((stepCount == 0 || _breakRequested) && _suspendCount == 0) || _preventResume > 0) && !_stopFlag) {
|
||||
std::this_thread::sleep_for(std::chrono::duration<int, std::milli>(10));
|
||||
if (preventResume == 0) ProcessEvent(EventType::WhilePaused);
|
||||
if(stepCount == 0) {
|
||||
_console->ResetRunTimers();
|
||||
}
|
||||
|
|
|
@ -203,6 +203,7 @@ enum class EventType
|
|||
SpriteZeroHit = 9,
|
||||
ScriptEnded = 10,
|
||||
BusConflict = 11,
|
||||
WhilePaused = 12,
|
||||
EventTypeSize
|
||||
};
|
||||
|
||||
|
|
|
@ -168,6 +168,7 @@ int LuaApi::GetLibrary(lua_State *lua)
|
|||
lua_pushintvalue(stateSaved, EventType::StateSaved);
|
||||
lua_pushintvalue(inputPolled, EventType::InputPolled);
|
||||
lua_pushintvalue(scriptEnded, EventType::ScriptEnded);
|
||||
lua_pushintvalue(whilePaused, EventType::WhilePaused);
|
||||
lua_settable(lua, -3);
|
||||
|
||||
lua_pushliteral(lua, "executeCountType");
|
||||
|
|
|
@ -578,6 +578,7 @@ namespace Mesen.GUI.Debugger
|
|||
new List<string> {"enum","emu.eventType.inputPolled","Triggered when the emulation core polls the state of the input devices for the next frame","","",""},
|
||||
new List<string> {"enum","emu.eventType.spriteZeroHit","Triggered when the PPU sets the sprite zero hit flag","","",""},
|
||||
new List<string> {"enum","emu.eventType.scriptEnded","Triggered when the current Lua script ends (script window closed, execution stopped, etc.)","","",""},
|
||||
new List<string> {"enum","emu.eventType.whilePaused","Triggered repeatedly while execution is paused","","",""},
|
||||
new List<string> {"enum","emu.executeCountType","emu.executeCountType.[value]","","","Values:\ncpuCycles = 0,\nppuCycles = 1,\ncpuInstructions = 2\n\nUsed by execute calls." },
|
||||
new List<string> {"enum","emu.executeCountType.cpuCycles","Count the number of CPU cycles","","",""},
|
||||
new List<string> {"enum","emu.executeCountType.ppuCycles","Count the number of PPU cycles","","",""},
|
||||
|
|
Loading…
Add table
Reference in a new issue