YoshiRulz
56bba49c3b
Long-promised ApiHawk refactor
...
In the C# API, methods have been renamed, changed to properties, or made to
return interfaces instead of classes. Some parameters have different defaults.
Very little of the implementation has changed.
Lua API hasn't changed at all, but Comm/Input/SaveState libs are now in
Client.Common (and Comm now delegates to IComm).
2020-02-02 19:38:31 +10:00
adelikat
763d5870f2
move some lua console settings from config to console with ConfigPersist
2020-01-25 11:21:38 -06:00
adelikat
ef13754f79
consistent variable naming in config.cs
2020-01-25 10:57:39 -06:00
YoshiRulz
b1e02fbdce
Enable SA1106 and fix noncompliance
...
"Code should not contain empty statements"
i.e. don't put a semicolon there
2020-01-25 18:06:34 +10:00
adelikat
3414cc1d33
Merge branch 'release'
2020-01-18 16:19:03 -06:00
adelikat
f9435fb17f
Lua - tastudio.applyinputchanges() - always refresh tastudio - fixes #1799
2020-01-18 14:53:12 -06:00
adelikat
1519110691
Always refresh the APIHawk library instances instead of checking for null, fixes #1791
2020-01-18 13:22:19 -06:00
YoshiRulz
0f1fa1531f
Use ranges in ApiHawk and Lua
2020-01-13 06:57:24 +10:00
YoshiRulz
7062ba5b6a
Clarify "Autoload" text (from #971 )
2020-01-13 01:54:15 +10:00
YoshiRulz
c38fb09d3c
Fix typos in strings and comments (from #971 )
2020-01-13 00:22:01 +10:00
adelikat
57610488fe
use globals a bit less
2020-01-03 13:59:39 -06:00
YoshiRulz
060255471b
Improve exception docs in BizHawk.Client.EmuHawk
2020-01-02 21:51:37 +10:00
adelikat
7de9309be1
Lua - pass in MainForm to the EmuHawkLuaLibrary class
2019-12-31 16:46:05 -06:00
adelikat
098cac3f60
a few misc cleanups
2019-12-31 11:44:50 -06:00
adelikat
64ea9afee5
cleanups
2019-12-31 10:17:55 -06:00
adelikat
897bc0572e
pass in dependencies to LuaAutocompleteInstaller
2019-12-22 13:32:18 -06:00
adelikat
5f3ed8a766
pass dependency into LuaRegisteredFucntionsList
2019-12-22 13:32:18 -06:00
adelikat
2403f38bcc
pass in LuaImp to LuaWinform, now the global usage is in the lua library, but baby steps
2019-12-22 13:32:18 -06:00
adelikat
1aa318d7e1
use ToolFormBase properties instead of globals
2019-12-22 10:57:06 -06:00
adelikat
75fee8c4af
pass in docs dependency to LuaFunctionsForm
2019-12-22 10:57:06 -06:00
adelikat
eb6a2c3315
remove usages of Global to get to lua console, from lua console
2019-12-22 10:57:06 -06:00
adelikat
1e41dbf20d
LuaRegisteredFunctionsList - override Clear() so that needed clear logic can't be mistakenly not called. Fixes #1763
2019-12-21 17:16:16 -06:00
YoshiRulz
0fcb6cbaa7
ApiHawk refactoring and cleanup
...
MemApi.ReadByteRange now returns the requested number of bytes and not 1 extra,
MemApi.ReadByteRange now warns only once per call for addrs outside range,
MemApi.ReadByteRange now warns for negative addrs (once per call; previous
implementation passed negative addresses to PeekByte), MemApi.WriteByteRange now
warns only once per call for addrs outside range, MemApi.WriteByteRange now
warns for negative addrs (once per call; previous implementation passed negative
addresses to PokeByte)
2019-12-17 02:39:04 +10:00
YoshiRulz
0b43b35427
Migrate GuiLuaLibrary to ApiHawk delegation
...
Changed param clear of IGui.DrawNew from bool? to bool (default value remains
true), made IGui and GuiLuaLibrary inherit IDisposable, added
GetDefaultTextBackground to IGui, applied fix from 6b3071d8a
to
GuiApi.DrawString, replaced background box drawn by Lua API
gui.drawString/gui.drawText with what I think is a shadow (now matches
GuiApi.DrawString)
2019-12-16 16:54:06 +10:00
adelikat
ad8f321ea1
Add event.availableScopes(), fix LogWithSeparator, cleanup
2019-12-15 12:25:49 -06:00
YoshiRulz
05801dc2c5
Reduce LINQ usage in Lua subsystem
2019-12-16 04:08:22 +10:00
adelikat
b6df55bbf0
fix double new line in lua console.log()
2019-12-15 10:18:58 -06:00
adelikat
5d03062c4c
remove redundant console checks in console logging methods
2019-12-15 10:06:31 -06:00
adelikat
d2f21f84e3
another extension method for lua table creation
2019-12-15 09:46:39 -06:00
adelikat
7ebfd42229
Simplify some lua table creation with an extension method
2019-12-15 09:22:10 -06:00
adelikat
d955c468db
refactor LuaHelper into an extension method class, and some nitpick cleanups
2019-12-15 09:05:33 -06:00
YoshiRulz
e6cb74d314
Partially migrate EmuHawkLuaLibrary to ApiHawk delegation
2019-12-15 04:40:01 +10:00
YoshiRulz
f8dc18c1bd
Migrate SavestateLuaLibrary to ApiHawk delegation
...
includes backwards-compatible API change
2019-12-15 04:39:16 +10:00
YoshiRulz
cc8dffa769
Migrate InputLuaLibrary to ApiHawk delegation
2019-12-15 03:59:21 +10:00
YoshiRulz
104c17e77c
Prepare for EmuHawk-tied libraries to delegate to ApiHawk
...
Made ApiContainer inherit from APISubsetContainer, added
DelegatingLuaLibraryEmu, and reworked init logic in EmuLuaLibrary
2019-12-15 03:52:48 +10:00
YoshiRulz
7f07949816
Migrate serialised images to separate files, removing duplicates
2019-12-07 05:24:24 +10:00
adelikat
53c12ec9d9
Lua console - add newline on message to the console, better handling of attempting to load a script that already exists and has syntax errors
2019-12-03 20:42:44 -06:00
adelikat
56bacf3032
Lua Console - update dialog on Stop All Scripts
2019-12-03 20:19:37 -06:00
feos
a5c3a4aee0
reorder lua console log context menus
2019-12-02 18:36:04 +03:00
adelikat
7b23c5aee8
some cleanup in some lua files
2019-11-30 11:28:56 -06:00
adelikat
2d65d2b66a
Remove unused Lua/SyncTextBox
2019-11-30 10:12:33 -06:00
adelikat
99ca256087
Lua console - change Refresh toolbar icon tooltip from "Reload script" to "Refresh" to match the menu item (they do the same action but with different names)
2019-11-29 15:47:21 -06:00
adelikat
18bdaf2d99
Lua console - enable multi-select on open script dialog
2019-11-29 15:42:52 -06:00
adelikat
978277bd06
Lua console - When turning on lua scripts, first clear registered functions for that scripts (they would still exist if the script exited on its own), Don't close the registered functions dialog when a script is toggled and no registered functions are left
2019-11-29 15:32:12 -06:00
adelikat
49b8219f45
lua console - enable multiselect
2019-11-29 15:12:55 -06:00
adelikat
d757b8e64f
Refactor a lot of lua code to use a LuaFile object instead of a Lua object, and unify some luafile manipulation logic into methods
2019-11-29 15:02:40 -06:00
adelikat
679f691b46
Lua console - add Clear all registered function menu item to the log window context menu item too
2019-11-29 13:45:18 -06:00
adelikat
24cbf5e274
lua - a bit more cleanup
2019-11-29 13:14:30 -06:00
adelikat
de2da910c2
Lua - simplify some logic
2019-11-29 12:47:50 -06:00
adelikat
263a72f57d
Lua console - remove bad user option (defaulted to true even) that clears all registered functions on toggle, toggle already clears all registered functions registered to the script. If there is some edge case there, we need to fix it, not clear registered funcitons that don't even belong to the given script
2019-11-29 09:58:07 -06:00