diff options
author | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2012-05-30 12:41:17 -0300 |
---|---|---|
committer | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2012-05-30 12:41:17 -0300 |
commit | e68d976a35ac019eaad2d80b2818748211176d5b (patch) | |
tree | 716c653396b08e05e12b6acc97d06bb7cb9fd72c /pcr/bsnes/add-usr-share-fallback.patch | |
parent | e855f30d427d16dc9b9eada81e48c6acd2400793 (diff) | |
parent | 35c8fd0c42370098fe43db71c93aa22b4d41507b (diff) |
Merge branch 'master' of ssh://gparabola/srv/git/abslibre
Conflicts:
libre/your-freedom/PKGBUILD
Diffstat (limited to 'pcr/bsnes/add-usr-share-fallback.patch')
-rw-r--r-- | pcr/bsnes/add-usr-share-fallback.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/pcr/bsnes/add-usr-share-fallback.patch b/pcr/bsnes/add-usr-share-fallback.patch new file mode 100644 index 000000000..4d2b5cf3c --- /dev/null +++ b/pcr/bsnes/add-usr-share-fallback.patch @@ -0,0 +1,24 @@ +--- target-ui/general/main-window.cpp 2012-02-03 23:33:00.000000000 +0100 ++++ target-ui/general/main-window.cpp 2012-02-13 18:02:04.988109569 +0100 +@@ -331,6 +331,10 @@ + path = { application->userpath, "filters/" }; + files = directory::files(path, "*.filter"); + } ++ if(files.size() == 0) { ++ path = { "/usr/share/bsnes/", "filters/" }; ++ files = directory::files(path, "*.filter"); ++ } + array<RadioItem&> group; + + settingsVideoFilterList = new RadioItem[files.size()]; +@@ -362,6 +366,10 @@ + path = { application->userpath, "shaders/" }; + files = directory::files(path, { "*.", config->video.driver, ".shader" }); + } ++ if(files.size() == 0) { ++ path = { "/usr/share/bsnes/", "shaders/" }; ++ files = directory::files(path, { "*.", config->video.driver, ".shader" }); ++ } + array<RadioItem&> group; + + settingsVideoShaderList = new RadioItem[files.size()]; |