mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-10-05 03:41:57 +02:00
byuu says: Changelog: - fixed sprite Vflip check - fixed up window rendering (well, mostly, works great in Megaman II but not so great in Makaitoushi SaGa) - added MBC2, MBC5 (already had MBC0, MBC1) - removed reset, hooked up power cycle and Vsync toggle - some other stuff Makaitoushi SaGa locks on the main menu after some graphical glitches on the title screen, damn. Shin Megami Tensei - Devichil Black Book locks up immediately, hitting HALT opcodes all the time, damn again. Megaman II should be fully playable now. Contra 3 is really close, but goes crazy on the turtle boss fight.
25 lines
319 B
C++
Executable File
25 lines
319 B
C++
Executable File
#include <gameboy/gameboy.hpp>
|
|
|
|
#define SYSTEM_CPP
|
|
namespace GameBoy {
|
|
|
|
System system;
|
|
|
|
void System::init(Interface *interface_) {
|
|
interface = interface_;
|
|
}
|
|
|
|
void System::power() {
|
|
bus.power();
|
|
cartridge.power();
|
|
cpu.power();
|
|
lcd.power();
|
|
scheduler.init();
|
|
}
|
|
|
|
void System::run() {
|
|
scheduler.enter();
|
|
}
|
|
|
|
}
|