2015-02-28 12:51:53 +11:00
|
|
|
#include "tomoko.hpp"
|
2015-06-20 15:44:05 +10:00
|
|
|
Video* video = nullptr;
|
|
|
|
Audio* audio = nullptr;
|
|
|
|
Input* input = nullptr;
|
2015-04-21 21:51:57 +10:00
|
|
|
Emulator::Interface* emulator = nullptr;
|
2015-02-28 12:51:53 +11:00
|
|
|
|
2015-07-02 20:22:24 +10:00
|
|
|
//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(storage::exists(location)) return location;
|
|
|
|
return {pathname, filename};
|
|
|
|
}
|
|
|
|
|
2015-02-28 12:51:53 +11:00
|
|
|
#include <nall/main.hpp>
|
|
|
|
auto nall::main(lstring args) -> void {
|
|
|
|
Application::setName("tomoko");
|
|
|
|
new Program;
|
|
|
|
Application::run();
|
|
|
|
}
|