FileSys: Registering zip files needs more flexibility

Issue #116 new
Carsten Fuchs created an issue

The current approach registers only two zip files with fixed, hard-wired paths. This leads to problems as described at http://www.cafu.de/forum/viewtopic.php?f=6&t=1020

What we need instead is game-specific registration of file systems.

For example, file EntityClassDefs.lua (or a new file GameConfig.lua besides it) could hold a list of file systems (zip, http, ftp, ...) to be registered with the game.

Comments (3)

  1. Carsten Fuchs reporter

    (In [640]) Engine core: The client and server code used to contain hard-coded references / strings to game "DeathMatch". This obviously causes problems for custom games with different names.

    To overcome these problems, this change introduces the new `GameInfoI` interface.

    The key idea is to build a list of `GameInfoI`s of all games known (linked) to the executable. This is done early in application init, so that the list can be queried at the command-line ("--help"), and a game from it be elected (possibly also at the command-line) for use.

    Once the choice is made, the related `GameInfoI` is queried for all subsequent initialization.

    References #116.

  2. Log in to comment