Code Monkey home page Code Monkey logo

beetle-pce-fast-libretro's People

Contributors

albertofustinoni avatar alcaro avatar aliaspider avatar andres-asm avatar bananarama203 avatar bslenul avatar claudiuslollarius avatar disastermo avatar ficoos avatar ggrtk avatar heuripedes avatar hizzlekizzle avatar hunterk avatar inactive123 avatar jdgleaver avatar kivutar avatar libretroadmin avatar lioncash avatar negativeexponent avatar oggom avatar pinumbernumber avatar rtissera avatar sergiobenrocha2 avatar tatsuya79 avatar themaister avatar toadking avatar vanfanel avatar webgeek1234 avatar westonlast avatar yoshisuga 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

Watchers

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

beetle-pce-fast-libretro's Issues

Kaze_no_Densetsu_Xanadu_Taikenban not working?

I can't seem to get this to work for the life of me. Does anyone else have this issue? I have the ISO and CUE made sure they are both correct and grabbed the Japanese syscard3.pce and moved it to the BIOS folder yet can't get it to work. I asked on RetroPie subreddit and couldn't get an answer so wondering if it is just a general issue that I just didn't know about.

OutRun - Road glitches after stage 3

Out Run (Japan)-191116-163107

After stage 3 in OutRun the road completely glitches out. The car and roadside object sprites still show properly but the road stays like this for the most part until the end of the game. This bug is apparent on both this core and the SuperGrafx core.

LibNX - Screen Ratio Problem

Issue:

Mednafen PCE-Fast (or PCE-SGX, the mainline alternative), upon sequential ROM loads, will stretch from the pre-determined screen ratio (1:1 PAR) to a different wider display output despite using the same display settings with no game overrides in place.

Steps to reproduce:

  1. Load a game using PCE-Fast, while using a screen display ratio of "1:1 PAR" or "Config".
  2. Load another game using PCE-Fast, using either of the same display ratios.

This will result in the screen being stretched by default, unless the user manipulates the screen rendering options (scanline overscan compensation, via "Initial Scanline" and "Last Scanline" parameters) from the core's options.

Tested on:

RetroArch: 1.7.5 (LibNX version)

Notes:

There is a workaround, by loading the same/similar compatible ROMs, but alternating between PCE-Fast and PCE-SGX, depending on the core used directly beforehand, to return to expected behavior. The steps to reproduce above, however, remain applicable.

This only applies to the LibNX version of RetroArch for Nintendo Switch, and is not a core issue acknowledged on other platforms (I.E. x86_64, ARM, etc.). This has been tested using Homebrew Launcher as a system application, meaning RetroArch has a total ~400MB available RAM to use. This issue has been noted since before the official RetroArch for Nintendo Switch release (formerly known as "RetroNX").

Update core to 1.23.0

Mednafen was recently updated with several corrections of this emulator and it would be nice to include them to improve those small errors. I don't know if some have already been applied, but since the core only reflects that it is in 0.9.38.7 Fast, they supposedly were not added.

After 0.9.38.7 this is what they changed:

  • PCE, PSX, PCE_FAST: Avoid UB by biasing uintptr_t values instead of pointers directly in the CPU core.
  • PCE, PCE_FAST: Added a missing sound emulation variable to save states.
  • PCE_FAST: Fixed fubared mouse emulation.

As always, thank you very much for the effort and this is only to remember that it is pending to update the core.

IMG images fail to load

This is on Lakka 2.2.1's build (x86_64). The IMGs are recognized by the database but don't boot when selected. Just a black screen. ISOs and CHD work fine.

Crackling audio in some games, not present in standalone Mednafen

There's a an audio problem with some games in the beetle-pce core vs standalone mednafen.
Audio in games like Space Harrier or Out Run has very noticeable crackling: it's VERY noticeable on Space Harrier's tittle screen music.
-It's NOT related to high-CPU usage, as this happens on X86 and ARM, with a very low CPU usage.
-Tried different drivers for output and resampling and problem persists.
-Tried increasing buffer size and problem persists.
-Tried disabling audio sync and problem persists.

My guess is that these games don't refresh screen each ~16ms as most other PC Engine games do, so this causes audio problems because of how libretro/RA expects the emu to refresh screen and generate audio.

CHD support for PCE Fast

This is a follow-up to a previous bounty.

All I ask is that someone adds CHD support to the Mednafen PCE Fast.

I won't be posting a bounty to add CHD support to the Mednafen SGX core. There weren't any Supergrafx CD games, so there isn't any point. I imagine that the cores are similar enough in their handling of the CD that it wouldn't be very difficult to add it to the SGX core anyway.

This will have a bounty of $15.

EDIT: I seem to have problems creating a bounty for this one. Hang in there while I sort this out.
EDIT2: Nevermind. I created the bounty.

[RPI2] Compatibility issue?

Hi there,

Just to give you an heads-up. I've been used to rely on this core to emulate the fantastic PC Engine machine and games. As I was always playing more or less the same games (with no issues whatsoever) I was surprised when I couldn't get 1941 to work. I got a black screen at launch every time whatever version of this game I'm trying to launch. The funny thing is that it works flawlessly with the beetle-supergrafx-libretro core! As RPI2 is way more punchy than RPI1 I stick to this core as it seems compat' is better/higher.

If you want me to test with other games please let me know.
Cheers,

TS

Savestates not working on PSTV, PCE CD game crashes on load

I played the CD game Lords of Thunder and it worked. I tried to make a savestate and it crashed and now whenever I try to load the game again it crashes instantly.

