-
Notifications
You must be signed in to change notification settings - Fork 61
Description
I passed parameter -DwxLuaBind_COMPONENTS="core;base" and I get wx.dll. dumpbin declares that wx.dll has 5 dependencies, base, core, aui, html and net.
I'm able to write a Lua script and I get the widgets I want, but issue is when it comes to closing.
In BizHawk emulator, I launch the Lua Console and run the script, when I close the Lua console window, the app gets shut down.
In DesMume emulator, I launch the Lua Console and run the script, when the script ends the app gets shut down.
Same thing happens in mGBA Lua console and i click on Reset.
Bizhawk uses Lua 5.4 and DesMume uses Lua 5.1, issue is present when compiling against WxWidgets 3.2.7. WxWidgets 3.3 master from GitHub gave me compilation errors, I commented out the functions until i successfully compiled against 3.3, but issue is still there, I think issue lies with wxLua.
I'm using C ffi for Lua to import the DLLs since standard Lua doesn't have ffi.
Just having wx = require "wx" in the script is enough to shut app down when script finishes
So questions are as followed
- Has wxLua been coded to forceibly close the host app when internal host Lua console is reset / Closed?
- According to the WxWidgets blog 3.3 stable will be release soon, is wxLua still being updated?
- I haven't tried a static build since everything works, apart from ending, is there any benefits if I use a static build?