简要记录之。
执行生产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脚本中写操作代码,这样不存在个性化启动脚本的被自动忽略,设置有脚本的执行期望的代码,满分!
本文介绍如何使用MAME模拟器通过配置Lua脚本实现自动加载对应ROM文件的方法。具体步骤包括运行mame64.exe创建配置文件,编辑启动脚本指向Lua文件,以及在Lua脚本中编写测试和加载ROM的代码。
7094

被折叠的 条评论
为什么被折叠?



