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

Small datadirs improvement #77

Merged
merged 2 commits into from
Jul 12, 2024
Merged

Small datadirs improvement #77

merged 2 commits into from
Jul 12, 2024

Conversation

erysdren
Copy link
Collaborator

Instead of saving configuration files inconsistently between shareware and registered, this PR ensures that they are saved into the same Taradino folder, in a subfolder for the name of the WAD. For registered, this is "darkwar" and for shareware this is "huntbgin". This can be expanded later for any other game WADs that could be loaded (i.e. huntbgn2.wad, or Extreme ROTT).

dir = M_StringJoin(result, "darkwar", PATH_SEP_STR, NULL);
#else
dir = M_StringJoin(result, "huntbgin", PATH_SEP_STR, NULL);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we already know the name of the WAD at this point and can use this, instead of hard-coding it based on compile time options?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The WAD names themselves are still hardcoded based on the same compile time option, so I don't know if it matters here. I think it should be changed if we ever do a bigger update to how the game/mod mounting & loading works, but I don't know if now's the time.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, thanks!

@erysdren erysdren merged commit 2ab3463 into main Jul 12, 2024
4 checks passed
@erysdren erysdren deleted the datadir_update branch July 12, 2024 13:25
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