bsnes/higan/target-tomoko/tomoko.cpp

24 lines
630 B
C++

#include "tomoko.hpp"
unique_pointer<Video> video;
unique_pointer<Audio> audio;
unique_pointer<Input> input;
Emulator::Interface* emulator = nullptr;
auto locate(string name) -> string {
string location = {programpath(), name};
if(file_system_object::exists(location)) return location;
location = {configpath(), "higan/", name};
if(file_system_object::exists(location)) return location;
directory::create({localpath(), "higan/"});
return {localpath(), "higan/", name};
}
#include <nall/main.hpp>
auto nall::main(lstring args) -> void {
Application::setName("higan");
new Program(args);
Application::run();
}