#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 auto nall::main(lstring args) -> void { Application::setName("tomoko"); new Program(args); Application::run(); }