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