libretro / beetle-bsnes-libretro Goto Github PK
View Code? Open in Web Editor NEWStandalone port of Mednafen bSNES to libretro, itself a fork of bsnes 0.59.
License: GNU General Public License v2.0
Standalone port of Mednafen bSNES to libretro, itself a fork of bsnes 0.59.
License: GNU General Public License v2.0
It currently compiles fine, but crashes when run. To fix this, do the following:
Edit Makefile
and add CFLAGS += -DIOS
to the iOS section.
Replace libretro-mednafen_snes/mednafen/snes/src/lib/libco/
with https://github.com/libretro/libretro-common/tree/master/libco
Put https://github.com/libretro/libretro-common/blob/master/include/retro_common_api.h and https://github.com/libretro/libretro-common/blob/master/include/libco.h to libretro-mednafen_snes/mednafen/snes/src/lib/libco/
Mednafen has a newer, faster module called snes_faust, which is actually under active development. It would be nice if there were a libretro core for it, instead of this slow, unmaintained bsnes-based one.
mednafen/mednafen.cpp:
temp = new char[4096];
vsnprintf(temp, 4096, format, ap);
MDFND_PrintError(temp);
free(temp);
This makes clang asan unhappy.
At least delete[] temp;
should be used, or probably better rewrite to:
char temp[4096];
vsnprintf(temp, sizeof(temp), format, ap);
MDFND_PrintError(temp);
Activating the latency reduction leads to a weird jumping of frames.
Sometimes frames are dropped sometimes completely different frames are added.
Best examples are Donkey Kong Country or Super Mario World.
I noticed that the emulator doesn't start (as part of Kodi's RetroPlayer work) because the call to MDFN_MakeFName()
with MDFNMKF_PALETTE
fails at https://github.com/libretro/beetle-bsnes-libretro/blob/master/mednafen/snes/interface.cpp#L63 because the implementation of MDFN_MakeFName()
at https://github.com/libretro/beetle-bsnes-libretro/blob/master/libretro.cpp#L520 does not handle MDFNMKF_PALETTE
as a type.
In the log I get
Loading xxxx.smc...
Using module: snes(Super Nintendo Entertainment System/Super Famicom)
MDFN_MakeFName: xxxx.srm
MDFN_MakeFName: xxxx.rtc
MDFN_MakeFName:
Loading custom palette from ""...
Error opening file: Invalid argument
The same issue applies to beetle-gba-libretro
.
The implementation of MDFN_MakeFName()
in https://github.com/libretro/mednafen-git/blob/master/src/general.cpp#L285 seems to be able to handle this case.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.