alliedmodders / metamod-source

Metamod:Source - C++ Plugin Environment and Detour Library for the Source Engine
http://www.metamodsource.net/
Other
374 stars 83 forks source link

Support non-relative game detection #92

Open Adrianilloo opened 2 years ago

Adrianilloo commented 2 years ago

Per the nearby code here, MM detects the game based on relative names (e.g hl2mp). When one wishes to pass absolute paths to the SRCDS -game parameter (which I had the need to do recently), I believe that's a perfectly server invocation but MM might detect the wrong mod and thus load the incorrect extensions, etc.

I think the parsing should manually figure out the mod name by extracting the last path component.