HolyLib Wiki

holylib_filesystem_splitgamepath

  holylib_filesystem_splitgamepath = 1

Description

If enabled, it will split each GAME path into multiple search paths, depending on it's contents.
Then when you try to find a file with the GAME search path, it will change the pathID to the content path.

Example:
File: cfg/game.cfg
Path: GAME
becomes:
File: cfg/game.cfg
Path: CONTENT_CONFIGS

This will reduce the amount of searchpaths it has to go through which improves performance.

Content paths:

  • materials/ -> CONTENT_MATERIALS
  • models/ -> CONTENT_MODELS
  • sound/ -> CONTENT_SOUNDS
  • maps/ -> CONTENT_MAPS
  • resource/ -> CONTENT_RESOURCE
  • scripts/ -> CONTENT_SCRIPTS
  • cfg/ -> CONTENT_CONFIGS
  • gamemodes/ -> LUA_GAMEMODES
  • lua/includes/ -> LUA_INCLUDES