mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-02-24 23:22:25 +01:00
byuu says: Changelog: - nall::lstring -> nall::string_vector - added IntegerBitField<type, lo, hi> -- hopefully it works correctly... - Multitap 1-4 -> Super Multitap 2-5 - fixed SFC PPU CGRAM read regression - huge amounts of SFC PPU IO register cleanups -- .bits really is lovely - re-added the read/write(VRAM,OAM,CGRAM) helpers for the SFC PPU - but they're now optimized to the realities of the PPU (16-bit data sizes / no address parameter / where appropriate) - basically used to get the active-display overrides in a unified place; but also reduces duplicate code in (read,write)IO
24 lines
618 B
C++
24 lines
618 B
C++
#include "tomoko.hpp"
|
|
unique_pointer<Video> video;
|
|
unique_pointer<Audio> audio;
|
|
unique_pointer<Input> input;
|
|
Emulator::Interface* emulator = nullptr;
|
|
|
|
auto locate(string name) -> string {
|
|
string location = {Path::program(), name};
|
|
if(inode::exists(location)) return location;
|
|
|
|
location = {Path::config(), "higan/", name};
|
|
if(inode::exists(location)) return location;
|
|
|
|
directory::create({Path::local(), "higan/"});
|
|
return {Path::local(), "higan/", name};
|
|
}
|
|
|
|
#include <nall/main.hpp>
|
|
auto nall::main(string_vector args) -> void {
|
|
Application::setName("higan");
|
|
new Program(args);
|
|
Application::run();
|
|
}
|