mirror of https://github.com/bsnes-emu/bsnes.git
24 lines
618 B
C++
24 lines
618 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 = {Path::program(), 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};
|
|
}
|
|
|
|
#include <nall/main.hpp>
|
|
auto nall::main(string_vector args) -> void {
|
|
Application::setName("higan");
|
|
new Program(args);
|
|
Application::run();
|
|
}
|