void-packages/srcpkgs/higan/patches/use_sharedpath.patch
John eb07b4bb6a New package: higan-106
Closes: #11618 [via git-merge-pr]
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
2018-03-25 21:47:25 +02:00

16 lines
518 B
Diff

Description: Use sharedpath() when locating files
To find files that are in /usr/share/higan.
Author: Tobias Hansen <thansen@debian.org>
--- higan/target-tomoko/tomoko.cpp
+++ higan/target-tomoko/tomoko.cpp
@@ -11,6 +11,9 @@
location = {Path::config(), "higan/", name};
if(inode::exists(location)) return location;
+ location = {Path::shared(), "higan/", name};
+ if(inode::exists(location)) return location;
+
directory::create({Path::local(), "higan/"});
return {Path::local(), "higan/", name};
}