bsnes/target-ethos/bootstrap.cpp

16 lines
457 B
C++

#include <fc/interface/interface.hpp>
#include <sfc/interface/interface.hpp>
#include <gb/interface/interface.hpp>
#include <gba/interface/interface.hpp>
void Program::bootstrap() {
interface = new Interface;
emulator.append(new Famicom::Interface);
emulator.append(new SuperFamicom::Interface);
emulator.append(new GameBoy::Interface);
emulator.append(new GameBoyAdvance::Interface);
for(auto& system : emulator) system->bind = interface;
}