20 Commits
Author SHA1 Message Date
SourMesen 8ac7e1df7d Lua: Fixed address value in memory callbacks when using memory types other than the default cpu memory type (#265)
Also fixed a few scenarios where the PPU memory write callbacks did not allow the Lua script to change the value about to be written (because the callback was called too late)
2026-08-27 19:00:22 +09:00
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
NovaSquirrel 464122d077 Debugger: Lua - Include numeric keys when printing tables (#81) 2026-05-03 15:28:35 -07:00
SourMesen d9833a92d5 Debugger: Lua - Fixed emulator crash when calling error() in a script with anything other than a string (#64)
Convert the value given by the script to error() to a string instead of assuming it's a string (and crashing)
2026-04-30 06:47:10 -07: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
Sour 045a0e01b9 Debugger: Lua - Fixed emulator crash when callback triggers an error and is allowed to repeat a large number of times 2025-04-24 17:45:16 +09:00
Sour d0c9deb477 Debugger: Lua - Improve error messages when io/os/lua access is turned off in the options 2024-07-19 18:34:42 +09:00
Sour 9258d1453f Debugger: Lua - Add folder that contains the current script to the folders that scripts can require other Lua scripts from 2023-12-18 22:04:47 +09:00
Sour d449f0c641 Debugger: Added cpuType parameter for Lua events 2023-01-24 22:14:24 -05:00
Sour 1cfaaaae98 Debugger: Fixed NEC DSP TODOs 2023-01-24 19:45:08 -05: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 46bb3d4733 Debugger: Lua - createSavestate/loadSavestate 2022-08-04 18:31:39 -04:00
Sour 2eda2cc27e Debugger: Lua - Allow callback to change read/written value, allow callbacks on any memory type (not just cpu memory), allow callbacks for ppu memory 2022-08-02 01:42:14 -04:00
Sour f61f050410 Debugger: Lua - Refactoring/minor performance improvements 2022-07-31 22:57:41 -04:00
Sour 8d7f12efb9 Debugger: Lua - Performance fixes, naming fixes/changes 2022-07-31 19:41:57 -04:00
Sour 40259f51a9 Core: Fixed thread safety issues with APIs that returned strings 2022-05-29 21:52:44 -04:00
Sour e27e511558 File reorganization 2021-04-09 21:45:04 -04:00
Sour 2a3a955dc3 Reorganize files (debugger + netplay) 2021-04-09 20:01:50 -04:00