nifengyuexia
Member
Metal Slug - Super Vehicle-001 (Japan, Asia)
LUA
The crash occurred in the following four scenarios and has now been fixed
LUA
Code:
-- Metal Slug 1 [NTSC J] (SLPS-00950)
-- Lua by nifengyuexia
-- emu used=All emus released after syphonfilter v2
local patcher = function()
--Fix scene crash
local code_check1 = R3K_ReadMem16(0x103456)
if code_check1 == 0x1040 then
R3K_WriteMem16(0x80103456,0x1000)
end
local code_check2 = R3K_ReadMem16(0x109bb6)
if code_check2 == 0x1040 then
R3K_WriteMem16(0x80109bb6,0x1000)
end
local code_check3 = R3K_ReadMem16(0x105946)
if code_check3 == 0x1040 then
R3K_WriteMem16(0x80105946,0x1000)
end
local code_check4 = R3K_ReadMem16(0x10675E)
if code_check4 == 0x1040 then
R3K_WriteMem16(0x8010675E,0x1000)
end
end
EM_AddVsyncHook(patcher)
The crash occurred in the following four scenarios and has now been fixed