I’ve lately ran into the problem where I need to overwrite default functions in the engine (to be specific: virtual methods of IFileSystem) using MS Detours.
Now I’m quite unsure if this is safe (concerning VAC).
I have detoured functions in GMod before (in lua_shared.dll) and this is now months ago (VAC wasn’t triggered for sure). But this wasn’t an engine-function. Now I have to overwrite/hook engine functions.
Background: I’m writing on a module (gm_mount2) which shall allow mounting vpk-files (the one, Left 4 Dead uses) using Nemesis HLLib. Reading from VPK’s is easy but now I have to tell GMod “if you search this file, look it up in the vpks”