Skip to content

Conversation

@Damglador
Copy link

@Damglador Damglador commented May 30, 2025

Fixes #884

Also adds directories of fmodengine from AUR package to the cmake file.

Damglador added 2 commits May 30, 2025 17:42
Technically it is not how XDG dictates it should be, but for most users that will work just fine
These directories are for fmodengine on Arch Linux from the AUR package https://aur.archlinux.org/packages/fmodengine
@Damglador Damglador marked this pull request as draft May 30, 2025 15:58
@Damglador
Copy link
Author

Ideally this should use XDG_DATA_HOME if possible, perhaps also copy old data from ~/.barony if it exists, and XDG_DATA_HOME/barony doesn't. Any feedback will be appreciated

Damglador added 4 commits May 30, 2025 19:50
- Use $XDG_DATA_HOME/barony if the variable is longer than 0 (exists), otherwise fallback to $HOME/.local/share/barony
- Made `basepath` a sting that already includes the barony folder in it, because it was getting added to `basepath` everywhere anyway
- Replaced `mkdir(outputdir, 0777)` with `std::filesystem::create_directories`, which should check if all directories before target exist and create them if they don't.
@Damglador Damglador marked this pull request as ready for review May 31, 2025 13:10
@shinysocks
Copy link

agree this is a good idea

Choose a reason for hiding this comment

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

what is this?

Copy link
Author

Choose a reason for hiding this comment

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

Include of header files provided by fmod package from AUR. Can be removed.

Choose a reason for hiding this comment

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

this looks good and I like the idea, I'm probably not qualified to review and unable to run it myself though..

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.

[Linux] Comply with the XDG directory standard

2 participants