mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 10:32:13 +08:00
25 lines
896 B
Diff
25 lines
896 B
Diff
--- 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
|
|
@@ -338,6 +338,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()];
|
|
@@ -369,6 +373,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()];
|