[quake3-commits] [ioquake/ioq3] e452b7: Fix macOS client/server failing to start from term...

Turtle Man ♣ noreply at github.com
Sun Jun 11 11:05:28 EDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/ioquake/ioq3
  Commit: e452b7ac04b04d571089a332a09bc44bc83fbe2e
      https://github.com/ioquake/ioq3/commit/e452b7ac04b04d571089a332a09bc44bc83fbe2e
  Author: Zack Middleton <zack at cloemail.com>
  Date:   2023-06-11 (Sun, 11 Jun 2023)

  Changed paths:
    M code/sdl/sdl_input.c
    M code/sys/sys_local.h
    M code/sys/sys_main.c
    M code/sys/sys_osx.m

  Log Message:
  -----------
  Fix macOS client/server failing to start from terminal

The macOS client and server were completely unusable when run from a
terminal. They blocked forever in `[NSApp run];` which was called by
Sys_InitProtocolHandler(). `applicationDidFinishLaunching` was never
called to exit the NSApp run loop.

Use SDL's SDL_DROPFILE event to receive URLs to handle on macOS instead.
This also handles URLs while the game is running (connect to new server)
instead of nothing happening when clicking a link while the game is
running.




More information about the quake3-commits mailing list