Post subject: Using BizHawk and Lua with C++
Joined: 1/21/2016
Posts: 3
Hey everyone, I would like to use Lua functions available for the BizHawk emulator ( to read and write from the Main memory domain, for example). But also i need more powerfull language like C++ to make complex calculation with input data from the game. I read a lot of materials about calling C++ function from Lua and I can do this without Bizhawk / Lua Functions. But I have no idea how run Bizhawk Lua function from Visual Studio project or GCC (it does not matter). Can anyone help me?
creaothceann
He/Him
Editor
Joined: 4/7/2005
Posts: 1874
Location: Germany
Sounds like it'd be easier to write your program directly in the emulator source.
Joined: 1/21/2016
Posts: 3
creaothceann wrote:
Sounds like it'd be easier to write your program directly in the emulator source.
Sorry, i m not so clever as i want :) Could you tell what does it mean "in the emulator source"?
creaothceann
He/Him
Editor
Joined: 4/7/2005
Posts: 1874
Location: Germany
Editor, Emulator Coder
Joined: 8/7/2008
Posts: 1156
for visual studio: 1. open VS 2. set startup project to emuhawk 3. run it for 'more complex calculations' 1. study our new 'external tool interface' or 1. consult the web for how to make a lua library dll. it wont be any different for bizhawk than for any other lua, with the possible exception of calling convention/msvc runtime choice youll need to use to be compatible with our homemade lua dll