Skip to content

Commit e866a90

Browse files
committed
Apply bsnes' customisations back on top of the upstream SameBoy source.
This includes changes to SameBoy (updating the README to be clear about provenance, and adding a GNUmakefile to integrate with bsnes' build system), updates the SameBoy version number in the about box, and adds SameBoy to the list of subtrees updated by update-subtrees.sh.
1 parent ec18efc commit e866a90

File tree

4 files changed

+37
-1
lines changed

4 files changed

+37
-1
lines changed

bsnes/gb/GNUmakefile

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
flags += -DGB_INTERNAL -DGB_DISABLE_DEBUGGER -DGB_DISABLE_CHEATS -D_GNU_SOURCE -Wno-multichar
2+
options += -I../sameboy
3+
4+
objects += gb-apu gb-camera gb-rumble gb-display gb-gb gb-joypad gb-mbc
5+
objects += gb-memory gb-printer gb-random gb-rewind gb-save_state gb-sgb
6+
objects += gb-sm83_cpu gb-symbol_hash gb-timing
7+
#objects+= gb-debugger gb-sm83_disassembler
8+
9+
obj/gb-apu.o: gb/Core/apu.c
10+
obj/gb-camera.o: gb/Core/camera.c
11+
obj/gb-debugger.o: gb/Core/debugger.c
12+
obj/gb-rumble.o: gb/Core/rumble.c
13+
obj/gb-display.o: gb/Core/display.c
14+
obj/gb-gb.o: gb/Core/gb.c
15+
obj/gb-joypad.o: gb/Core/joypad.c
16+
obj/gb-mbc.o: gb/Core/mbc.c
17+
obj/gb-memory.o: gb/Core/memory.c
18+
obj/gb-printer.o: gb/Core/printer.c
19+
obj/gb-random.o: gb/Core/random.c
20+
obj/gb-rewind.o: gb/Core/rewind.c
21+
obj/gb-save_state.o: gb/Core/save_state.c
22+
obj/gb-sgb.o: gb/Core/sgb.c
23+
obj/gb-sm83_cpu.o: gb/Core/sm83_cpu.c
24+
obj/gb-sm83_disassembler.o: gb/Core/sm83_disassembler.c
25+
obj/gb-symbol_hash.o: gb/Core/symbol_hash.c
26+
obj/gb-timing.o: gb/Core/timing.c

bsnes/gb/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
SameBoy is an open source Game Boy (DMG) and Game Boy Color (CGB) emulator, written in portable C. It has a native Cocoa frontend for macOS, an SDL frontend for other operating systems, and a libretro core. It also includes a text-based debugger with an expression evaluator. Visit [the website](https://sameboy.github.io/).
44

5+
## bsnes integration
6+
7+
This directory should be a clean copy of the upstream SameBoy source, with the exception of this section of the README, and the `GNUmakefile` file that integrates it with bsnes' build system. Only files in the `Core/` directory are used, none of the UI or other portions.
8+
59
## Features
610
Features common to both Cocoa and SDL versions:
711
* Supports Game Boy (DMG) and Game Boy Color (CGB) emulation

bsnes/target-bsnes/presentation/presentation.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ auto Presentation::create() -> void {
183183
.setName("SameBoy")
184184
.setLogo(Resource::SameBoy)
185185
.setDescription("Super Game Boy emulator")
186-
.setVersion("0.13.1")
186+
.setVersion("0.13.6")
187187
.setCopyright("Lior Halphon")
188188
.setLicense("MIT")
189189
.setWebsite("https://sameboy.github.io")

update-subtrees.sh

+6
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,9 @@ cd "$(dirname "$0")" || exit 1
1111

1212
# Merge changes from the libco repository.
1313
git subtree pull --prefix=libco https://github.com/higan-emu/libco.git master
14+
15+
# Merge changes from SameBoy
16+
git subtree pull --prefix=bsnes/gb https://github.com/LIJI32/SameBoy.git master
17+
echo "If SameBoy updated, remember to update the SameBoy version"
18+
echo "in bsnes/target-bsnes/presentation/presentation.cpp !"
19+

0 commit comments

Comments
 (0)