mirror of
https://github.com/Mr-Wiseguy/Zelda64Recomp.git
synced 2024-11-25 14:16:58 +01:00
Changed save directory on linux to $HOME/.config/appname
This commit is contained in:
parent
52278c5a4d
commit
b9c9e65672
@ -143,7 +143,7 @@ std::filesystem::path recomp::get_app_folder_path() {
|
||||
}
|
||||
|
||||
if (homedir != nullptr) {
|
||||
recomp_dir = std::filesystem::path{homedir} / (std::u8string{u8"."} + std::u8string{recomp::program_id});
|
||||
recomp_dir = std::filesystem::path{homedir} / (std::u8string{u8".config/"} + std::u8string{recomp::program_id});
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -366,6 +366,10 @@ void recomp::load_config() {
|
||||
std::filesystem::path controls_path = recomp_dir / controls_filename;
|
||||
std::filesystem::path sound_path = recomp_dir / sound_filename;
|
||||
|
||||
if (!recomp_dir.empty()) {
|
||||
std::filesystem::create_directories(recomp_dir);
|
||||
}
|
||||
|
||||
if (std::filesystem::exists(general_path)) {
|
||||
load_general_config(general_path);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user