From f8a6ff058044cb8ac6c809512c12db66d9cef273 Mon Sep 17 00:00:00 2001 From: Jorginho Date: Fri, 25 May 2012 20:17:19 +0200 Subject: bsnes:new package for pcr repo --- pcr/bsnes/add-usr-share-fallback.patch | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pcr/bsnes/add-usr-share-fallback.patch (limited to 'pcr/bsnes/add-usr-share-fallback.patch') 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 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 group; + + settingsVideoShaderList = new RadioItem[files.size()]; -- cgit v1.2.3-2-g168b