higan is a multi-system emulator. It currently supports the following systems: - Nintendo Famicom - Nintendo Super Famicom - Super Game Boy - BS-X Satellaview - Sufami Turbo - Nintendo Game Boy - Nintendo Game Boy Color - Nintendo Game Boy Advance - Sega Master System - Sega Game Gear - Sega Mega Drive - NEC PC Engine - NEC SuperGrafx - Bandai WonderSwan - Bandai WonderSwan Color ok stsp@
27 lines
890 B
Plaintext
27 lines
890 B
Plaintext
$OpenBSD: patch-higan_target-tomoko_tomoko_cpp,v 1.1.1.1 2017/12/24 06:51:38 bentley Exp $
|
|
|
|
Index: higan/target-tomoko/tomoko.cpp
|
|
--- higan/target-tomoko/tomoko.cpp.orig
|
|
+++ 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;
|