Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-gnome
Path: blob/main/emulators/higan/files/patch-higan_target-tomoko_tomoko.cpp
16125 views
1
--- higan/target-tomoko/tomoko.cpp.orig 2016-07-01 08:21:27 UTC
2
+++ higan/target-tomoko/tomoko.cpp
3
@@ -4,6 +4,20 @@ unique_pointer<Audio> audio;
4
unique_pointer<Input> input;
5
Emulator::Interface* emulator = nullptr;
6
7
+auto locateShared(string name) -> string {
8
+ string location = {Path::program(), name};
9
+ if(inode::exists(location)) return location;
10
+
11
+ location = {Path::shared(), "higan/", name};
12
+ if(inode::exists(location)) return location;
13
+
14
+ location = {Path::config(), "higan/", name};
15
+ if(inode::exists(location)) return location;
16
+
17
+ directory::create({Path::local(), "higan/"});
18
+ return {Path::local(), "higan/", name};
19
+}
20
+
21
auto locate(string name) -> string {
22
string location = {Path::program(), name};
23
if(inode::exists(location)) return location;
24
25