Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --the filename must start with "Q", e.g. "q_pass_out_fix.lua"
- if not SearchModeAPI then return end -- the framework is required
- local old_passing = passingOutRoutine
- if not old_passing then return end -- no need to contonue if the mod doesn't exist
- SearchModeAPI.Register("passout", -50) -- priority = -50
- --replace the function from "pass out" mod.
- function passingOutRoutine()
- SearchModeAPI.Lock("passout")
- SearchModeAPI.Activate("passout")
- old_passing()
- SearchModeAPI.Deactivate("passout")
- end
- --another injection
- local old_pass = passOutRoutine
- function passOutRoutine()
- SearchModeAPI.Unlock("passout")
- return old_pass()
- end
- -- Remember that it's not 100% accurate patch. Lock/Unlock should be paired!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement