diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-01-04 01:27:12 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-01-04 01:27:12 +0000 |
commit | 3517852e3b8a68d1e997770fc0650c5053bafc6c (patch) | |
tree | 44068672445b1418489aed82de58df3c470289e7 /games-emulation/higan/files/higan-116_pre20210818-paths.patch | |
parent | 0f15659d48c193027158492acb726297501202c5 (diff) |
gentoo resync : 04.01.2022
Diffstat (limited to 'games-emulation/higan/files/higan-116_pre20210818-paths.patch')
-rw-r--r-- | games-emulation/higan/files/higan-116_pre20210818-paths.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/games-emulation/higan/files/higan-116_pre20210818-paths.patch b/games-emulation/higan/files/higan-116_pre20210818-paths.patch new file mode 100644 index 000000000000..0652b164cfd9 --- /dev/null +++ b/games-emulation/higan/files/higan-116_pre20210818-paths.patch @@ -0,0 +1,44 @@ +Based on patch from Arch additionally using system's Shaders/ + +Resulting paths: +/usr/share/higan/{Database,Firmware,Shaders,Templates} +~/higan/ -> ~/.local/share/higan/Systems + +Templates+Systems can be changed in ~/.config/higan/paths.bml and +does not disrupt existing configurations. Shaders will use default +~/.config/higan/Shaders over system's if it exists. + +https://bugs.gentoo.org/828108 +--- a/higan-ui/higan-ui.cpp ++++ b/higan-ui/higan-ui.cpp +@@ -44,9 +44,8 @@ + } + if(!directory::exists(Path::templates)) { +- Path::templates = {Path::userData(), "higan/"}; +- directory::create(Path::templates); ++ Path::templates = {Path::sharedData(), "higan/Templates/"}; + } + if(!directory::exists(Path::data)) { +- Path::data = {Path::user(), "higan/"}; ++ Path::data = {Path::userData(), "higan/Systems/"}; + directory::create(Path::data); + } +--- a/higan-ui/menus/settings.cpp ++++ b/higan-ui/menus/settings.cpp +@@ -78,4 +78,6 @@ + + string location{Path::settings, "Shaders/"}; ++ if(!directory::exists(location)) ++ location = string{Path::sharedData(), "higan/Shaders/"}; + + if(settings.video.driver == "OpenGL 3.2") { +--- a/icarus/icarus.cpp ++++ b/icarus/icarus.cpp +@@ -9,6 +9,5 @@ + if(inode::exists(location)) return location; + +- directory::create({Path::userData(), "icarus/"}); +- return {Path::userData(), "icarus/", name}; ++ return {Path::sharedData(), "higan/", name}; + } + |