mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-02-23 22:52:34 +01:00
byuu says: Changelog (since the last open beta): - icarus is now included. icarus is used to import game files/archives into game paks (folders) - SNES: mid-scanline BGMODE changes now emulated correctly (used only by atx2.smc Anthrox Demo) - GBA: fixed a CPU bug that was causing dozens of games to have distorted audio - GBA: fixed default FlashROM ID; should allow much higher compatibility - GBA: now using Cydrak's new, much improved, GBA color emulation filter (still a work-in-progress) - re-added command-line loading support for game paks (not for game files/archives, sorry!) - Qt port now compiles and runs again (may be a little buggy; Windows/GTK+ ports preferred) - SNES performance profile now compiles and runs again - much more
21 lines
610 B
C++
21 lines
610 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(args);
|
|
Application::run();
|
|
}
|