Skip to content

Commit 5a3dbad

Browse files
committed
Multiple changes.
- Changed name to Gambatte-DMS (dot matrix simulator) to avoid confusion with other outdated forks - Added an extra button layout option (alternate 2) to mirror Select/Start buttons into X/Y - Added option to disable the Fast-Forward hotkey - Preliminary work on a future scaler for devices with VGA screens - Added support for low battery warnings on miyoo consoles (not used in normal builds) - Preliminary work for a future auto-shutdown feature (shuts down when battery level is too low) on miyoo consoles
1 parent efcf397 commit 5a3dbad

22 files changed

+343
-76
lines changed

Makefile.bittboy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ CXX = $(CROSS_COMPILE)g++
66
SYSROOT := $(CHAINPREFIX)/arm-miyoo-linux-musleabi/sysroot
77
SDL_CFLAGS := $(shell $(SYSROOT)/usr/bin/sdl-config --cflags)
88

9-
OUTPUTNAME = gambatte-bittboy
9+
OUTPUTNAME = gambatte-dms-bittboy
1010

1111
DEFINES = -DHAVE_STDINT_H -DVERSION_BITTBOY
1212
INCLUDES = -Isrc/gambatte_sdl -Ilibgambatte -Icommon -Iinclude -Ilibgambatte/include -Ilibgambatte/src $(SDL_CFLAGS)

Makefile.pocketgo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ CXX = $(CROSS_COMPILE)g++
66
SYSROOT := $(CHAINPREFIX)/arm-miyoo-linux-musleabi/sysroot
77
SDL_CFLAGS := $(shell $(SYSROOT)/usr/bin/sdl-config --cflags)
88

9-
OUTPUTNAME = gambatte-pocketgo
9+
OUTPUTNAME = gambatte-dms-pocketgo
1010

1111
DEFINES = -DHAVE_STDINT_H -DVERSION_POCKETGO
1212
INCLUDES = -Isrc/gambatte_sdl -Ilibgambatte -Icommon -Iinclude -Ilibgambatte/include -Ilibgambatte/src $(SDL_CFLAGS)

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
**Gambatte-DMS**
2+
13
Gameboy emulator for handheld devices, using a modified Gambatte core (based on r572).
24

35
Working on the following systems:

build_multi_opk.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ echo "cd libgambatte && scons"
77
(cd libgambatte && scons -Q target=retrofw) || exit
88
echo "cd gambatte_sdl && scons"
99
(cd gambatte_sdl && scons -Q target=retrofw)
10-
mv gambatte_sdl/gambatte_sdl gambatte_sdl/gambatte.retrofw
10+
mv gambatte_sdl/gambatte_sdl gambatte_sdl/gambatte-dms.retrofw
1111

1212
echo "cd gambatte_sdl && scons -c"
1313
(cd gambatte_sdl && scons -c)
@@ -24,11 +24,11 @@ echo "cd libgambatte && scons"
2424
(cd libgambatte && scons -Q target=opendingux) || exit
2525
echo "cd gambatte_sdl && scons"
2626
(cd gambatte_sdl && scons -Q target=opendingux)
27-
mv gambatte_sdl/gambatte_sdl gambatte_sdl/gambatte.opendingux
27+
mv gambatte_sdl/gambatte_sdl gambatte_sdl/gambatte-dms.opendingux
2828

29-
rm -f gambatte-multi-r572u4-$BDAT.opk
29+
rm -f gambatte-dms-multi-r572u4-$BDAT.opk
3030

