bsnes/higan/target-tomoko/tomoko.cpp

21 lines
609 B
C++

#include "tomoko.hpp"
Video* video = nullptr;
Audio* audio = nullptr;
Input* input = nullptr;
Emulator::Interface* emulator = nullptr;
//if file already exists in the same path as the binary; use it (portable mode)
//if not, use default requested path (*nix/user mode)
auto locate(string pathname, string filename) -> string {
string location{programpath(), filename};
if(file_system_object::exists(location)) return location;
return {pathname, filename};
}
#include <nall/main.hpp>
auto nall::main(lstring args) -> void {
Application::setName("higan");
new Program(args);
Application::run();
}