public static function getConfig($game) { $file = file_get_contents(dir::games('config.json', $game)); $file = preg_replace("/#\\s*([a-zA-Z ]*)/", "", $file); self::$params = json_decode($file, true); return self::$params; }