31-
mksquashfs ./dist/gcw0/default.gcw0.desktop ./dist/retrofw/default.retrofw.desktop ./dist/retrofw/gb.retrofw.desktop ./dist/retrofw/gbc.retrofw.desktop ./gambatte_sdl/gambatte.opendingux ./gambatte_sdl/gambatte.retrofw ./dist/gcw0/gambatte.png ./dist/gcw0/manual.txt ./dist/retrofw/gambatte.man.txt gambatte-multi-r572u4-$BDAT.opk -all-root -no-xattrs -noappend -no-exports
31+
mksquashfs ./dist/gcw0/default.gcw0.desktop ./dist/retrofw/default.retrofw.desktop ./dist/retrofw/gb.retrofw.desktop ./dist/retrofw/gbc.retrofw.desktop ./gambatte_sdl/gambatte-dms.opendingux ./gambatte_sdl/gambatte-dms.retrofw ./dist/gcw0/gambatte.png ./dist/gcw0/manual.txt ./dist/retrofw/gambatte.man.txt gambatte-dms-multi-r572u4-$BDAT.opk -all-root -no-xattrs -noappend -no-exports
3232

3333
echo "cd gambatte_sdl && scons -c"
3434
(cd gambatte_sdl && scons -c)
@@ -41,5 +41,5 @@ rm -rf *gambatte*/.scon*
4141
find . -type f -iname \*.o -delete
4242
find . -type f -iname gambatte_sdl -delete
4343

44-
find . -type f -iname gambatte.retrofw -delete
45-
find . -type f -iname gambatte.opendingux -delete
44+
find . -type f -iname gambatte-dms.retrofw -delete
45+
find . -type f -iname gambatte-dms.opendingux -delete

build_opendingux.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ echo "cd libgambatte && scons"
77
(cd libgambatte && scons -Q target=opendingux) || exit
88
echo "cd gambatte_sdl && scons"
99
(cd gambatte_sdl && scons -Q target=opendingux)
10-
mv gambatte_sdl/gambatte_sdl gambatte_sdl/gambatte.opendingux
10+
mv gambatte_sdl/gambatte_sdl gambatte_sdl/gambatte-dms.opendingux
1111

12-
rm -f gambatte-opendingux-r572u4-$BDAT.opk
12+
rm -f gambatte-dms-opendingux-r572u4-$BDAT.opk
1313

14-
mksquashfs ./dist/gcw0/default.gcw0.desktop ./gambatte_sdl/gambatte.opendingux ./dist/gcw0/gambatte.png ./dist/gcw0/manual.txt gambatte-opendingux-r572u4-$BDAT.opk -all-root -no-xattrs -noappend -no-exports
14+
mksquashfs ./dist/gcw0/default.gcw0.desktop ./gambatte_sdl/gambatte-dms.opendingux ./dist/gcw0/gambatte.png ./dist/gcw0/manual.txt gambatte-dms-opendingux-r572u4-$BDAT.opk -all-root -no-xattrs -noappend -no-exports
1515

1616
echo "cd gambatte_sdl && scons -c"
1717
(cd gambatte_sdl && scons -c)
@@ -24,4 +24,4 @@ rm -rf *gambatte*/.scon*
2424
find . -type f -iname \*.o -delete
2525
find . -type f -iname gambatte_sdl -delete
2626

27-
find . -type f -iname gambatte.opendingux -delete
27+
find . -type f -iname gambatte-dms.opendingux -delete

build_retrofw.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ echo "cd gambatte_sdl && scons"
1010

