Skip to content

Play the outro videos before ExitGame quits - #1081

Open
pieterdeschepper wants to merge 1 commit into
Try:masterfrom
pieterdeschepper:fix-exitgame-after-videos
Open

pieterdeschepper wants to merge 1 commit into
Try:masterfrom
pieterdeschepper:fix-exitgame-after-videos

Conversation

@pieterdeschepper

@pieterdeschepper pieterdeschepper commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

At the end of Gothic 1, DIA_Extro_Avi calls PlayVideo("Extro.bik"), PlayVideo("PlayerOut.bik") and PlayVideo("Credits.bik"), then ExitGame(). PlayVideo only adds the video to the VideoWidget queue, while Gothic::exitgame() called SystemApi::exit() right away. As a result the game closed after the last Sleeper heart without showing any of the three videos. The log only shows Exiting, by script call (exitgame).

Change

Gothic::exitgame() now sets a flag. MainWindow::tick() checks that flag after video.tick() and exits once no video is playing or queued. If no video was queued, the game exits on the next tick, as before. Esc still skips a video.

Testing

The change builds on macOS (Apple M3 Pro). I have played the outro with it and works as intended.

🤖 Generated with Claude Code

The Gothic 1 outro (DIA_Extro_Avi) calls PlayVideo three times and then
ExitGame. PlayVideo only queues the video, so ExitGame quit the
application before any of them was shown. ExitGame now sets a flag, and
MainWindow exits once the video queue is empty.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant