CasualPokePlayer
38f8e3a9b4
Add Void Linux liblua naming method
...
Yes, it's actually named liblua5.4.so.5.4
2025-03-15 01:53:12 -07:00
CasualPokePlayer
05722664e0
Throw Lua errors on lua cothread they were done on (instead of the main cothread)
...
Fixes #4252
2025-03-01 22:29:55 -08:00
Morilli
b10f8969ac
Don't allocate extra buffers in lua [Push|To]String
2024-03-19 12:19:56 +01:00
CasualPokePlayer
33a512235a
Fix NRE for lua cothreads
...
fixes ba24907d9c
2023-11-17 19:46:59 -08:00
CasualPokePlayer
ba24907d9c
Improve NLua lua library loading, using C# function pointers. It now no longer depends on BizHawk.BizInvoke/BizHawk.Common. It might be faster too
...
Add in liblua-* variant for Linux lua library names (resolves #3678 )
Remove some more unused NLua code
Make LuaState internal, we don't need to see it (NLua.Lua API slightly changed to accommodate this, tests could be broken due to this?)
Make various other NLua classes internal, we don't need to see them
Check against lua library loading failing, provide a non-fatal message box if it has failed instead of crashing on some exception.
Remove UnixSearchPaths (unneeded with LD_LIBRARY_PATH being set) and unused IImportResolvers
2023-11-17 19:03:03 -08:00
CasualPokePlayer
cef72bef4b
try to fix crashes under Mono when calling a cached function with the wrong arguments
2023-11-16 09:08:20 -08:00
CasualPokePlayer
582446651f
fix all the analyser warnings in NLua
2023-11-16 03:14:47 -08:00
YoshiRulz
65ffa3fc2e
Blindly update NuGet deps
...
temporarily disabled MA0020
2023-04-16 09:02:40 +10:00
CasualPokePlayer
03aa420bd5
fix last issue in #2951 properly
2023-04-09 23:43:28 -07:00
CasualPokePlayer
b11bb4fc22
fix check for IsParamsArray
...
fixes #3513
2023-01-10 05:53:58 -08:00
CasualPokePlayer
2c75e9bf96
remove this unneeded using of System.Drawing (i don't know how that got here)
2022-12-20 23:32:12 -08:00
CasualPokePlayer
91ce98ef12
better handle lua on linux, be compatible with lua 5.3 (we don't actually use any API exclusive to 5.4 so no real change in this case)
2022-12-20 23:30:33 -08:00
CasualPokePlayer
339915c013
check-in NLua to main repo
...
combine NLua with KeraLua (KeraLua is "gone" now I guess)
make it use the BizInvoker (so now it can properly handle the liblua5.4.so and lua54.dll names differing), also delete the liblua54.so.
minor speedup when creating a new empty table
make lua default to UTF8 internally, so we don't need to manually change the state's encoding
2022-12-17 21:51:10 -08:00
CasualPokePlayer
1fc08e3d95
Use NLua's MethodCache if possible for MethodBase based lua functions (see 0ed3085ec3
)
2022-12-07 19:36:13 -08:00
CasualPokePlayer
b04260bee7
fix unwrapped lua exceptions not being correctly thrown
2022-12-06 14:21:39 -08:00
CasualPokePlayer
bc79664461
fix implicit lua number to .net conversion
...
fix .net exceptions not halting the running script
fix inconsistency with stdout and lua console printing errors, both should end in a newline now
print the inner exception of a lua exception (i.e. the .net extension) if possible
2022-12-06 02:52:57 -08:00
CasualPokePlayer
eb00019c86
fix passing numbers for string args in .net lua functions (old engine had this behavior, granted "bad user" if they relied on this), add appropriate test
...
fix passing sbyte/char as args, add appropriate tests
cleanup the lua auto unlock hack, using a nice ref struct + dispose to handle it
2022-12-05 23:21:23 -08:00
CasualPokePlayer
51f01efdc4
Properly handle errors when running a lua script, using Resume/Yield methods added to the LuaThread class (see f904fa0d53
)
2022-12-02 14:44:05 -08:00
CasualPokePlayer
45fbdb4844
Move to NLua/KeraLua/Lua5.4 ( #3361 )
2022-12-01 00:51:02 -08:00
zeromus
60ebaeaaf5
make nlua/luainterface selectable. see program.cs for details on the sensitive DLL layout and references
2017-07-14 00:57:01 -05:00
zeromus
8b905eb68c
maybe a crazy idea, lets try optimizing the release build configurations
2017-07-11 17:18:07 -05:00
zeromus
91741ca65b
dunno whats up, here's fresh dll builds
2017-07-10 20:33:02 -05:00
zeromus
0f686a0de1
* revert strict string checking behaviour from nlua Revision 10f4d0ce78a2a3cb9b727ac55c8705385f0ded7e (we dont want it, probably)
...
* do a better job porting old commits from bizhawk (should fix memory leaks, optional arguments)
2017-07-10 12:59:06 -05:00
zeromus
3417453b43
use NLua+KopiLua instead of LuaInterface
2017-07-09 23:51:02 -05:00