mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-09-01 12:43:03 +02:00
Update bsnes' SameBoy integration for the new version.
Hat tip to @alice-mkh for figuring out how to update bsnes' integration.
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
include gb/version.mk
|
||||
export VERSION
|
||||
|
||||
flags += -DGB_INTERNAL -DGB_DISABLE_DEBUGGER -DGB_DISABLE_CHEATS -D_GNU_SOURCE -DGB_VERSION=\"$(VERSION)\" -Wno-multichar
|
||||
flags += -DGB_INTERNAL -DGB_DISABLE_DEBUGGER -DGB_DISABLE_CHEATS -D_GNU_SOURCE -DGB_VERSION=\"$(VERSION)\" -DNDEBUG -Wno-multichar
|
||||
options += -I../sameboy
|
||||
|
||||
objects += gb-apu gb-camera gb-rumble gb-display gb-gb gb-joypad gb-mbc
|
||||
objects += gb-memory gb-printer gb-random gb-rewind gb-save_state gb-sgb
|
||||
objects += gb-sm83_cpu gb-symbol_hash gb-timing
|
||||
#objects+= gb-debugger gb-sm83_disassembler
|
||||
objects += gb-sm83_cpu gb-timing
|
||||
#objects+= gb-debugger gb-sm83_disassembler gb-symbol_hash
|
||||
|
||||
obj/gb-apu.o: gb/Core/apu.c
|
||||
obj/gb-camera.o: gb/Core/camera.c
|
||||
|
@@ -42,10 +42,10 @@ namespace SameBoy {
|
||||
icd.apuWrite(left, right);
|
||||
}
|
||||
|
||||
static auto vblank(GB_gameboy_t*) -> void {
|
||||
static auto vblank(GB_gameboy_t*, GB_vblank_type_t) -> void {
|
||||
}
|
||||
|
||||
static auto log(GB_gameboy_t *gb, const char *string, GB_log_attributes attributes) -> void {
|
||||
static auto log(GB_gameboy_t *gb, const char *string, GB_log_attributes_t attributes) -> void {
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -3,6 +3,13 @@
|
||||
//license: GPLv3
|
||||
//started: 2004-10-14
|
||||
|
||||
extern "C" {
|
||||
#include <gb/Core/gb.h>
|
||||
#include <gb/Core/random.h>
|
||||
// Avoid conflict between `unreachable()` in SameBoy and `unreachable` in nall
|
||||
#undef unreachable
|
||||
}
|
||||
|
||||
#include <emulator/emulator.hpp>
|
||||
#include <emulator/random.hpp>
|
||||
#include <emulator/cheat.hpp>
|
||||
@@ -14,11 +21,6 @@
|
||||
#include <processor/upd96050/upd96050.hpp>
|
||||
#include <processor/wdc65816/wdc65816.hpp>
|
||||
|
||||
extern "C" {
|
||||
#include <gb/Core/gb.h>
|
||||
#include <gb/Core/random.h>
|
||||
}
|
||||
|
||||
namespace SuperFamicom {
|
||||
#define platform Emulator::platform
|
||||
namespace File = Emulator::File;
|
||||
|
Reference in New Issue
Block a user