[00:00] Ah, but Lua doesn't do ioctl() natively. [00:01] Unless you are COMPLETELY INSANE, anyway: http://netbsd.gw.com/cgi-bin/man-cgi?lua+4+NetBSD-current [00:21] Anyway, a plain read()/write() ought to really do the trick, and it'll be out of band from the console. [00:48] yea, that's how the PCE emulator works [00:49] I was going to have the lua script expose some function that could be called from Lua's C api [01:18] You could definitely do that. [01:18] It gets my Computer Scientist Hackles up, but that's probably OK. [01:19] I can dig in MAME to see what the function is to just evaluate a script. [01:19] Probably easier to handle potential blocking issues that way as well. [01:20] There's lua_engine::execute_function, obviously. [01:21] Though I'm having a bit of trouble seeing how you're expected to pass in variables. [01:22] Unless you're expected to preload them on the stack a la the Lua C API. [01:23] I don't see facilities for that, though, and it looks like it's mostly only used internally to run argumentless callbacks for events. [01:26] Hm. [01:27] *** bwn has quit IRC (Read error: Connection reset by peer) [01:39] Is there a convenient way to ls the contents of the file system? [01:40] I see my .lua file getting loaded, but MAME is giving me an error indicating it doesn't see it where I think it should be. [01:45] *** bwn has joined #jsmess [02:09] Nevermind, figured it out... the file is there, now trying to figure out if I can read it from the console... [06:30] *** wdna has joined #jsmess [06:34] *** wdna has quit IRC (Client Quit) [06:48] *** wdna has joined #jsmess [07:56] of course going through a socket might be easier [07:57] it all depends on whether you think serializing and deserializing messages will be easier than calling Lua's C api :) [08:46] *** wdna has quit IRC (Quit: WeeChat 2.1) [09:59] *** bwn has quit IRC (Read error: Operation timed out) [10:06] *** bwn has joined #jsmess [10:54] *** db48x has quit IRC (Read error: Operation timed out) [11:23] *** db48x has joined #jsmess [11:53] *** bwn has quit IRC (ny.us.hub ircd.choopa.net) [11:53] *** datajerk has quit IRC (ny.us.hub ircd.choopa.net) [12:10] *** bwn has joined #jsmess [12:10] *** datajerk has joined #jsmess [17:13] *** godane has quit IRC (Quit: Leaving.) [17:15] So, just to pick this up.... ted ---- [17:15] I don't think the USB controllers work with our thing anymore. [17:15] I could be wrong, but I'll begin testing it as soon as I go buy another USB controller, maybe today. [17:36] *** godane has joined #jsmess [23:58] *** balrog has quit IRC (Read error: Operation timed out)