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 gzdoom.pk3 not found error #1665

Merged
merged 1 commit into from
Jul 16, 2022
Merged

fix gzdoom.pk3 not found error #1665

merged 1 commit into from
Jul 16, 2022

Conversation

omar-polo
Copy link
Contributor

This is an attempt at fixing #1615.

Move the initialization before BaseFileSearch is called, otherwise GameConfig is used not initialized and it doesn't find the gzdoom.pk3 file.

(GameConfig used uninitalized was spotted by @LoneFox78.)

I'm not familiar with the codebase, but looking at the code C_InitConsole depends on LoadHexFont, and thus on the wad being loaded. I_DetectOS only looks at some hardcoded files and at uname, the rest of the code between the old D_DoomInit position and the new one are just printfs. D_DoomInit doesn't seem to depend on C_InitConsole or I_DetectOS.

With this I'm finally able to run gzdoom 4.8.2 on OpenBSD and it correctly picks up /usr/local/share/games/doom/gzdoom.pk3

Move the initialization before BaseFileSearch is called, otherwise
GameConfig is used not initialized and it doesn't find the gzdoom.pk3
file.

GameConfig used uninitalized was spotted by @LoneFox78.
@coelckers coelckers merged commit 0f0b4b7 into ZDoom:master Jul 16, 2022
@omar-polo
Copy link
Contributor Author

Thanks!

bob-beck pushed a commit to openbsd/ports that referenced this pull request Jul 18, 2022
diff from maintainer Timo Myyrä, thanks!  While here sort LIB_DEPENDS.

This also backports a fix for the "gzdoom.pk3 not found" error from
ZDoom/gzdoom#1665
@jengelh jengelh mentioned this pull request Jul 24, 2022
1 task
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.

None yet

2 participants