GithubHelp home page GithubHelp logo

bardeci / gambatte-dms Goto Github PK

View Code? Open in Web Editor NEW
66.0 66.0 21.0 992 KB

Gambatte-DMS is a GB/GBC emulator for handheld devices, using a modified Gambatte core.

License: GNU General Public License v2.0

Shell 0.32% C++ 60.50% C 38.57% Python 0.43% Makefile 0.18%

gambatte-dms's People

Contributors

bardeci avatar hi-ban avatar sndream avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

gambatte-dms's Issues

Save/Load State hotkeys? (Feature request)

Well, the title says it all. Since rewind probably would be too much to ask and more difficult to implement it still would be cool if we could save/load without opening the menu.

DMG games in GBC

Would it be possible to add an option to put GB games in GBC mode through the bios as in the retroarch emulator?

Request: Add Support For SGB Enhanced Games.

Can You Please Add Support For SGB Enhanced Games, Add SGB In Emulated Hardware, Add SGB Borders On/Off, Fix Bug On Bomberman Collection (Japan), Bomberman Selection (Korea), Super Chinese 1, 2, 3 Collection

GameShark cheats not working.

I'm using this emulator on my PocketGo v1. Recently, I tried using the cheats feature to add a GameShark code into Pokemon Crystal's USA version, but I couldn't make it work. It worked in mGBA on my desktop, but not on Gambatte-DMS (build version 20200628-164119 that came in the MiyooCFW). More details are below:

  1. Got the Pokemon Crystal (U) rom from my microSD card, copied to my desktop, and ran it through the mGBA emulator;
  2. Added the GameShark cheat "9120F1D0 – list Rare Candy in any PokeMarts", and went to a store. The first item (Poke Ball) was replaced by Rare Candy, so I can buy it;
  3. Opened the game through Gambatte-DMS in my PocketGo, and tried adding the same GameShark cheat from item 2. I made sure to tick the checkbox on the left of the code as well. Didn't work, with the first item still being the Poke Ball.

Am I missing something from my tests? Or am I right to assume that GS cheats aren't working?

Adding option for fast-forward to toggle, as well as add turbo buttons

It would be really nice, especially for pokemon, to be able to make the fast forward button be a toggle instead of having to hold the L button down as long as I want to fast forward. As well that an option to make X and Y turbo A and B instead of just another A and B, or the same for the other button layout, it would be very convenient. Really enjoying the improvements the emulator has over the stock one and hope to see it improve more, thanks

Will only start in the gameboy color version, but I want to use OG gameboy palettes.

I've recently downloaded the LSDJ demo rom and I opened it and it automatically went to the gbc version instead. It was a .gb file so I hoped it'd open to that so I could use some good looking palettes with it, because I'm just that picky and the gbc colors are bad looking to me. Anyways, is there any way I could stop it from opening as a gbc game and instead play it as an og gb game? Thanks in advance.

auto fire and cheat code save.

Could we see one day auto fire? and cheat code saving ? :)

anyways keep up the good work on the fine emulator i use it daily. on my pocket go 2

Trying to load .sav files for LSDj

I tried to place some .sav files inside the same folder as my LSDj rom, however it's not loaded as expected. Also tried to put it on /home/retrofw/.gambatte/saves with no success.

I was taking a look at the source code and it doesn't seem that anything changed from sinamas original gambatte. I'm able though to load the same .sav files with my own build of x86 gambatte (by sinamas) just by leaving the same .gb and .sav file with same name at same folder.

I also trying to use terminal app on LDK to run it directly with ./gambatte.retrofw lsdj.gb but no success as well. It loads the rom, shows the following output but I can load any sounds from my sav file:

Screenshot from 2020-03-03 17-34-00

Any ideas?

Button layout for LSDJ

So, a few users are trying to use LSDJ to make music using the rg350, so far the emulator works nice, ive been using the original DMG and it sound emulation is really nice, but we have problems with how the key layout is arranged, we use combinations of SELECT+DIRECTION and SELECT+A/ SELECT+B/ SELECT+A+B for moving between screens and copying, pasting and cutting, the alternative version in the menu helps with the navigation but lacks for the combinations for copying, cutting and pasting.
It would be awesome some menu for custon edit the button layout, ive never seen that in a GB emulator for the RG350, or at least another alternative version to have select+start linked to the triggers so we can have the right and left thumb free for those commands.
Thanks for this awesome emulator!

Better control remapping

