27 Commits
Author SHA1 Message Date
SourMesen ad0a1b9849 Lua: Misc. fixes & improvements (#250)
-Fixed getAccessCounters documentation (swapped param order)
-Fixed file watcher not being disabled properly when closing the script window, causing the script to run if changed on the disk, even if the script window is closed
-Prevent file watcher from triggering from writes done by the script window itself (which caused the script to be reloaded 2 or 3 times in a row)
-Fixed UI freezes when using emu.log() on a large table
-Fixed crash when 100k character limit (in the last 500 lines) for script log was reached (out of bounds read/write)
-Added "fps" value to "getState"
-Slightly improved getAccessCounters/getCdlData performance
-Added a new drawPixels API to improve performance when a script needs to draw a lot of individual pixels
2026-08-10 22:42:34 +09:00
SourMesen 8fc682325c Debugger: Lua - Added getPressedKeys API (#236)
Also:
-Improved emu.log() to support tables/array and numeric values, instead of only strings.
-Fixed duplicate save state key name for GB
-Fixed TrimRight logic not working properly when the string had a single non-space character followed by spaces (e.g TrimRight("A ") returned "A ")
2026-07-28 19:54:00 +09:00
SourMesen e391fd8f9a Code: Add auto-formatting rules for C++ (clang-format) and enforce in CI via "clang-format" and "dotnet format" (#78)
* Code: Add auto-formatting rules for C++ projects (clang-format) and enforce code style via "clang-format" and "dotnet format"

* fix ui format warnings
2026-04-30 06:03:55 -07:00
SourMesen 8e4dd329ac Debugger: Lua - Added new APIs: getCpuState, setCpuState, getMasterClock, getCpuCycleCount (#58)
getCpuState/setCpuState allow the same functionality as getState/setState, but limited to only the CPU's state, making them much faster (some performance optimizations to the serialization & Lua code were also done)
getMasterClock/getCpuCycleCount are very fast alternatives to getState when all the script needs is a cycle count.
2026-04-26 18:00:08 -07:00
Sour 355ca16074 Debugger: Lua - Added getCdlData API 2024-12-01 15:27:46 +09:00
Sour 13acb3fe42 Added GBA support 2024-03-30 11:42:31 +09:00
Sour 9a05559eb9 Debugger: Added --testRunner support 2022-12-28 10:44:54 +09:00
Sour c3dd78b5ab Debugger: Implemented step back for all main CPUs 2022-09-11 14:50:40 -04:00
Sour 7108bdde36 Refactoring - Moved some leftover files out of the root folder 2022-09-08 21:48:49 -04:00
Sour 152abf690b Rename stdafx.h to pch.h 2022-09-08 21:29:52 -04:00
Sour 1a152ecb9f Debugger: Lua - Code completion (WIP) 2022-08-08 23:40:41 -04:00
Sour b805547bec Debugger: Lua - addCheat/clearCheats 2022-08-04 19:56:10 -04:00
Sour 4fc5b2051e Debugger: Lua - Implemented step, reset 2022-08-04 19:10:30 -04:00
Sour 46bb3d4733 Debugger: Lua - createSavestate/loadSavestate 2022-08-04 18:31:39 -04:00
Sour 9b8ea91194 Debugger: Lua - Implement getPixel 2022-08-03 23:13:29 -04:00
Sour 570bea7d9d Debugger: Lua - Added getMemorySize api 2022-08-03 20:53:04 -04:00
Sour 1bf1d8f84f Debugger: Lua - Allow getAccessCounters to return counters or last access stamps 2022-08-03 20:37:08 -04:00
Sour 991052f8bc Debugger: Lua - getDrawSurfaceSize api, added relative pos to getMouseState 2022-08-03 19:35:18 -04:00
Sour 240e045f99 Debugger: Lua - Added selectDrawSurface API (+ Linux compilation fixes) 2022-08-02 23:25:41 -04:00
Sour 0e36b496b0 Debugger: Lua - Added measureString, added support for text wrapping in drawString 2022-08-01 20:48:06 -04:00
Sour 2b5cac0055 Debugger: Lua - getPrgRomOffset -> convertAddress 2022-07-31 23:26:26 -04:00
Sour 8d7f12efb9 Debugger: Lua - Performance fixes, naming fixes/changes 2022-07-31 19:41:57 -04:00
Sour 6163158637 Debugger: Lua - Implemented getState + setState 2022-07-31 15:00:53 -04:00
Sour d4feda5ed5 Debugger: Lua - Added getScreenSize api 2022-07-30 20:46:16 -04:00
Sour c6e527cded Debugger: Lua - getScreenBuffer/setScreenBuffer, getInput/setInput implementations + other fixes/refactoring 2022-07-30 15:39:07 -04:00
Sour 0b228f5951 Refactoring: Added Snes prefix to files/classes 2022-01-22 11:55:17 -05:00
Sour 2a3a955dc3 Reorganize files (debugger + netplay) 2021-04-09 20:01:50 -04:00