updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / bsnes / add-usr-share-fallback.patch
blob9c8d19d9be6da0221d16416f6447c09016628476
1 --- ui/general/main-window.cpp.orig 2011-10-14 21:32:54.000000000 +0200
2 +++ ui/general/main-window.cpp 2011-10-14 21:33:10.000000000 +0200
3 @@ -330,6 +330,10 @@
4 path = { application->userpath, "filters/" };
5 files = directory::files(path, "*.filter");
7 + if(files.size() == 0) {
8 + path = { "/usr/share/bsnes/", "filters/" };
9 + files = directory::files(path, "*.filter");
10 + }
11 reference_array<RadioItem&> group;
13 settingsVideoFilterList = new RadioItem[files.size()];
14 @@ -361,6 +365,10 @@
15 path = { application->userpath, "shaders/" };
16 files = directory::files(path, { "*.", config->video.driver, ".shader" });
18 + if(files.size() == 0) {
19 + path = { "/usr/share/bsnes/", "shaders/" };
20 + files = directory::files(path, { "*.", config->video.driver, ".shader" });
21 + }
22 reference_array<RadioItem&> group;
24 settingsVideoShaderList = new RadioItem[files.size()];