1111
rm -rf /tmp/.gambatte-ipk/ && mkdir -p /tmp/.gambatte-ipk/root/home/retrofw/emus/gambatte /tmp/.gambatte-ipk/root/home/retrofw/apps/gmenu2x/sections/emulators /tmp/.gambatte-ipk/root/home/retrofw/apps/gmenu2x/sections/emulators.systems
1212
cp dist/retrofw/gambatte.man.txt dist/retrofw/gambatte.png /tmp/.gambatte-ipk/root/home/retrofw/emus/gambatte
13-
cp gambatte_sdl/gambatte_sdl /tmp/.gambatte-ipk/root/home/retrofw/emus/gambatte/gambatte.dge
13+
cp gambatte_sdl/gambatte_sdl /tmp/.gambatte-ipk/root/home/retrofw/emus/gambatte/gambatte-dms.dge
1414
cp dist/retrofw/gambatte.lnk /tmp/.gambatte-ipk/root/home/retrofw/apps/gmenu2x/sections/emulators
1515
cp dist/retrofw/gb.gambatte.lnk dist/retrofw/gbc.gambatte.lnk /tmp/.gambatte-ipk/root/home/retrofw/apps/gmenu2x/sections/emulators.systems
1616
sed "s/^Version:.*/Version: `date +%Y%m%d`/" dist/retrofw/control > /tmp/.gambatte-ipk/control
1717
tar --owner=0 --group=0 -czvf /tmp/.gambatte-ipk/control.tar.gz -C /tmp/.gambatte-ipk/ control
1818
tar --owner=0 --group=0 -czvf /tmp/.gambatte-ipk/data.tar.gz -C /tmp/.gambatte-ipk/root/ .
1919
echo 2.0 > /tmp/.gambatte-ipk/debian-binary
20-
ar r gambatte-retrofw-r572u4-$BDAT.ipk /tmp/.gambatte-ipk/control.tar.gz /tmp/.gambatte-ipk/data.tar.gz /tmp/.gambatte-ipk/debian-binary
20+
ar r gambatte-dms-retrofw-r572u4-$BDAT.ipk /tmp/.gambatte-ipk/control.tar.gz /tmp/.gambatte-ipk/data.tar.gz /tmp/.gambatte-ipk/debian-binary
2121

2222
echo "cd gambatte_sdl && scons -c"
2323
(cd gambatte_sdl && scons -c)

dist/gcw0/default.gcw0.desktop

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[Desktop Entry]
2-
Name=Gambatte
2+
Name=Gambatte-DMS
33
Comment=GB/GBC emulator
4-
Exec=gambatte.opendingux %f
4+
Exec=gambatte-dms.opendingux %f
55
Terminal=false
66
Type=Application
77
StartupNotify=true

dist/gcw0/manual.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
Gambatte Emulator for OpenDingux devices
2+
Gambatte-DMS emulator for OpenDingux devices
33
------------------------------------------------
44

55
Gambatte is an accuracy-focused, open-source,
@@ -9,7 +9,7 @@ hardware tests, as well as previous documentation
99
and reverse engineering efforts.
1010

1111

12-
Ingame Controls
12+
Default Ingame Controls
1313
------------------------------------------------
1414

1515
D-PAD D-PAD
@@ -88,7 +88,7 @@ Here is a list of the available config options:
8888
Default is "DMG only".
8989

9090
- Controls:
91-
Allows the user to swap the B/A buttons.
91+
Allows the user to tune the controls.
9292

9393
- Sound:
9494
Allows the user to select between Mono and
@@ -251,8 +251,8 @@ Boston, MA 02111-1307, USA
251251

252252
------------------------------------------------
253253

254-
OpenDingux port, additional features and menu
255-
rework by Hi-Ban.
254+
Additional features and menu rework from the
255+
Gambatte-DMS version by Hi-Ban.
256256
Special thanks to Surkow, Senquack and Pingflood
257257
for helping this noob.
258258
Source code available at:

dist/retrofw/control

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
Package: gambatte
1+
Package: Gambatte-DMS
22
Version:
3-
Description: RetroGame port of Gambatte
3+
Description: port of Gambatte
44
Section: emus
55
Priority: optional
66
Maintainer: hi-ban

dist/retrofw/default.retrofw.desktop

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[Desktop Entry]
2-
Name=Gambatte
2+
Name=Gambatte-DMS
33
Comment=GB/GBC emulator
4-
Exec=gambatte.retrofw
4+
Exec=gambatte-dms.retrofw
55
Terminal=false
66
Type=Application
77
StartupNotify=true

0 commit comments

Comments
 (0)