1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/emulators/higan/files/patch-higan_target-tomoko_tomoko.cpp
Dmitry Marakasov b7dda5b4c0 - Update to 102
PR:		211855
Submitted by:	cyberbotx@cyberbotx.com (maintainer)
2017-04-10 13:17:17 +00:00

24 lines
784 B
C++

--- higan/target-tomoko/tomoko.cpp.orig 2016-07-01 08:21:27 UTC
+++ higan/target-tomoko/tomoko.cpp
@@ -4,6 +4,20 @@ unique_pointer<Audio> audio;
unique_pointer<Input> input;
Emulator::Interface* emulator = nullptr;
+auto locateShared(string name) -> string {
+ string location = {Path::program(), name};
+ if(inode::exists(location)) return location;
+
+ location = {Path::shared(), "higan/", name};
+ if(inode::exists(location)) return location;
+
+ location = {Path::config(), "higan/", name};
+ if(inode::exists(location)) return location;
+
+ directory::create({Path::local(), "higan/"});
+ return {Path::local(), "higan/", name};
+}
+
auto locate(string name) -> string {
string location = {Path::program(), name};
if(inode::exists(location)) return location;