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
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");
11 reference_array<RadioItem&> group;
13 settingsVideoFilterList = new RadioItem[files.size()];
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" });
22 reference_array<RadioItem&> group;
24 settingsVideoShaderList = new RadioItem[files.size()];