Non CD games load fine but crash if attempting to save state. I looked in the savestates folder and there are no PCE saves.

Edit: This actually seems to only happen on a PSTV, savestates work for non-CD games on Vita but I did not try using a savestate on the CD game as I did not want the hassle of potentially breaking it.

Attempting to use a savestate on a PSTV in any PC Engine game immediately crashes the game. I can attach a core dump if it will help.

[PS Vita] Sound corruption after Going in Menu/Suspend state

From the forum:

On the PS Vita, this core is having issues coming back from suspend state or entering the menu to save state, etc.

I installed the Mednafen PCE Fast core, and I got Dungeon Explorer II to run. It works fine, but if I put my Vita to sleep or press the home button while in game, then return to it, the game will continue but the sound becomes a screechy mess. If I save/load state, the sound is still ruined. Another user was having the same issue with Castlevania: Rondo of Blood, so it doesn't seem to be game-specific.

Those being CD games is that about this change that happens in real time?
I don't know about Vita and other ways to code this.

Uncentered signal gets centered

Just adding here a small limitation I noticed with the video rewrite.

It seems there is only 1 case when that happens: Final Blaster introduction (after pressing start on title screen).
The game sends some small pictures (100 pixels width or something) off-centered; on the left of the screen then right.
They get centered with the current code and I don't know how to fix that.

Those small width signals are a pain that forced me to define a fixed width for each display mode.
Some developers coded their smaller pictures into a blank signal, others sent them directly, Final Blaster ones did that unique off-centered thing.

Screen Offset a Few Pixels Down

There was a more detailed report of this on the old Mednafen-PCE-Fast repo issues page. I figured I'd add this here again since it is still an issue.

Here are comparison screenshots at 3x native resolution between stand alone Mednafen PCE-Fast and Beetle:

mednafenpcefast

beetle

I'm using pce_initial_scanline = "4" and pce_last_scanline = "235" in Beetle for comparison, since it's the same as stand alone Mednafen's defaults.

This also affects the SuperGrafx core.

Black Bars No Matter What

retroarch 2016-08-16 12-49-00

Most of the time, the menus in games, I can get to stretch to the full screen area. But in game they always have black bars. I could have sworn this didn't happen a few days ago.

Graphical corruption in Pop'n Magic

The beginning of Pop'n Magic (CD game) introduction shows a messed up picture.
It doesn't happen in Mednafen stand-alone pce.fast (tested 0.9.33.x / 0.9.38.5 / 0.9.38.6).

I didn't find anything about this issue in Mednafen history but saw a reference about Ootake emulator: http://retro-replay.com/ootake-1-51-released/
Something related to "Timing of CD-ROM access processing".

[Android - Run Ahead] CD Images not loading with Second Instance Run Ahead

CD Images are not loading in the latest build of Beetle PCE Fast (7bbbdf1). RetroArch just hangs when trying to load a *.cue file. The same *.cue file worked fine previously (last tried couple of months ago, can't recall the actual version of the core since I needed to update/reinstall all cores due to the 64Bit switch in Android).

  • Tried both 64bit and 32bit versions of RetroArch
  • Tried vulkan and gl video drivers
  • BIOS (syscard3) is present

The same core can run PC Engine games (HuCards) without issues. The problem is just affecting CD games.

Any additional info needed, just let me know.

CD Image with external WAV audio crashes

It happens since July commits.
Don't have nightlies archive to tell when exactly.

Tested with several cue+bin+ogg games that are working with older version.
Win7 x64, nothing relevant in the log.

[PCEngine CD] Extra memory not exposed

From https://db-electronics.ca/wiki/wikis/consoles/turbografx-16/memory-map/#CD-ROM:

The CD-ROM appears to add an additional 64KB of RAM that should be exposed either through RETRO_MEMORY_SYSTEM_RAM or RETRO_ENVIRONMENT_SET_MEMORY_MAPS. There doesn't currently appear to be any way to access it.

Additionally, RETRO_MEMORY_SYSTEM_RAM currently returns 32KB of data, but there's only really 8KB of RAM on the base system. The 24KB of data after the first 8KB is always filled with FFs.

RETRO_MEMORY_SAVE_RAM does return 2KB of data - presumably the 2KB of battery-backed RAM on the CD-ROM peripheral, as it's only populated when playing CD-ROM games.

It seems like RETRO_MEMORY_SYSTEM_RAM should be modified to only return 8KB, and the additional 64KB for the CD-ROM peripheral should be exposed through the RETRO_ENVIRONMENT_SET_MEMORY_MAPS, but it might make sense to just have RETRO_MEMORY_SYSTEM_RAM return 72KB of data (the 8KB from the base system followed by the 64KB from the CD-ROM peripheral).

Feature Request for option to disable soft reset of Select+Run Button

RetroArch is defaulted to Select+Start on the Nes Classic/Snes Classic, and there is sometimes a conflict with going to RetroArch without triggering an accidental soft reset. This would be a very nice addition for those who run into this conflict, being that Select+Start trigger a soft reset on the real PCE Systems. Thanks in advance for anything done to help this conflict:) Thousands of people use RetroArch, now, with this default Option. So, it would be hopefully easier for an addition to compensate for the conflict.

Pressing Opposing and / or Multiple Directional Inputs causes glitched behavior.

Description

Sent here as per libretro/RetroArch#6573 (comment) Tagging @twinaphex since he assisted with the other cores.

When simultaenously pressing, quickly alternating between, and / or holding both left and right (or up and down in some games) directions at the same time, unusual behavior can be observed. For example, in "New Adventure Island", if both Up and Down are held at the same time, Master Higgins will use a different animation than normal and if performed in the air, he'll hover indefinitely. In "Die Hard (Japan)", the player can get stuck spinning in place indefinitely if they press any 3 directions at once, or press directions at a fast enough speed to register as being pressed simultaneously. The latter example will softlock the player, preventing any further progress.

There could be many more games that exhibit similar symptoms when pressing opposing or multiple directional inputs, but I can't test every game.

Standalone emulators like FCEUX and several other RetroArch cores have an option disabled by default labeled Allow Opposing Directions. I feel it'd be best if this core adopted this as well.


Expected behavior

Pressing left and right / up and down simultaneously is not physically possible except on a keyboard (unless the d-pad has been remapped to buttons) and shouldn't be allowed, at least by default. It's also banned universally on speedrun.com. Standalone emulators like FCEUX and several other RetroArch cores have an option disabled by default labeled Allow Opposing Directions. I feel it'd be best if this core adopted this as well.


Actual behavior

Video of issue in Die Hard: https://streamable.com/i61vi

See also:
2018-04-24--171844_1600x900
2018-04-24--171839_1600x900


Steps to reproduce the bug

  • Load New Adventure Island or Die Hard (Japan)
  • For New Adventure Island, press and hold both Up and Down
    • For Die Hard (Japan), press and hold any 3 directions.
  • Observe

Bisect Results

Did not bisect. Pretty sure issue has been present since Day 1.


Version/Commit

  • RetroArch Version: 1.7.2 24b694d
  • beetle-pce-fast core commit version: 11f7aaa

Environment information

  • OS: Debian 9 (Stretch) Stable x86_64
  • Compiler: gcc 3.6.0 64-bit

Problems with Turbo

It appears sometime in Jan a turbo feature was added (afffa41). However the feature seems to assume that you would never remap your button I and button II. In my case, I have remapped my buttons such that what I now use as button II is the same as toggling turbo for button II. This leads to...obvious problems. I can see no way to remap the turbo buttons. I also can't seem to turn the feature off. The code "appears" to need a setting called "Turbo_Toggling" assigned to "enabled" to turn on, but I can't find any reference to a Turbo_Toggling setting in my files, suggesting there may be an error in checking whether the feature should be enabled/disabled.

Exile bugs out (pun intended) when killing ants in the first action area.

Tested with a TruRip verified ISO (no Redump available for the US version). This problem occurs on both beetle-pce-fast and beetle-supergrafx, as well as on standalone mednafen when using pce_fast module. It plays correctly when using the standard pce module on mednafen. This was tested on both a Raspberry Pi 3 running RetroPie 4.2 and on Windows 10 running Mednafen 0.9.46, both using a syscard3.pce bios with the correct md5 checksum.

Here is a video I captured of how to replicate the bug (the exact moment it happens is at 2:07 and onwards): https://www.twitch.tv/videos/166253912

TurboTap not supported

TurboTap is a controller splitter for TurboGrafx-16 that allows plugging in 5 controllers. Multiplayer in Bomberman seems to require it, so it would be nice to support this.

Mednafen accurate pce module

It would be nice if the "accurate" Mednafen pce module was ported to libretro so it could be an option for faster hardware alongside the existing pce-fast module

[Cho Aniki] Broken game behavior with RetroPie and RetroArch

I just decided to load this PCE-CD game using this core and the game has broken behavior that I have not seen in emulators such as Ootake.

In the game you collect these floating guys that follow your character like an option in Gradius that shoots bullets alongside the player character.

In this core that does not seem to work and according to one post I found in the official Mednafen forums, here:
https://forum.fobby.net/index.php?t=msg&goto=4263&#msg_4263

It seems to be related to the Multitap emulation according to that but it seems like the core does not emulate the multitap so I am at a bit of a loss of what is wrong.

[Wii U] Sound issue with chd format

Using Wii U 2017-12-21 nightly, altough chd support has never worked properly on pce_fast_libretro Wii U.

I did try Castlevania Rondo of Blood bin+cue converted to chd with chdman, and while the game plays just fine the audio is distorted like a cracking sound looping, in other games like Valis there's no audio tracks, only in-game sound fx.

I though it could be a problem with the conversion, but tested the same chd in RA PC (same 2017-12-21 build) and the audio plays correctly (only small artifacts).

I wonder if it's a endianness issue, it's a pretty common problem on Wii U since it use big endian.

Problem building on Raspberry Pi

libretro-common/rthreads/rthreads.o: In function `scond_wait_timeout':
/home/pi/RetroPie-Setup/tmp/build/lr-mednafen-pce-fast/libretro-common/rthreads/rthreads.c:415: undefined reference to `clock_gettime'

needs the addition of -lrt - I'll submit a pull request

Line 242 is always black

In core options "last scanline = 241" is the last displayed.
242 is black while you could get a valid signal for it.

I could display it with a hack in mednafen files but perhaps there's something cleaner to do with the framebuffer?

unable to load cue+iso+flac

This cuesheet fails to load:

# cat Space\ Fantasy\ Zone\ \(J\).cue
FILE Track01.flac WAVE
  TRACK 01 AUDIO
    INDEX 01 00:00:00
FILE Track02.iso BINARY
  TRACK 02 MODE1/2048
    PREGAP 00:03:00
    INDEX 01 00:00:00
FILE Track03.flac WAVE
  TRACK 03 AUDIO
    PREGAP 00:02:00
    INDEX 01 00:00:00
FILE Track04.flac WAVE
  TRACK 04 AUDIO
    PREGAP 00:00:00
    INDEX 01 00:00:00
FILE Track05.flac WAVE
  TRACK 05 AUDIO
    PREGAP 00:00:00
    INDEX 01 00:00:00
FILE Track06.flac WAVE
  TRACK 06 AUDIO
    PREGAP 00:00:00
    INDEX 01 00:00:00
FILE Track07.flac WAVE
  TRACK 07 AUDIO
    PREGAP 00:00:00
    INDEX 01 00:00:00
FILE Track08.flac WAVE
  TRACK 08 AUDIO
    PREGAP 00:00:00
    INDEX 01 00:00:00
FILE Track09.flac WAVE
  TRACK 09 AUDIO
    PREGAP 00:00:00
    INDEX 01 00:00:00
FILE Track10.flac WAVE
  TRACK 10 AUDIO
    PREGAP 00:00:00
    INDEX 01 00:00:00

# retroarch Space\ Fantasy\ Zone\ \(J\).cue
RetroArch: rarch_log_libretro: [libretro INFO] :: Frontend supports RGB565 - will use that instead of XRGB1555.
RetroArch: rarch_log_libretro: [libretro INFO] :: PCE CD Audio settings changed.
RetroArch: rarch_log_libretro: [libretro INFO] :: Loading Space Fantasy Zone (J).cue...


RetroArch [ERROR] :: rarch_log_libretro :: [libretro ERROR] :: Unsupported audio track file format: Track01.flac

RetroArch [ERROR] :: rarch_log_libretro :: [libretro ERROR] :: Unsupported audio track file format: Track01.flac

RetroArch [ERROR] :: rarch_log_libretro :: [libretro ERROR] :: Error opening CD.
RetroArch [ERROR] :: load_content :: Failed to load content.
RetroArch: rarch_log_libretro: [libretro INFO] :: [Mednafen PCE Fast]: Samples / Frame: -nan
RetroArch: rarch_log_libretro: [libretro INFO] :: [Mednafen PCE Fast]: Estimated FPS: -nan

The same cuesheet loads just fine in vanilla mednafen.

Tested on linux with the build from libretro-beetle-pce-fast_0.9.36.1+r59610ubuntu14.04.1_i386.deb.

CC Error: 05 25 00

Errors when trying different files; Some are bin/cue, others are iso/cue. They all give me:

CC Error: 05 25 00

Repeating in the runcommand.log. I've searched everywhere and can't seem to find an answer =(

WAVE file type name does not work

Using WAVE or WAV in the file type name as follow will not working, see the backtrace.

FILE "Ginga Fukei Densetsu Sapphire (Japan) (Reprint) (Track 01).wav" WAVE
  TRACK 01 AUDIO
    INDEX 01 00:00:00
terminate called after throwing an instance of 'int'
Aborted (core dumped)

Program received signal SIGABRT, Aborted.
0x00007ffff25d4c37 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56	../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) 
(gdb) bt full
#0  0x00007ffff25d4c37 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
        resultvar = 0
        pid = 32199
        selftid = 32199
#1  0x00007ffff25d8028 in __GI_abort () at abort.c:89
        save_stage = 2
        act = {__sigaction_handler = {sa_handler = 0x7fffffff86e0, sa_sigaction = 0x7fffffff86e0}, sa_mask = {__val = {2, 8618888, 140737351947559, 140733193388037, 0, 
              140737256975336, 140737259392304, 140737256975336, 8618888, 9151072, 140737351976149, 140737352185488, 9145376, 1, 140737352188048, 9145376}}, sa_flags = -31656, 
          sa_restorer = 0x7fffffff7f60}
        sigs = {__val = {32, 0 <repeats 15 times>}}
#2  0x00007ffff22f2c1d in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
No symbol table info available.
#3  0x00007ffff22f0ca6 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
No symbol table info available.
#4  0x00007ffff22f0cf1 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
No symbol table info available.
#5  0x00007ffff22f0f08 in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
No symbol table info available.
#6  0x00007fffebf53ace in CDAFReader_Vorbis::CDAFReader_Vorbis (this=0x8b9eb0, fp=0x8b8a40) at mednafen/cdrom/CDAFReader_Vorbis.cpp:87
        cb = {read_func = 0x7fffebf538f2 <iov_read_func(void*, size_t, size_t, void*)>, seek_func = 0x7fffebf53951 <iov_seek_func(void*, int64_t, int)>, 
          close_func = 0x7fffebf53991 <iov_close_func(void*)>, tell_func = 0x7fffebf539c3 <iov_tell_func(void*)>}
#7  0x00007fffebf53c94 in CDAFR_Vorbis_Open (fp=0x8b8a40) at mednafen/cdrom/CDAFReader_Vorbis.cpp:128
No locals.
#8  0x00007fffebf538f0 in CDAFR_Open (fp=0x8b8a40) at mednafen/cdrom/CDAFReader.cpp:50
No locals.
#9  0x00007fffebf48bad in CDAccess_Image::ImageOpen (this=0x8acc40, 
    path="/home/xxxxx/Games/ROMs/PC Engine/Ginga Fukei Densetsu Sapphire (Japan) (Reprint)/tmp_wav/Ginga Fukei Densetsu Sapphire (Japan) (Reprint).cue", image_memcache=false)
    at mednafen/cdrom/CDAccess_Image.cpp:689
        efn = "/home/xxxxx/Games/ROMs/PC Engine/Ginga Fukei Densetsu Sapphire (Japan) (Reprint)/tmp_wav/Ginga Fukei Densetsu Sapphire (Japan) (Reprint) (Track 01).wav"
        argcount = 2
        max_args = 4
        TmpTrack = {LBA = 0, DIFormat = 0, subq_control = 0 '\000', pregap = 0, pregap_dv = 0, postgap = 0, index = {0 <repeats 100 times>}, sectors = 0, fp = 0x8b8a40, 
          FirstFileInstance = true, RawAudioMSBFirst = false, FileOffset = 0, SubchannelMode = 0, LastSamplePos = 0, AReader = 0x0}
        RunningLBA = 0
        __PRETTY_FUNCTION__ = "bool CDAccess_Image::ImageOpen(const string&, bool)"
        cmdbuf = "FILE"
        args = {"Ginga Fukei Densetsu Sapphire (Japan) (Reprint) (Track 01).wav", "WAVE", "", ""}
        IsTOC = false
        fp = {<Stream> = {_vptr.Stream = 0x7fffec19bc50 <vtable for MemoryStream+16>}, 
          data_buffer = 0x8b8ca0 "FILE \"Ginga Fukei Densetsu Sapphire (Japan) (Reprint) (Track 01).wav\" WAVE\r\n  TRACK 01 AUDIO\r\n    INDEX 01 00:00:00\r\nFILE \"Ginga Fukei Densetsu Sapphire (Japan) (Reprint) (Track 02).bin\" BINARY\r\n  TRA"..., data_buffer_size = 2371, data_buffer_alloced = 2371, position = 75}
        linebuf = "FILE \"Ginga Fukei Densetsu Sapphire (Japan) (Reprint) (Track 01).wav\" WAVE"
        active_track = -1
        AutoTrackInc = 1
        file_ext = ".cue"
        toc_streamcache = std::map with 0 elements
        file_base = "Ginga Fukei Densetsu Sapphire (Japan) (Reprint)"
        LastIndex = -225062464
        FileOffset = 140737488324496
#10 0x00007fffebf4a499 in CDAccess_Image::CDAccess_Image (this=0x8acc40, 
    path="/home/xxxxx/Games/ROMs/PC Engine/Ginga Fukei Densetsu Sapphire (Japan) (Reprint)/tmp_wav/Ginga Fukei Densetsu Sapphire (Japan) (Reprint).cue", image_memcache=false)
    at mednafen/cdrom/CDAccess_Image.cpp:1017
No locals.
#11 0x00007fffebf46d7f in CDAccess_Open (
    path="/home/xxxxx/Games/ROMs/PC Engine/Ginga Fukei Densetsu Sapphire (Japan) (Reprint)/tmp_wav/Ginga Fukei Densetsu Sapphire (Japan) (Reprint).cue", image_memcache=false)
    at mednafen/cdrom/CDAccess.cpp:47
        ret = 0x0
#12 0x00007fffebf544d3 in CDIF_Open (
    path="/home/xxxxx/Games/ROMs/PC Engine/Ginga Fukei Densetsu Sapphire (Japan) (Reprint)/tmp_wav/Ginga Fukei Densetsu Sapphire (Japan) (Reprint).cue", image_memcache=false)
    at mednafen/cdrom/cdromif.cpp:270
        cda = 0x7ffff2353861 <std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)+33>
#13 0x00007fffebf62ea3 in MDFNI_LoadCD (
    devicename=0x8ac8c0 "/home/xxxxx/Games/ROMs/PC Engine/Ginga Fukei Densetsu Sapphire (Japan) (Reprint)/tmp_wav/Ginga Fukei Densetsu Sapphire (Japan) (Reprint).cue")
    at libretro.cpp:941
        cdif = 0x0
        ret = false
#14 0x00007fffebf6331e in MDFNI_LoadGame (
    name=0x8ac8c0 "/home/xxxxx/Games/ROMs/PC Engine/Ginga Fukei Densetsu Sapphire (Japan) (Reprint)/tmp_wav/Ginga Fukei Densetsu Sapphire (Japan) (Reprint).cue")
    at libretro.cpp:1005
        valid_iae = std::vector of length 0, capacity 0
        GameFile = 0x0
        curexts = 0x2
#15 0x00007fffebf65306 in retro_load_game (info=0x8a6fe0) at libretro.cpp:1551
        desc = {{port = 0, device = 1, index = 0, id = 6, description = 0x7fffebf85105 "D-Pad Left"}, {port = 0, device = 1, index = 0, id = 4, 
            description = 0x7fffebf85110 "D-Pad Up"}, {port = 0, device = 1, index = 0, id = 5, description = 0x7fffebf85119 "D-Pad Down"}, {port = 0, device = 1, index = 0, 
            id = 7, description = 0x7fffebf85124 "D-Pad Right"}, {port = 0, device = 1, index = 0, id = 0, description = 0x7fffebf85130 "II"}, {port = 0, device = 1, index = 0, 
            id = 8, description = 0x7fffebf85133 "I"}, {port = 0, device = 1, index = 0, id = 9, description = 0x7fffebf85135 "IV"}, {port = 0, device = 1, index = 0, id = 1, 
            description = 0x7fffebf85138 "III"}, {port = 0, device = 1, index = 0, id = 10, description = 0x7fffebf8513c "V"}, {port = 0, device = 1, index = 0, id = 11, 
            description = 0x7fffebf8513e "VI"}, {port = 0, device = 1, index = 0, id = 12, description = 0x7fffebf85141 "Mode Switch"}, {port = 0, device = 1, index = 0, id = 2, 
            description = 0x7fffebf8514d "Select"}, {port = 0, device = 1, index = 0, id = 3, description = 0x7fffebf85154 "Run"}, {port = 1, device = 1, index = 0, id = 6, 
            description = 0x7fffebf85105 "D-Pad Left"}, {port = 1, device = 1, index = 0, id = 4, description = 0x7fffebf85110 "D-Pad Up"}, {port = 1, device = 1, index = 0, 
            id = 5, description = 0x7fffebf85119 "D-Pad Down"}, {port = 1, device = 1, index = 0, id = 7, description = 0x7fffebf85124 "D-Pad Right"}, {port = 1, device = 1, 
            index = 0, id = 0, description = 0x7fffebf85130 "II"}, {port = 1, device = 1, index = 0, id = 8, description = 0x7fffebf85133 "I"}, {port = 1, device = 1, index = 0, 
            id = 9, description = 0x7fffebf85135 "IV"}, {port = 1, device = 1, index = 0, id = 1, description = 0x7fffebf85138 "III"}, {port = 1, device = 1, index = 0, id = 10, 
            description = 0x7fffebf8513c "V"}, {port = 1, device = 1, index = 0, id = 11, description = 0x7fffebf8513e "VI"}, {port = 1, device = 1, index = 0, id = 12, 
            description = 0x7fffebf85141 "Mode Switch"}, {port = 1, device = 1, index = 0, id = 2, description = 0x7fffebf8514d "Select"}, {port = 1, device = 1, index = 0, 
            id = 3, description = 0x7fffebf85154 "Run"}, {port = 2, device = 1, index = 0, id = 6, description = 0x7fffebf85105 "D-Pad Left"}, {port = 2, device = 1, index = 0, 
            id = 4, description = 0x7fffebf85110 "D-Pad Up"}, {port = 2, device = 1, index = 0, id = 5, description = 0x7fffebf85119 "D-Pad Down"}, {port = 2, device = 1, 
            index = 0, id = 7, description = 0x7fffebf85124 "D-Pad Right"}, {port = 2, device = 1, index = 0, id = 0, description = 0x7fffebf85130 "II"}, {port = 2, device = 1, 
            index = 0, id = 8, description = 0x7fffebf85133 "I"}, {port = 2, device = 1, index = 0, id = 9, description = 0x7fffebf85135 "IV"}, {port = 2, device = 1, index = 0, 
            id = 1, description = 0x7fffebf85138 "III"}, {port = 2, device = 1, index = 0, id = 10, description = 0x7fffebf8513c "V"}, {port = 2, device = 1, index = 0, id = 11, 
            description = 0x7fffebf8513e "VI"}, {port = 2, device = 1, index = 0, id = 12, description = 0x7fffebf85141 "Mode Switch"}, {port = 2, device = 1, index = 0, id = 2, 
            description = 0x7fffebf8514d "Select"}, {port = 2, device = 1, index = 0, id = 3, description = 0x7fffebf85154 "Run"}, {port = 3, device = 1, index = 0, id = 6, 
            description = 0x7fffebf85105 "D-Pad Left"}, {port = 3, device = 1, index = 0, id = 4, description = 0x7fffebf85110 "D-Pad Up"}, {port = 3, device = 1, index = 0, 
            id = 5, description = 0x7fffebf85119 "D-Pad Down"}, {port = 3, device = 1, index = 0, id = 7, description = 0x7fffebf85124 "D-Pad Right"}, {port = 3, device = 1, 
            index = 0, id = 0, description = 0x7fffebf85130 "II"}, {port = 3, device = 1, index = 0, id = 8, description = 0x7fffebf85133 "I"}, {port = 3, device = 1, index = 0, 
            id = 9, description = 0x7fffebf85135 "IV"}, {port = 3, device = 1, index = 0, id = 1, description = 0x7fffebf85138 "III"}, {port = 3, device = 1, index = 0, id = 10, 
            description = 0x7fffebf8513c "V"}, {port = 3, device = 1, index = 0, id = 11, description = 0x7fffebf8513e "VI"}, {port = 3, device = 1, index = 0, id = 12, 
            description = 0x7fffebf85141 "Mode Switch"}, {port = 3, device = 1, index = 0, id = 2, description = 0x7fffebf8514d "Select"}, {port = 3, device = 1, index = 0, 
            id = 3, description = 0x7fffebf85154 "Run"}, {port = 4, device = 1, index = 0, id = 6, description = 0x7fffebf85105 "D-Pad Left"}, {port = 4, device = 1, index = 0, 
            id = 4, description = 0x7fffebf85110 "D-Pad Up"}, {port = 4, device = 1, index = 0, id = 5, description = 0x7fffebf85119 "D-Pad Down"}, {port = 4, device = 1, 
            index = 0, id = 7, description = 0x7fffebf85124 "D-Pad Right"}, {port = 4, device = 1, index = 0, id = 0, description = 0x7fffebf85130 "II"}, {port = 4, device = 1, 
            index = 0, id = 8, description = 0x7fffebf85133 "I"}, {port = 4, device = 1, index = 0, id = 9, description = 0x7fffebf85135 "IV"}, {port = 4, device = 1, index = 0, 
            id = 1, description = 0x7fffebf85138 "III"}, {port = 4, device = 1, index = 0, id = 10, description = 0x7fffebf8513c "V"}, {port = 4, device = 1, index = 0, id = 11, 
            description = 0x7fffebf8513e "VI"}, {port = 4, device = 1, index = 0, id = 12, description = 0x7fffebf85141 "Mode Switch"}, {port = 4, device = 1, index = 0, id = 2, 
            description = 0x7fffebf8514d "Select"}, {port = 4, device = 1, index = 0, id = 3, description = 0x7fffebf85154 "Run"}, {port = 0, device = 0, index = 0, id = 0, 
            description = 0x0}}
#16 0x0000000000415c79 in core_load_game (load_info=load_info@entry=0x7fffffff9680) at core_impl.c:289
No locals.
#17 0x0000000000428299 in content_file_load (info=info@entry=0x8a6fe0, content=content@entry=0x8ac690, content_ctx=content_ctx@entry=0x7fffffffbf30, 
    error_string=error_string@entry=0x7fffffffbf00, special=0x0) at tasks/task_content.c:561
        i = <optimized out>
        load_info = {info = 0x8a6fe0, content = 0x8ac690, special = 0x0}
        msg = "\000\276\377\377\377\177\000\000\241\317^\362\377\177\000\000\340\002\243\366\377\177\000\000\300ѕ\362\377\177", '\000' <repeats 18 times>, "\004\200\255\373\004\000\000\000\340\253\225\362\377\177\000\000\300ѕ\362\377\177\000\000\214\000\000\000\000\000\000\000З\377\377\377\177\000\000\016\230\377\377\377\177\000\000з\377\377\377\177\000\000h [libretro INFO] :: \177", '\000' <repeats 18 times>, "\004\200\255\373\377\177\000\000\300ѕ\362\377\177\000\000@\235\377\377\004\000\000\000\207(\255\373\000\000\000\000@s\204", '\000' <repeats 13 times>, "\060\270\377\377\377\177\000\000h [INFO"...
        additional_path_allocs = 0x8ac960
#18 0x0000000000428f30 in content_file_init (error_string=0x7fffffffbf00, content_ctx=0x7fffffffbf30) at tasks/task_content.c:736
        i = <optimized out>
        info = 0x8a6fe0
        content = 0x8ac690
        ret = true
        special = <optimized out>
#19 content_init () at tasks/task_content.c:1404
        content_ctx = {subsystem = {data = 0x0, size = 0}, valid_extensions = 0x8ac670 "pce|cue|ccd", directory_cache = 0x8ac650 "/tmp", 
          directory_system = 0x8d9980 "/home/xxxxx/Games/RetroArch/system", history_list_enable = true, block_extract = false, need_fullpath = true, 
          set_supports_no_game_enable = true, temporary_content = 0x8ac420}
        ret = true
        error_string = 0x0
        sys_info = 0x851500 <runloop_system>
        settings = <optimized out>
#20 0x000000000041dfbe in event_init_content () at command.c:1336
No locals.
#21 command_event_init_core (data=0x839010 <current_core_type>) at command.c:1401
        info = {env = 0x4489c0 <rarch_environment_cb>}
        settings = 0x7fffecaeb010
#22 command_event (cmd=cmd@entry=CMD_EVENT_CORE_INIT, data=data@entry=0x839010 <current_core_type>) at command.c:2229
        boolean = false
#23 0x00000000004183f6 in retroarch_main_init (argc=4, argv=argv@entry=0x7fffffffdda8) at retroarch.c:1075
        init_failed = false
#24 0x0000000000427a63 in content_load (info=0x7fffffffdda8) at tasks/task_content.c:276
        i = <optimized out>
        retval = true
        rarch_argc = 0
        rarch_argv_ptr = 0x7fffffffdda8
        rarch_argv = {0x0 <repeats 32 times>}
        argv_copy = {0x0 <repeats 32 times>}
        rarch_argc_ptr = 0x7fffffffdc90
        wrap_args = 0x8a3910
#25 task_load_content (content_info=content_info@entry=0x7fffffffdc90, launched_from_menu=launched_from_menu@entry=false, mode=mode@entry=CONTENT_MODE_LOAD_FROM_CLI, 
    error_string=error_string@entry=0x7fffffffdbc0, content_ctx=0x7fffffffdbf0) at tasks/task_content.c:807
        name = "\000\311\377\377\377\177\000\000l>\336\367\377\177\000\000\070\223\226\364\377\177\000\000\222y\023O\000\000\000\000\b\000\000\000\000\000\000\000J\000\000\000\000\000\000\000\300\223\342\367\377\177\000\000\346G\336\367\377\177\000\000XM\275\364\377\177\000\000\320\311\377\377\377\177\000\000\020\017\242\366\377\177\000\000\340\312\377\377\377\177\000\000\320\033\242\366\377\177\000\000\346M<\001\000\000\000\000\320\312\377\377\377\177\000\000\325|\336\367\377\177\000\000\000\000\000\000\000\000\000\000\210\226\342\367\377\177\000\000\370Y\374\367\377\177\000\000\335M@\000\000\000\000\000\220.\242\366\377\177\000\000p1@\000\000\000\000\000\000\000\000\000\001\000\000\000\210\000\000\000\001\000\000\000\320\311\377\377\377\177\000\000"...
        msg = "\000\000\000\000\000\000\000\000\210\226\342\367\377\177\000\000\001", '\000' <repeats 15 times>, "\001\000\000\000\377\177\000\000\310\341\377\367\377\177\000\000\310L\275\364\377\177\000\000\325|\336\367\377\177\000\000\001\000\000\000\025\000\000\000\370\065\343\367\377\177\000\000\000\000\000\000\000\000\000\000 \345\377\367\377\177\000\000\340\312\377\377\377\177\000\000\320\312\377\377\377\177\000\000\222y\023O\000\000\000\000\335M@\000\000\000\000\000\377\377\377\377\000\000\000\000$\000\000\000\000\000\000\000\320\033\242\366\377\177\000\000\370Y\374\367\377\177\000\000\221\064\000\000\000\200\377\377(\000\000\000\000\000\000\000\201\064\000\000\000\200\377\377\003", '\000' <repeats 15 times>...
#26 0x0000000000428853 in task_push_content_load_default (core_path=core_path@entry=0x0, fullpath=fullpath@entry=0x0, content_info=content_info@entry=0x7fffffffdc90, 
    type=type@entry=CORE_TYPE_PLAIN, mode=mode@entry=CONTENT_MODE_LOAD_FROM_CLI, cb=cb@entry=0x0, user_data=user_data@entry=0x0) at tasks/task_content.c:1223
        content_ctx = {subsystem = {data = 0x0, size = 0}, valid_extensions = 0x0, directory_cache = 0x0, directory_system = 0x0, history_list_enable = false, 
          block_extract = false, need_fullpath = false, set_supports_no_game_enable = false, temporary_content = 0x4}
        loading_from_menu = <optimized out>
        error_string = 0x0
        settings = <optimized out>
#27 0x0000000000414e64 in rarch_main (argc=4, argv=0x7fffffffdda8, data=0x0) at frontend/frontend.c:113
        info = {argc = 4, argv = 0x7fffffffdda8, args = 0x0, environ_get = 0x413e50 <frontend_linux_get_env>}
        args = 0x0
#28 0x00007ffff25bff45 in __libc_start_main (main=0x412320 <main>, argc=4, argv=0x7fffffffdda8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, 
    stack_end=0x7fffffffdd98) at libc-start.c:287
        result = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0, 7376506995942151229, 4268839, 140737488346528, 0, 0, -7376506994964769731, -7376479817422941123}, mask_was_saved = 0}}, 
          priv = {pad = {0x0, 0x0, 0x528100 <__libc_csu_init>, 0x7fffffffdda8}, data = {prev = 0x0, cleanup = 0x0, canceltype = 5406976}}}
        not_first_call = <optimized out>
#29 0x0000000000412350 in _start ()
No symbol table info available.

WAVE is the default file type name for *.wav files, so it should work, see http://wiki.hydrogenaud.io/index.php?title=Cue_sheet for reference.

I was using BINARY as workaround:

FILE "Ginga Fukei Densetsu Sapphire (Japan) (Reprint) (Track 01).wav" BINARY
  TRACK 01 AUDIO
    INDEX 01 00:00:00

Maybe this is why some users complains about "lack" of bin+wav+cue support.

Turbo Toggles won't turn off

I noticed when I accidentally set the jump button to turbo - on in Bonk's Adventure that it wouldn't turn off.

PCECD iso with mp3

I am a recalbox user and realized that Mega CD games do not work iso with mp3, freeing up more space on the microsd card, which would be a great implementation.

[Suggestion] Controls Mapping

The Majority of libretro cores of platforms that has 2 buttons use the keys "BA", meanwhile this libretro core uses "BY".

Is it possible to keep "button II" as "B" and change the "button I" to "A" to keep some consistency inside Retroarch environment?

Would be nice as well the implementation of the turbo speed switch for example:
Turbo Switch for "Button II" = "button Y"
Turbo Switch for "Button I" = "button X"
Each time the button it's pressed increases one turbo level until reset to level1, with 3 levels of turbo.
level1 (no turbo) -> level2 (average speed turbo) -> level3 (fast speed turbo) -> reset to level1 -> etc.

Any plans for implementation of gamepads with 3 and 6 buttons for games alike: Barunba (3buttons), Street Fighter II' - Champion Edition (6buttons), Strip Fighter II (6buttons) ?

Cheat Support??

I know I only play one game for the system, but it would be great if I could use cheat codes for it. Thanks!

Recent commit broke MODE1/2048 data tracks compatibility

Hi,

I have this Akumajou Dracula english patched that has MODE1/2048 format for data tracks. I have been using it with the mednafen core for years now.
Since this exact commit: 7aaa4ed
...it hangs in the "just a momment" syscard message, and sends
CC Error: 03 11 05
constantly to the console.

Maybe MODE1/2048 compatibility was disabled on mainline mednafen and the core inherited that with that cd-rom code backporting?
Games using MODE1/2352 for data tracks work well.

Any translations of this game available online are MODE1/2048, and in fact applying the translation patch legally available here: http://www.romhacking.net/translations/846/
will result in MODE1/2048 data tracks.

CHD - Uncorrectable data

CHD files are unreadable. When pressing run to load the CD a notification stating "Uncorrectable data at sector xxxx" where xxxx is the start of the data track.

Decompressing the CHD file will allow it to play and the beetle-supergrafx-libretro core plays the CHD without problems.

Turbo option is broken.

Hey, turbo seems to not work properly (tested on W10, on a Linux VM and on a SNESC):

  • With the Turbo ON/OFF Toggle option set to ON, pressing X/Y pops a notification saying turbo is enabled for I and II but turbo doesn't work.
  • With the Turbo ON/OFF Toggle option set to OFF, you still get the notifications when pressing X/Y which shouldn't happen! And turbo still doesn't work.

I bisected already, looks like the bug started with this commit: 7e92d19.

The previous commit (614b6c3) works as intended: option ON you get the notifications and turbo is actually working when you press X/Y, option OFF X/Y doesn't do anything.

edit:
And btw, it's not only the toggle option that is not working, if I set P1 Turbo I and P1 Turbo II to ON, same results, it doesn't work.

Also, just tested with the non-fast version of the core and everything seems to work fine in this one.

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.