This is not so much an issue but a much needed feature for LSDJ users.
I have an Anbernic RG350 with very stiff Select and Start buttons. I wish I could assign their functions to the spare X and Y buttons or to the shoulder buttons (I have R2 and L2), or at the very least invert their functions since Select is used more often in LSDJ than Start.
Could we see an implementation of this in the next release of Gambatte?

Latest version not workin with simplemenu

Release 20231203 for multi opk package not working on RG350M and simplemenu, release 20210116 RG350M OPK package works perfectly but it doesn’t have the latest features like auto save states and some scalers 1.66 HW ones.

Do you have plan to add Super Game Boy "emulation" for SGB enhanced GB games

@bardeci @hi-ban In Options > System > Emulated Hardware

Auto
GB
SGB
SGB2
GBC
GBA

SGB emulation mode is for Super Game Boy enhanced Original Game Boy games: SGB Borders, SGB Color Palettes

SGB Enhanced for example: Kirby's Dream Land 2 (GB) (SGB Enhanced), Mega Man V (GB) (SGB Enhanced), Donkey Kong 94' (GB) (SGB Enhanced), ect...

Game Boy emulation
Mega Man V (U)  S ! _1659195683405

Super Game Boy emulation
Mega Man V (U)  S ! _1659195723044

Super Game Boy emulation with SGB Borders
Mega Man V

I made a pull request #37

Bootlegs on Gambatte

Hello, I've been enjoying playing GBC and GB roms on Gambatte on RS97 for a while now, but I found a problem: it won't recognize the GB rom of "Sonic 3D Blast 5" (download at end of page). I've tried with its GBC sequels, "Sonic Adventure 7" and 8, and they both work without any problem.
The error I get is this: "bad file or unknown MBC" (gotten via the gmenu logger thing).

