vp-build/srcpkgs/higan/patches/use_sharedpath.patch

17 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};
}