# 转载请说明出处rpg.blue
# by fux2
module Fux2
SP = Win32API.new('kernel32','RtlMoveMemory','lpl','v')
GM = Win32API.new('kernel32','GetModuleHandle','p','l')
BASE_ADR = GM.call("RGSS103J.dll")+0x14034
GALS_ADR = GM.call("RGSS103J.dll")+0xE7388
def self.rmfix
codestr_p = "83 F8 60 7C 07 83 F8 69 7F 02 33 C0 50 FF 15".split(/ /).map{|a| a.to_i(16)}
codestr_m = [GALS_ADR].pack("L")
codestr_a = "25 00 80 00 00 C2 04 00".split(/ /).map{|a| a.to_i(16)}
size = codestr_p.size + 4 + codestr_a.size
code = codestr_p.pack("C*")+codestr_m+codestr_a.pack("C*")
SP.call(BASE_ADR,code,size)
code = nil
end
end
Fux2.rmfix
# 转载请说明出处rpg.blue
# by fux2
module Fux2
SP = Win32API.new('kernel32','RtlMoveMemory','lpl','v')
GM = Win32API.new('kernel32','GetModuleHandle','p','l')
BASE_ADR = GM.call("RGSS103J.dll")+0x14034
GALS_ADR = GM.call("RGSS103J.dll")+0xE7388
def self.rmfix
codestr_p = "83 F8 60 7C 07 83 F8 69 7F 02 33 C0 50 FF 15".split(/ /).map{|a| a.to_i(16)}
codestr_m = [GALS_ADR].pack("L")
codestr_a = "25 00 80 00 00 C2 04 00".split(/ /).map{|a| a.to_i(16)}
size = codestr_p.size + 4 + codestr_a.size
code = codestr_p.pack("C*")+codestr_m+codestr_a.pack("C*")
SP.call(BASE_ADR,code,size)
code = nil
end
end
Fux2.rmfix