Commit Graph

37 Commits

Author SHA1 Message Date
YoshiRulz dd93c232b9
Remove #regions in LuaInterface and Virtu projects
in LuaInterface there was a #region in a #region in a method body...
2020-05-15 17:01:40 +10:00
YoshiRulz 87ec2618a1
Revert "delete all regions"
This reverts commit e566d8e258.
2020-05-15 17:00:49 +10:00
nattthebear e566d8e258 delete all regions 2020-05-14 17:33:40 -04:00
zeromus 5b17e5b958 looks like i never got around to using the 64bit luaperks, so luasockets wasnt built-in as promised ever since we went 64bit. fixes #1077 2018-01-15 17:20:24 -06:00
zeromus a0c84f4669 fix luainterface 2017-07-23 10:00:46 -05:00
zeromus 759a4536a4 fix (maybe) the bad GC bug in luainterface? 2017-07-22 23:41:30 -05:00
zeromus afda5dbb62 set a value in the switchable lua library to indicate whether it's NLua or LuaInterface; effectively undo 8bc067cbbe for LuaInterface 2017-07-15 16:36:18 -05: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 56fbc65a91 move luainterface exceptions to tis own namespace like in nlua 2017-07-14 00:51:28 -05:00
zeromus 2dba613b0c change LuaInterface namespace to NLua. It's a lie, but we need it to make them readily switchable 2017-07-13 23:54:56 -05:00
zeromus 256f4d43e7 Revert "remove LuaInterface. shouldn't need it, if things go well."
This reverts commit 4de4492f7a.

re-adding because we're going to make the lua core selectable
2017-07-13 23:44:11 -05:00
zeromus 4de4492f7a remove LuaInterface. shouldn't need it, if things go well.
At this point we lack the luaperks (luasockets etc.) which we previously had; but maybe other people's libraries will work better.
2017-07-09 23:52:42 -05:00
zeromus 701fcf4853 try installing luasockets, since it seems the prebuilt exception handling interferes with ours (fix confirmed by revo-tpp users) 2017-02-18 14:19:46 -06:00
zeromus 79cdfaba6b add (or fix, not sure which) luaperks-building version of our luainterface, but dont use it just yet--we'll wait for some need. turns out luasockets isnt worth the trouble of embedding due to the dependency on a bunch of other files anyway 2017-02-03 01:21:45 -06:00
zeromus 96416e13d9 fix regressions in lua's support for UTF-8 strings, likely created around the time of the sandboxing. 2016-05-23 14:33:36 -05:00
nattthebear bef6ddef67 Add x64 target to luainterface. Build and add to references 2016-02-28 20:12:39 -05:00
zeromus dfc139376a fix lua dlls on windows xp after changing to vs2015 building 2015-12-20 05:04:23 -06:00
zeromus 4f9061c45e update lua vcxproj to vs2015. rebuild dlls. should hide the floating point precision on n64 problem, but i still suspect theres badness 2015-12-16 16:34:33 -06:00
Connor Olding 23caf74a34 disable CLR on luaglue.cpp
this should work around Lua numbers being casted to floats when the N64
core is loaded.

note that the included lua51.dll has yet to be rebuilt.
2015-12-16 13:39:45 -08:00
zeromus a281a18dfe cleanup lua vcxproj 2015-12-16 15:26:58 -06:00
zeromus e74322b531 gitignore and cleanup 2015-11-02 00:33:17 -06:00
zeromus 3a61c850f3 add luaperks (cd, im, iuplua, luasockets) since our lua is customized and acts flaky with external dlls 2015-11-02 00:27:11 -06:00
zeromus e12c711a0e try to manage lua memory leak prevention in a way thats safer from re-entrancy during finalization thread 2015-03-28 05:53:03 +00:00
zeromus 5aed8f8224 luainterface was leaking memory. as far as i can tell, it was ALWAYS leaking memory. Lets see if this fixes it. 2015-03-01 04:27:51 +00:00
zeromus 8e50487695 build luainterface.dll into the references folder, like other more modern things. 2014-08-14 01:07:26 +00:00
goyuken 3b2e16e87a lua: sensible handling for int => color conversion 2014-08-14 00:58:07 +00:00
adelikat 58b5163715 Lua Interface - support Strongly typing System.Drawing.Color, and strongly type the color parameters of gui.drawEllipse() 2014-06-02 00:43:25 +00:00
gochaism 00a1f8a3ba LuaInterface: fix regression of optional parameter binding. (gui.text, for example) 2014-05-02 01:54:05 +00:00
gochaism acc124ca99 LuaInterface: Disable auto table unpacking for vargs. Lua 5.1 does not have such a feature. print({1, 2, 3}) should pass just an array, not multiple arguments. 2014-04-30 23:54:34 +00:00
gochaism 98df140955 LuaInterface: vargs support. Lua function can use (params object[] args) from now.
This update is ported from [NLua](https://github.com/NLua/NLua), thanks a lot.

Dirty test code <http://pastebin.com/d03N93z8>
2014-04-29 04:42:39 +00:00
zeromus 3a8fe7c464 lua-fix crashes when scripts terminate 2012-07-10 19:40:35 +00:00
zeromus c823d6b46a try fixing lua "buffer overflow" stack corruption crash when GC occurs while calling a cfunction 2012-06-11 22:15:49 +00:00
zeromus 3f6127152f build lua differently so that it has at least a prayer at interoperating with plug-in dlls. at least, it can load them. there may be other problems later due to the dlls generally being compiled against a different CRT (vc8) than our lua and luainterface (vc10). we could fix this if we needed to by compiling the CUSTOMIZED lua in vc8 and referencing it from the vc10 luainterface. 2012-04-05 01:05:08 +00:00
zeromus 46a638ee96 fix bug in lua coroutines which made error propagation get mixed up and possibly result in a bunch of other subtle bugs 2012-03-27 07:25:36 +00:00
zeromus b7eaa1eaf7 luainterface - throw exceptions when lua_resume errors 2012-03-27 03:15:57 +00:00
zeromus e7eb6d8dcd fix input.get 2012-03-24 18:39:55 +00:00
zeromus b64ee06a8c since our luainterface and lua are so hacked up now, we need to check it in so we dont lose it 2012-03-23 19:03:22 +00:00