mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-02-23 14:42:33 +01:00
byuu says: I'll post more detailed changes later, but basically: - fixed Baldur's Gate bug - guess if no flash ROM ID present (fixes Magical Vacation, many many others) - nall cleanups - sfc/cartridge major cleanups - bsxcartridge/"bsx" renamed to mcc/"mcc" after the logic chip it uses (consistency with SGB/ICD2) - ... and more!
21 lines
604 B
C++
21 lines
604 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("tomoko");
|
|
new Program;
|
|
Application::run();
|
|
}
|