adelikat
2fc3fb53e5
lua - fix client library being null on null emulator
2020-05-16 10:04:11 -05:00
adelikat
d4c8615e95
remove unused usings and other redundancies
2020-04-23 20:33:18 -05:00
adelikat
70633419ac
Refactor TasMovie and add interface ( #1940 )
...
* create ITasMovie interface, still lots of todos
* interface for TasMovie.ChangeLog
* rename method
* interface more TasMovie things
* file rename
* interface more ITasMovie things
* make Bk2Movie and TasMovie internal, rely on interfaces for behavior and MovieService for instantiation
* MovieService cleanup
* cleanup TasBranch handling and simplify ITasMovie api
* more branch logic cleanup and ITasMovie simplificaiton
* more cleanup of branch handling
* more ITasMovie simplification
* nitpick cleanup
* Use IMovie.GetInputLogEntry instead of GetLogEntries
* more ITasMovie cleanup
* move come ITasMovie properties to TasBranchCollection
* TasMovie cleanup
* simplify ITasMovie more
* cleanup
2020-04-19 13:38:45 -05:00
adelikat
c0fde42a0c
don't expose Bk2Controller, clients need to depend on an interface and rely on the Movie (well, MovieSession currently) to generate an IMovieController instance, since different implementations of IMovie need to be able to create their own controller implementations
2020-04-14 21:35:44 -05:00
adelikat
cdfeda8b71
rename IMovieController methods and classes to better describe what they are
2020-04-14 20:10:50 -05:00
adelikat
aa80c3a0d6
majorly refactor Bk2Controller more
2020-04-14 19:33:49 -05:00
adelikat
13e58cbac5
refactor IMovieController
2020-04-14 19:05:17 -05:00
YoshiRulz
e514dfd117
Move/rename Lua library classes
2020-04-13 19:42:14 +10:00
YoshiRulz
e226ff102b
Replace dynamic type with Object in API
...
Using the dynamic type here is no better than object because the values are
primitive types -- more likely to be cast/typechecked than used as a receiver
param for a method call.
2020-04-13 17:05:38 +10:00
adelikat
e0df266cb7
remove remaining globals in LuaFunctionList
2020-04-12 14:17:16 -05:00
YoshiRulz
1ee131ed78
Merge ApiHawk project into Client.Common and EmuHawk
2020-04-12 17:40:42 +10:00
adelikat
0a1a2dbe7d
when closing the lua console - clear registered functions
2020-04-10 11:12:57 -05:00
adelikat
ed571cddef
just delete client.transformX/Y, if anyone yells, direct them at me
2020-04-01 17:13:04 -05:00
adelikat
f369291606
this is the correct lua convention going forword, no snake case
2020-04-01 11:49:20 -05:00
YoshiRulz
6571f70283
Rename new Lua function by convention, fix ClientApi.TransformPoint
...
I doubt this ever worked. The Lua one wasn't delegated, it directly accessed
GlobalWin, so it didn't have this bug.
2020-04-01 13:00:49 +10:00
YoshiRulz
7797689c53
Add LuaDeprecatedMethodAttribute and apply to client.transformPointX/Y
2020-04-01 09:49:27 +10:00
YoshiRulz
0437de604b
Revert transformPoint* changes, add transformPoint, delegate all three
2020-04-01 09:36:26 +10:00
zeromus
377e4498d7
straighten out lua APIs for coordinate transforming
2020-03-31 19:15:52 -04:00
YoshiRulz
0ba7a5a7df
Rename axis-related types, members, and locals
...
I left a few methods where they had an equivalent *Bool*() for buttons, and also
left some in TAStudio that get serialised.
2020-03-31 17:29:55 +10:00
adelikat
eea7b2136f
remove unused dependencies in a few lua libraries
2020-03-28 09:31:28 -05:00
adelikat
6a25679ae3
remove trailing comma in various places in Emuhawk probject
2020-03-21 16:04:08 -05:00
YoshiRulz
9e514dcebd
Unify Get/SetSoundOn across Lua and C# APIs ( resolves #1817 )
2020-03-13 08:46:45 +10:00
adelikat
9584ff1f53
use switch expressions in some various places in EmuHawk, and some other simplifications
2020-03-04 20:18:43 -06:00
adelikat
46d05de51f
nothing to see here
2020-02-28 12:52:48 -06:00
adelikat
f5e9e8eecd
cleanup VersionInfo.cs a bit
2020-02-26 15:33:50 -06:00
YoshiRulz
9829fd699b
Unify helpers for generating file extension lists (for open/save)
2020-02-20 21:59:20 +00:00
YoshiRulz
f71cc532a8
Misc. cleanups
2020-02-21 07:05:13 +10: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
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
64ea9afee5
cleanups
2019-12-31 10:17:55 -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
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