简要记录之。
执行生产mame.ini
mame64.exe -createconfig
修改参数,对应到自己的目录下的启动脚本文件
autoboot_script boot\boot.lua
boot.lua的内容
require('lfs')
local function test_boot_script(path)
print(path .. " tested ...")
local file = io.open(path, "rb")
if file then file:close() end
return file ~= nil
end
local rom_script_file = lfs.currentdir() .. "\\boot\\" .. emu.romname() .. ".lua"
if test_boot_script(rom_script_file) then
print(rom_script_file .. " loaded ...")
dofile(rom_script_file)
end
ROM对应的Lua脚本中写操作代码,这样不存在个性化启动脚本的被自动忽略,设置有脚本的执行期望的代码,满分!