Skip to content

Fix portable build crash log#1338

Open
taysta wants to merge 1 commit into
JACoders:masterfrom
taysta:ojk-logs
Open

Fix portable build crash log#1338
taysta wants to merge 1 commit into
JACoders:masterfrom
taysta:ojk-logs

Conversation

@taysta

@taysta taysta commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Sys_DefaultHomePath() returns NULL on portable builds, causing logfiles to have an invalid path previously. Sys_ErrorDialog passed that straight into Com_sprintf("%s") and Sys_Mkdir without a check, which is undefined behaviour.

Fall back to the install path (Sys_DefaultInstallPath) when homepath is unavailable, mirroring the homepath/basepath fallback the FS already uses for fs_homepath.

@taysta taysta requested a review from a team as a code owner June 22, 2026 06:10
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