summaryrefslogtreecommitdiff
path: root/social/bsnes/add-usr-share-fallback.patch
diff options
context:
space:
mode:
authorJorginho <jorginho@adinet.com.uy>2012-05-24 14:53:23 +0200
committerJorginho <jorginho@adinet.com.uy>2012-05-24 14:53:23 +0200
commita3b6393639417af522f0971f2da3908317e0adc0 (patch)
treeaf0edd5bfa3c12ccfc1bddff1f20a6dd305ce455 /social/bsnes/add-usr-share-fallback.patch
parent22a405b922ffb0604e0a0e249a52c1387fc66852 (diff)
upload bsnes
Diffstat (limited to 'social/bsnes/add-usr-share-fallback.patch')
-rw-r--r--social/bsnes/add-usr-share-fallback.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/social/bsnes/add-usr-share-fallback.patch b/social/bsnes/add-usr-share-fallback.patch
new file mode 100644
index 000000000..4d2b5cf3c
--- /dev/null
+++ b/social/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()];