[quake3-commits] [ioquake/ioq3] 755b2f: Offer post-crash safe settings on a per-mod basis

Zack Middleton zturtleman at gmail.com
Mon Oct 10 01:16:24 EDT 2016


  Branch: refs/heads/master
  Home:   https://github.com/ioquake/ioq3
  Commit: 755b2f38f023e4263620c177500b0469a2707392
      https://github.com/ioquake/ioq3/commit/755b2f38f023e4263620c177500b0469a2707392
  Author: Zack Middleton <zturtleman at gmail.com>
  Date:   2016-10-09 (Sun, 09 Oct 2016)

  Changed paths:
    M code/qcommon/common.c
    M code/qcommon/files.c
    M code/qcommon/qcommon.h
    M code/sys/sys_main.c

  Log Message:
  -----------
  Offer post-crash safe settings on a per-mod basis

Offer to restore settings when loading a mod that crashed, not the first
mod that gets loaded after a crash. Before the first mod loaded (usually
baseq3) would get the option even if missionpack or some other mod crashed.

- Make pid files separate for each fs_game.
- Remove/write pid every time switching fs_game.
- Create path before writing pid file otherwise it fails on first run.
- Show mod description.txt or fs_game instead of engine name in abnormal
  exit message.
- Check com_fullyInitialized in Com_Error before removing PID,
  otherwise "ioquake3 --version" segfaults when accessing fs_gamevar->string
  (plus not fully initialized isn't really a normal shutdown).


  Commit: 978afd7590efd26615550f1f7c6494da1451aaa0
      https://github.com/ioquake/ioq3/commit/978afd7590efd26615550f1f7c6494da1451aaa0
  Author: Zack Middleton <zturtleman at gmail.com>
  Date:   2016-10-09 (Sun, 09 Oct 2016)

  Changed paths:
    M code/client/cl_main.c

  Log Message:
  -----------
  Avoid shuting down opus voip codec multiple times


  Commit: c80f341711aff3fade2c61d3c45b73a543b2997d
      https://github.com/ioquake/ioq3/commit/c80f341711aff3fade2c61d3c45b73a543b2997d
  Author: Zack Middleton <zturtleman at gmail.com>
  Date:   2016-10-09 (Sun, 09 Oct 2016)

  Changed paths:
    M code/qcommon/common.c

  Log Message:
  -----------
  Handle ERR_DROP during Com_GameRestart

If ERR_DROP during Com_GameRestart after shutting down client, Com_Error
needs to restart the client otherwise there is just a black window. Also,
clear the game restarting flag in Com_Error otherwise it's not possible to
run Com_GameRestart again later.

I don't know of a way to trigger ERR_DROP, in FS_Restart for instance,
without engine changes however.


Compare: https://github.com/ioquake/ioq3/compare/1246d16834fb...c80f341711af


More information about the quake3-commits mailing list