I should add that this game works with the RetroArch GB "accurate" core (https://github.com/Poligraf/retroarch_cores_retrofw/blob/main/gameboy_(accurate)_gearboy_libretro.so) but does not boot with the "fast" one (https://github.com/Poligraf/retroarch_cores_retrofw/blob/main/gameboy_(fast)_gambatte_libretro.so)

Feel free to ask if I need to clarify anything.
Thank you a lot for your great work on this emulator.

Some ideas to improve

Hi, I would like to know if it will be possible to add these features:

  • Fast forward speed intervals (x2, x3, x4, x6, x8)
  • Fast forward toggle option
  • Button mapping

Thanks

Gambatte 0.5.1 Update Request:

Add Support For SGB Enhanced, Add SGB In Emulated Hardware, Fix Bugs On Bomberman Collection (Japan), Bomberman Selection (Korea), Super Chinese 1, 2, 3
Screenshot_20220224-214656
Screenshot_20220224-214702

Windows Defender trojan alert

Latest package (20211021) triggering my WIndows Defender with “Trojan:Win32/Sabsik.FL.A!ml”, happened to someone else?

SGB Enhanced Support

Add SGB Enhanced Support And SGB In Emulated Hardware. On SGB Enhanced: It Unlocks Some Features In Some Games: For Example: Bomberman GB (USA)/Bomber Man GB 2 (Japan) On SGB Enhanced Has Battle. On GB Has No Battle

GB:
Screenshot_20220409-080925~3

SGB (With Battle):
Screenshot_20220409-081020~3

GBC games with GB support have not GBC color palettes

When I run a GBC game with GB support (eg. Wario Land 2) it only uses a monochrome screen and does not use a GBC color palette. Used filetype is "gbc".

OhBoy works correctly and uses gbc colors.
I think that Gambatte SDL with Rumble support (available on MiyooCFW 1.3.3) uses sgb colors.

Tested with: Release 20210116
On: Pocket Go v1 with MiyooCFW 1.3.3

OhBoy:
wario-land-2-ohboy

Gambatte-DMS:
wario-land-2-gambatte

Gambatte-SDL:
wario-land-2-gambatte-sdl

Roms not loading-stuck in loop

This issue is for gameboy color games on the the gambatte-dms-pocketgo on powkiddy v90. Both the latest from this repo, and the one that comes stock on cfw 1.3.3

The issue is the same with and without bios files.

The issue is:
Rom opens
Bios splash happens (if bios files are in place)
The roms splash happens
The roms start new/load etc game screen comes up
It loops back to the roms splash screen regardless of option chosen.

This happens for every rom, and they work on other emulators gambatte-sdl, ohboy for example.
But here, they just get into an infinite loop of game splash screen, start new game.

Clock on pokemon games is broken?

I'm not sure if it's related to savestates, or the clock on my device being wrongly set up or what, but i can't find a way to at least figure out a way to at least predict the hour the games will display. It's got an offset of about 6 hours, and i can't seem to fix it.

Add gameboy advance "emulation" for GBA enhanced GBC games.

Some gameboy color games can detect if they are running on a gameboy advance and unlock extra features. It would be nice to have an option to be able to simulate running on a gameboy advance to make those features work without having to patch the rom. Apparently it is fairly simple to do (and some versions of gambatte already support it) as the only difference is that the CPU register 'b' holds a value of 0 when a GBC is first turned on and a value of 1 on a GBA.

Build for miyoo faild

I tried building the project using the miyoo toolchain but encountered an error:

c++ -lasound -lmodplugma -lmikmod -Wl,--as-needed -Wl,--gc-sections -flto -s -Wl,--end-group /opt/miyoo/lib/gcc/arm-miyoo-linux-uclibcgnueabi/7.3.0/../../../../arm-miyoo-linux-uclibcgnueabi/bin/ld: cannot find -lmodplugma /opt/miyoo/lib/gcc/arm-miyoo-linux-uclibcgnueabi/7.3.0/../../../../arm-miyoo-linux-uclibcgnueabi/bin/ld: cannot find -lmikmod /opt/miyoo/lib/gcc/arm-miyoo-linux-uclibcgnueabi/7.3.0/../../../../arm-miyoo-linux-uclibcgnueabi/bin/ld: cannot find -lmodplugma /opt/miyoo/lib/gcc/arm-miyoo-linux-uclibcgnueabi/7.3.0/../../../../arm-miyoo-linux-uclibcgnueabi/bin/ld: cannot find -lmikmod collect2: error: ld returned 1 exit status make: *** [common.mk:83: executable] Error 1

According to the error message, it seems that the miyoo SDK is missing these two linked libraries: -lmodplugma and -lmikmod. Could you provide an SDK that can be compiled successfully, or the files for these two linked libraries? Thank you very much.

and this is my makefile
`CHAINPREFIX=/opt/miyoo
CROSS_COMPILE=$(CHAINPREFIX)/bin/arm-miyoo-linux-uclibcgnueabi-

CC = $(CROSS_COMPILE)gcc
CXX = $(CROSS_COMPILE)g++
SYSROOT := $(CHAINPREFIX)/arm-miyoo-linux-uclibcgnueabi/sysroot
SDL_CFLAGS := $(shell $(SYSROOT)/usr/bin/sdl-config --cflags)

OUTPUTNAME = gambatte-dms-pocketgo

DEFINES = -DHAVE_STDINT_H -DVERSION_POCKETGO
INCLUDES = -Isrc/gambatte_sdl -Ilibgambatte -Icommon -Iinclude -Ilibgambatte/include -Ilibgambatte/src $(SDL_CFLAGS)
OPT_FLAGS = -Ofast -fdata-sections -fdata-sections -fno-common -fno-PIC -flto
EXTRA_LDFLAGS = -lasound -lmodplugma -lmikmod -Wl,--as-needed -Wl,--gc-sections -flto -s

include common.mk
`

Implement "Scale3x+Sample.75x" scaling from OhBoy emulator

The "Scale3x+Sample.75x" scaling in the OhBoy emulator produces results that are far better than those produced by either the "1.5 Fast" or "1.5 Smooth" options in gambatte (look at the eye of the bird statue, or the girl's hair, for example, in the images below). It is based around the GPL Scale3x algorithm from http://www.scale2x.it/algorithm.html, an algorithm developed for AdvanceMAME that can upscale the image in such a way that removes jagged edges without making it blurry.

OhBoy Scale3x+Sample.75:
ohboy_Scale3x+Sample 75

Gambatte 1.5x Smooth:
gambatte_1 5x_Smooth

Gambatte 1.5x Fast:
gambatte_1 5x_Fast

According to the OhBoy documentation, it uses Scale3x to scale the image to 480x432, and then it uses simple pixel averaging to downscale to 240x216. The actual implementation in OhBoy, which starts at line 460 in https://github.com/hi-ban/ohboy/blob/master/main.c, appears a bit more clever than that, but I can't quite follow the code.

Decreasing Performance With Every Update on RG350

Hi,

I really enjoy your emulator on the RG350 IPS Handheld.

However, with every new version release, perfomance on my RG350 is getting worse.

This can be reproduced with Super Mario Land. On very old versions, the scrolling in stage 1 is smooth, On later versions, scrolling gets juddery.

Could you please look into that?

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.