All right, I found "function lib:load_settings()" in autofire_save.lua which appears to be what I was looking for (identifying the machine buttons), so thanks for that!
Unfortunately, I'm seeing errors when attempting to require JSON from the console.
Code:
D:\MAME>mame64_247 mk -window -console -sound none
mame 0.247 Copyright (C) Nicola Salmoria and the MAME team
Lua 5.3 Copyright (C) Lua.org, PUC-Rio
[MAME]> local json = require('json') [MAME]> print(json.stringify("{'test': 555}")) error: [string "..."]:2: attempt to index a nil value (global 'json') [MAME]>
Am I doing something wrong? Does "require" not work from the command line?
|