Commit Graph

25 Commits

Author SHA1 Message Date
adelikat f8ed9f49eb slight cleanup 2019-12-22 10:57:06 -06:00
adelikat e0cd66613f remove ApiProvider from GlobalWin, and have ToolManager own it instead, keep a copy of IEmulator in ToolManager and reference that instead of Global.Emulator 2019-12-21 18:03:13 -06:00
adelikat f5f22e78d8 Simplify on screen ram watch value positioining, and respect the anchor value setting 2019-12-21 15:36:37 -06:00
adelikat f5929602ff rename MessageOption to MessagePosition 2019-12-21 15:28:16 -06:00
adelikat 6748d32830 Message config - fixes, make Anchor an enum instead of int 2019-12-21 14:50:20 -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 d955c468db refactor LuaHelper into an extension method class, and some nitpick cleanups 2019-12-15 09:05:33 -06:00
YoshiRulz f8dc18c1bd
Migrate SavestateLuaLibrary to ApiHawk delegation
includes backwards-compatible API change
2019-12-15 04:39:16 +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 4e381d944b
Cleanup ApiManager.Register 2019-12-09 20:11:12 +10:00
Brian Armstrong cfd6d7d83b ApiManager should add APIs from Common
Without these, External Tools can't see most of the APIs
2019-12-09 10:01:01 +00:00
adelikat f926142921 cleanup OSDManager 2019-11-26 19:36:04 -06:00
YoshiRulz fab882b7a5 Move most API interfaces and implementations to BizHawk.Client.Common 2019-11-16 17:28:25 +11:00
YoshiRulz 13e4b5396d Rename IMovie to avoid name collision 2019-11-16 17:28:25 +11:00
J.D. Purcell fec63fb66a Spaces -> tabs, fix mixed newlines. 2019-11-03 20:58:36 -05:00
adelikat f967ebc3a7 cleanup Communication.cs 2019-11-02 10:33:26 -05:00
James Groom 90b0574bc3
Remove unnecessary calls to ToList (e.g. in foreach)
squashed PR #1591
2019-10-13 15:50:57 +00:00
Maximilian Peters 80c0fe571b Squash merge #1505 - set socketServer IP/port via Lua (resolves #1495) 2019-05-29 15:06:38 +10:00
YoshiRulz e6374ef477
Use string interpolation 2019-03-19 00:06:37 +10:00
Asnivor 40384b0103 ApiHawk: fixed incorrect case in GUIApi.cs (causing BizHawk not to build on case-intolerant linux) 2019-01-22 16:48:39 +00:00
upthorn 9d853d200d Remove vestigial hard-coded Ecco 2 tool 2019-01-04 13:57:34 -08:00
upthorn bc4330a9d1 External tools no longer crash on loading new ROM 2019-01-03 05:53:26 -08:00
upthorn c76d850687 Working types now allow implicit conversions from longs. 2019-01-03 05:52:31 -08:00
upthorn aba1da071d Completely refactored PluginAPI to extend ApiHawk. Ecco2AssistantPlugin is now an external tool. 2018-12-22 10:40:30 -08:00