Config file: global variables vs "config getcher" function

I ended up doing just this but on LUA: an object constructor loads a map with config parameters.Thanks @dimitarvp!