Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

id_ca: Use filenames from EPISODE.CKx #64

Merged
merged 3 commits into from
Sep 28, 2024
Merged

id_ca: Use filenames from EPISODE.CKx #64

merged 3 commits into from
Sep 28, 2024

Commits on Sep 28, 2024

  1. id_ca: Use filenames from EPISODE.CKx

    Instead of hardcoding the filenames for the various files needed by
    ID_CA (i.e., audio, graphics, and level files), load them from variables
    in EPISODE.CKx.
    
    This gets rid of some AdjustExtension() calls, as well as making it
    easier for mods to use the different filenames produced by different
    tools (e.g. EDITMAPS, MAPTEMP, etc).
    
    Note that this doesn't do anything fancy with the episode detection or
    anything yet, nor does it cover other files, outside ID_CA.
    sulix committed Sep 28, 2024
    Configuration menu
    Copy the full SHA
    02f6b4a View commit details
    Browse the repository at this point in the history
  2. ck_quit: Add a printf-formatted Quit(), QuitF()

    The Quit() function is used to terminate the game on a fatal error, and
    accepts a single string as its message (the normal end screen is
    displayed if the message is NULL). However, we often would like to
    provide extra diagnostic information in these circumstances, such as the
    filename we couldn't load, or similar. This is particularly important as
    more data moves to being loaded or defined at runtime, so can't be baked
    into static strings.
    
    The new QuitF() function behaves exactly like Quit(), but the message is
    now a printf-style format string, and additional arguments can be
    passed in afterwards.
    
    For example:
    QuitF("Couldn't load file %s!", filename)
    sulix committed Sep 28, 2024
    Configuration menu
    Copy the full SHA
    b555e12 View commit details
    Browse the repository at this point in the history
  3. id_ca: Log the level name (from TED) when caching a map

    This is a useful debug line, IMO.
    sulix committed Sep 28, 2024
    Configuration menu
    Copy the full SHA
    86e391e View commit details
    Browse the repository at this point in the history