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

Fix crashing in CURSES without ASCII title art #78103

Merged
merged 1 commit into from
Nov 24, 2024

Conversation

alef
Copy link
Contributor

@alef alef commented Nov 23, 2024

Summary

Bugfixes "Fix crashing in CURSES without ASCII title art"

Purpose of change

Testing PDcurses build on Windows via CMake. The ENABLE_ASCII_TITLE options was crashing to desktop because of wrong logic. PATH_INFO::title() returned "Cataclysm: Dark Days Ahead", and the game was trying to open a file with that name in its part.

Describe the solution

Check ENABLE_ASCII_TITLE before.

Describe alternatives you've considered

Change PATH_INFO::title().

Testing

Run Windows PDCurses build with and without ENABLE_ASCII_TITLE.

Additional context

N/A

@github-actions github-actions bot added Info / User Interface Game - player communication, menus, etc. [C++] Changes (can be) made in C++. Previously named `Code` <Bugfix> This is a fix for a bug (or closes open issue) astyled astyled PR, label is assigned by github actions json-styled JSON lint passed, label assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions labels Nov 23, 2024
@kevingranade kevingranade merged commit 5b0c138 into CleverRaven:master Nov 24, 2024
22 of 28 checks passed
@alef alef deleted the title_splash_fix branch November 25, 2024 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Info / User Interface Game - player communication, menus, etc. json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants