Mednafen PC-FX

I made this core work on Windows, but I’m unable to make it work with Android. I’m using the exact same files on Windows and Android, but can’t make it work on the second. All games gives me black screen, every time. The files are correct and the names, I’m pretty sure, are all right

I’ve opened a ticket on github about 3 or 4 months, with no response of the developers.

This core looks a lot abandoned, even the description is (or was) wrong on the github… :frowning:

The first thing to check would be the cue sheets. Windows file systems are case-insensitive, so many cue sheets have references to files with no regard to case. So, when you move those files to a case-sensitive file system, the references no longer work.

Yeah, I’ve already tried that, didn’t worked… :frowning:

Can you post a log of it failing to load?

Don’t know how to do it on a non-rooted device. Is this possible?

go to settings > user interface > show advanced options ON, then settings > logging > logging verbosity ON, frontend logging level DEBUG, core logging level DEBUG, log to file ON.

It will dump the log file into a ‘log’ directory in your user-accessible RetroArch directory (or wherever you assign it in settings > directory > system event logs)

2 Likes

Ok, sorry for the long delay, I hadn’t free space to try the game, now I’m ok.

Here’s the log:

RetroArch 1.7.7 (Git 8c17f12)
=== Build =======================================
Capabilities: NEON VFPv3 VFPv4 
Built: May  8 2019
Version: 1.7.7
Git: 8c17f12
=================================================
Environ SET_PIXEL_FORMAT: RGB565.
Redirecting save file to "/storage/emulated/0/RetroArch/saves/.srm".
Redirecting savestate to "/storage/emulated/0/RetroArch/states/.state".
Version of libretro API: 1
Compiled against API: 1
[Audio]: Set audio input rate to: 30000.00 Hz.
[Video]: Video @ 960x720
[Video]: Starting threaded video driver ...
Android EGL: GLES version = 2.
[EGL] Falling back to eglGetDisplay
[EGL]: EGL version: 1.4
[GL]: Found GL context: android
[GL]: Detecting screen resolution 0x0.
[EGL]: Current context: 0xe90ad240.
[GL]: Vendor: Qualcomm, Renderer: Adreno (TM) 540.
[GL]: Version: OpenGL ES 3.2 [email protected] ([email protected], I1fbdd7a9d4) (Date:02/28/19).
[GL]: Using resolution 1440x2560
[GL]: Default shader backend found: glsl.
[Shader driver]: Using GLSL shader backend.
[GL]: Stock GLSL shaders will be used.
[GLSL]: Found GLSL vertex shader.
[GLSL]: Found GLSL fragment shader.
[GLSL]: Linking GLSL program.
[GLSL]: Found GLSL vertex shader.
[GLSL]: Found GLSL fragment shader.
[GLSL]: Linking GLSL program.
[GLSL]: Found GLSL vertex shader.
[GLSL]: Found GLSL fragment shader.
[GLSL]: Linking GLSL program.
[GL]: Using 4 textures.
[GL]: Loaded 1 program(s).
[Joypad]: Found joypad driver: "android".
sdk version: 28
Set engine_handle_dpad to 'Get Axis Value' (for reading extra analog sticks)[Video]: Found display server: android
[OpenSL]: Requested audio latency: 128 ms.[OpenSL]: Setting audio latency: Block size = 960, Blocks = 26, Total = 24960 ...
[Menu]: Found menu display driver: "gl".
[Font]: Using font rendering backend: stb-unicode.
[Font]: Using font rendering backend: stb-unicode.
[LED]: LED driver = 'null' 0xd3520bd8
[MIDI]: Initializing ...
[MIDI]: Input disabled.
[MIDI]: Output disabled.
[MIDI]: Initialized "null" driver.
Disconnecting device from port 6.
Disconnecting device from port 7.
SRAM will not be saved.
Loading history file: [/data/user/0/com.retroarch/content_history.lpl].
Loading history file: [/data/user/0/com.retroarch/content_favorites.lpl].
Loading history file: [/data/user/0/com.retroarch/content_music_history.lpl].
Loading history file: [/data/user/0/com.retroarch/content_image_history.lpl].
ConfigurationChanged: 0xe78230e0
[Android]: Resizing (1440 x 2560) -> (2560 x 1440).
Device model: (Moto Z (2)
).
Using new lookupdevice name: STMicroelectronics Lenovo GamePad
device vendor id: 1155
device product id: 22352
[Autoconf]: 156 profiles found.
[Autoconf]: no profiles found for Android Gamepad (1155/22352). Using fallback
Using content: /storage/emulated/0/ROMs/PCFX/Chip Chan Kick.chd.
arg #0: retroarch
arg #1: /storage/emulated/0/ROMs/PCFX/Chip Chan Kick.chd
arg #2: -s
arg #3: /storage/emulated/0/RetroArch/saves
arg #4: -S
arg #5: /storage/emulated/0/RetroArch/states
arg #6: -c
arg #7: /storage/emulated/0/Android/data/com.retroarch/files/retroarch.cfg
arg #8: -v
Content ran for a total of: 00 hours, 00 minutes, 00 seconds.
Unloading game..
Unloading core..
Unloading core symbols..
Threaded video stats: Frames pushed: 214, Frames dropped: 0.
Set config file to : /storage/emulated/0/Android/data/com.retroarch/files/retroarch.cfg
RetroArch 1.7.7 (Git 8c17f12)
Redirecting save file to "/storage/emulated/0/RetroArch/saves/Chip Chan Kick.srm".
Redirecting savestate to "/storage/emulated/0/RetroArch/states/Chip Chan Kick.state".
=== Build =======================================
Capabilities: NEON VFPv3 VFPv4 
Built: May  8 2019
Version: 1.7.7
Git: 8c17f12
=================================================
Loading dynamic libretro core from: "/data/data/com.retroarch/cores/mednafen_pcfx_libretro_android.so"
[Overrides] no core-specific overrides found at /storage/emulated/0/RetroArch/config/Mednafen PC-FX/Mednafen PC-FX.cfg.
[Overrides] no content-dir-specific overrides found at /storage/emulated/0/RetroArch/config/Mednafen PC-FX/PCFX.cfg.
[Overrides] no game-specific overrides found at /storage/emulated/0/RetroArch/config/Mednafen PC-FX/Chip Chan Kick.cfg.
[Shaders]: preset directory: /data/user/0/com.retroarch/shaders/presets
Environ UNSUPPORTED (#52).
Environ SET_VARIABLES.
Environ SET_CONTROLLER_INFO.
Controller port: 1
   PCFX Joypad (ID: 1)
   PCFX Mouse (ID: 2)
Controller port: 2
   PCFX Joypad (ID: 1)
   PCFX Mouse (ID: 2)
Core requested VFS version >= v1, providing v3
[Remaps]: remap directory: /storage/emulated/0/RetroArch/config/remaps
[Remaps]: no game-specific remap found at /storage/emulated/0/RetroArch/config/remaps/Mednafen PC-FX/Chip Chan Kick.rmp.
[Remaps]: no content-dir-specific remap found at /storage/emulated/0/RetroArch/config/remaps/Mednafen PC-FX/PCFX.rmp.
[Remaps]: no core-specific remap found at /storage/emulated/0/RetroArch/config/remaps/Mednafen PC-FX/Mednafen PC-FX.rmp.
Redirecting save file to "/storage/emulated/0/RetroArch/saves/Chip Chan Kick.srm".
Redirecting savestate to "/storage/emulated/0/RetroArch/states/Chip Chan Kick.state".
Environ GET_LOG_INTERFACE.
Environ SYSTEM_DIRECTORY: "/storage/emulated/0/RetroArch/system".
Environ GET_PERF_INTERFACE.
Environ PERFORMANCE_LEVEL: 15.
Content loading skipped. Implementation will load it on its own.
CRC32: 0xf593dd1f .
Environ SET_INPUT_DESCRIPTORS:
	RetroPad, User 1, Button "B (bottom)" => "II"
	RetroPad, User 1, Button "Y (left)" => "IV"
	RetroPad, User 1, Button "Select" => "Select"
	RetroPad, User 1, Button "Start" => "Run"
	RetroPad, User 1, Button "D-Pad Up" => "D-Pad Up"
	RetroPad, User 1, Button "D-Pad Down" => "D-Pad Down"
	RetroPad, User 1, Button "D-Pad Left" => "D-Pad Left"
	RetroPad, User 1, Button "D-Pad Right" => "D-Pad Right"
	RetroPad, User 1, Button "A (right)" => "I"
	RetroPad, User 1, Button "X (up)" => "III"
	RetroPad, User 1, Button "L" => "V"
	RetroPad, User 1, Button "R" => "VI"
	RetroPad, User 1, Button "L2" => "MODE 1 (Switch)"
	RetroPad, User 1, Button "R2" => "MODE 2 (Switch)"
	RetroPad, User 2, Button "B (bottom)" => "II"
	RetroPad, User 2, Button "Y (left)" => "IV"
	RetroPad, User 2, Button "Select" => "Select"
	RetroPad, User 2, Button "Start" => "Run"
	RetroPad, User 2, Button "D-Pad Up" => "D-Pad Up"
	RetroPad, User 2, Button "D-Pad Down" => "D-Pad Down"
	RetroPad, User 2, Button "D-Pad Left" => "D-Pad Left"
	RetroPad, User 2, Button "D-Pad Right" => "D-Pad Right"
	RetroPad, User 2, Button "A (right)" => "I"
	RetroPad, User 2, Button "X (up)" => "III"
	RetroPad, User 2, Button "L" => "V"
	RetroPad, User 2, Button "R" => "VI"
	RetroPad, User 2, Button "L2" => "MODE 1 (Switch)"
	RetroPad, User 2, Button "R2" => "MODE 2 (Switch)"
Environ SET_PIXEL_FORMAT: XRGB8888.
Environ GET_OVERSCAN: 0
Environ GET_VARIABLE pcfx_high_dotclock_width:
	1024
Environ GET_VARIABLE pcfx_nospritelimit:
	disabled
Environ GET_VARIABLE pcfx_initial_scanline:
	4
Environ GET_VARIABLE pcfx_last_scanline:
	235
Environ GET_VARIABLE pcfx_resamp_quality:
	3
Environ GET_VARIABLE pcfx_suppress_channel_reset_clicks:
	disabled
Environ GET_VARIABLE pcfx_emulate_buggy_codec:
	disabled
Environ GET_VARIABLE pcfx_rainbow_chromaip:
	disabled
Environ GET_VARIABLE pcfx_mouse_sensitivity:
	1.25
Loading /storage/emulated/0/ROMs/PCFX/Chip Chan Kick.chd...

chd_load '/storage/emulated/0/ROMs/PCFX/Chip Chan Kick.chd' hunkbytes=19584
CD 1 Layout:

Track  1, LBA:      0  AUDIO

Track  2, LBA:   5128  DATA

Track  3, LBA:  66911  AUDIO

Track  4, LBA:  68734  AUDIO

Track  5, LBA:  73420  AUDIO

Track  6, LBA:  78046  AUDIO

Track  7, LBA:  83671  AUDIO

Track  8, LBA: 103981  AUDIO

Track  9, LBA: 123333  AUDIO

Track 10, LBA: 139735  AUDIO

Track 11, LBA: 143207  AUDIO

Track 12, LBA: 145857  AUDIO

Track 13, LBA: 158775  AUDIO

Track 14, LBA: 177806  AUDIO

Track 15, LBA: 194978  AUDIO

Track 16, LBA: 195667  AUDIO

Track 17, LBA: 197608  AUDIO

Track 18, LBA: 198320  AUDIO

Track 19, LBA: 203445  AUDIO

Track 20, LBA: 221182  AUDIO

Track 21, LBA: 237322  AUDIO

Track 22, LBA: 256767  AUDIO

Track 23, LBA: 257949  AUDIO

Leadout: 274921



Using module: pcfx


CD Layout MD5:   0x751620d3b4fe0cc24cd09d04a8d9b9e2

MDFN_MakeFName: /storage/emulated/0/RetroArch/system/pcfx.rom
V810 Emulation Mode: Accurate

Emulated CD-ROM drive speed: 2x

(null)
Skipping SRAM load..
Version of libretro API: 1
Compiled against API: 1
[Audio]: Set audio input rate to: 44100.04 Hz.
[Video]: Video @ 927x696
[Video]: Starting threaded video driver ...
Android EGL: GLES version = 2.
[EGL] Falling back to eglGetDisplay
[EGL]: EGL version: 1.4
[GL]: Found GL context: android
[GL]: Detecting screen resolution 0x0.
[EGL]: Current context: 0xd2a654c0.
[GL]: Vendor: Qualcomm, Renderer: Adreno (TM) 540.
[GL]: Version: OpenGL ES 3.2 [email protected] ([email protected], I1fbdd7a9d4) (Date:02/28/19).
[GL]: Using resolution 2560x1440
[GL]: Default shader backend found: glsl.
[Shader driver]: Using GLSL shader backend.
[GL]: Stock GLSL shaders will be used.
[GLSL]: Found GLSL vertex shader.
[GLSL]: Found GLSL fragment shader.
[GLSL]: Linking GLSL program.
[GLSL]: Found GLSL vertex shader.
[GLSL]: Found GLSL fragment shader.
[GLSL]: Linking GLSL program.
[GLSL]: Found GLSL vertex shader.
[GLSL]: Found GLSL fragment shader.
[GLSL]: Linking GLSL program.
[GL]: Using 4 textures.
[GL]: Loaded 1 program(s).
[Joypad]: Found joypad driver: "android".
sdk version: 28
[RCHEEVOS]: testing Genesis (6Mb padding)
Set engine_handle_dpad to 'Get Axis Value' (for reading extra analog sticks)[Video]: Found display server: android
[OpenSL]: Requested audio latency: 128 ms.[OpenSL]: Setting audio latency: Block size = 960, Blocks = 26, Total = 24960 ...
[Font]: Using font rendering backend: stb-unicode.
[Font]: Using font rendering backend: stb-unicode.
[LED]: LED driver = 'null' 0xd3520bd8
[MIDI]: Initializing ...
[MIDI]: Input disabled.
[MIDI]: Output disabled.
[MIDI]: Initialized "null" driver.
 Port 1: gamepad
 Port 2: gamepad
Disconnecting device from port 6.
Disconnecting device from port 7.
Loading history file: [/data/user/0/com.retroarch/content_history.lpl].
Loading history file: [/data/user/0/com.retroarch/content_favorites.lpl].
Loading history file: [/data/user/0/com.retroarch/content_music_history.lpl].
Loading history file: [/data/user/0/com.retroarch/content_image_history.lpl].
Device model: (Moto Z (2)
).
Using new lookupdevice name: STMicroelectronics Lenovo GamePad
device vendor id: 1155
device product id: 22352
OwlResampler.cpp debug info:

 Phases: 77, Output rate: 44099.999985, 3125 77

 Desired maximum rate error: 0.0000009000, Actual rate error: 0.0000000003

 Initial number of coefficients per phase: 1157

 Initial nominal cutoff frequency: 17640.000000

 Adjusted number of coefficients per phase: 1160

 Adjusted nominal cutoff frequency: 17652.713559

 Impulse response table memory usage: 358512 bytes

Environ SET_GEOMETRY.
SET_GEOMETRY: 256x232, aspect: 1.333.
[Autoconf]: 156 profiles found.
[Autoconf]: no profiles found for Android Gamepad (1155/22352). Using fallback
[RCHEEVOS]: got game id 0
[RCHEEVOS]: testing NES (discards header)
[RCHEEVOS]: testing Generic (plain content)
[RCHEEVOS]: got game id 0
[RCHEEVOS]: testing Generic (filename)
[RCHEEVOS]: got game id 0
[RCHEEVOS]: this game doesn't feature achievements
[RCHEEVOS]: Load task finished
[config] Saved new config to "/storage/emulated/0/Android/data/com.retroarch/files/retroarch.cfg".
Saving RAM type #0 to "/storage/emulated/0/RetroArch/saves/Chip Chan Kick.srm".
Saved successfully to "/storage/emulated/0/RetroArch/saves/Chip Chan Kick.srm".
Content ran for a total of: 00 hours, 00 minutes, 04 seconds.
Unloading game..
Unloading core..
[Mednafen PC-FX]: Samples / Frame: 737.02545
[Mednafen PC-FX]: Estimated FPS: 59.83511
Unloading core symbols..
Saved core options file to "/storage/emulated/0/Android/data/com.retroarch/files/retroarch-core-options.cfg"
Threaded video stats: Frames pushed: 477, Frames dropped: 4.
android_app_destroy
Result: 32512
Pause: 0xe78230e0