Linux & RetroArch i have some dunnos

Hi there again :smiley: i have a couple dunnos with retroarch

1 - Where is the “default” value of “system_dir” (BIOS / Firmware folder) i had read too many tutorials on internet, for use bios, and all says “put on the system directory of retroarch” , this should be “~./config/retroarch/system” ?

2 - Which BIOS file for which core are current supported, someone have a list with checksum included in MD5 ?

3 - Why when i run games with MAME (2000, 2003, 2010) this create folders on my home, with the follow names : “cfg” , “diff”, “nvram” .

How i can make the RetroArch create that folders on another places, or use “~/.mame” or “~/.config/retroarch/mame” ?

4 - How i can calibrate my gamepad for certain games of mame, specifically “San Francisco Rush” , “Cruis’n USA”, “Outrun”. because is too much sensitive when i press the analog or dpad ?

5 - PicoDrive can’t boot thought BIOS file like the “Genesis GX” ?

6 - Why too many games of Sega Master System can’t load achievements when i use “Genesis GX” core (with Hang-On Japanese Verified works) ?

7 - PicoDrive can’t emulate the Sega Master System Light Phaser ?

8 - why when i try to run some game with Reicast, ever terminate with “Bus error” ?

9 - In a future version of RetroArch can be included the “MicroEmulator” core ? that is a abandoned emulator of old Mobiles, Java Jar Games.

10 - The Sega Saturn emulator is normal, be slow ?

11 - Why when i run a game with another core, this replace the battery files (sav or srm) with the new core ?

i think the cores must use the same type of battery files, for share saved games between cores.

Thanks for read

change retroarch system directory. this will change it for mame2003, at least

  1. I’m not sure if there is a system directory by default. If so, it would be in ~/.config/RetroArch. If not, you can make one wherever you want. If there is a default location and you don’t like it, you can make it anywhere, just make sure you go to settings > directory and point your system/bios directory at it.

  2. you can look in the core info files (load the core but not any content, then go to main menu > information > core information) and it will list any BIOS images and whether they’re in the right location. If you open those files in a text editor, the checksums are listed, as well.

  3. see dankcushions response

  4. I think you can do it via a mame.ini file, but some MAME cores won’t save it when you re-map through the MAME interface, IIRC.

  5. dunno, probably not.

  6. not all cores support achievements, but at least one core for each system should.

  7. dunno, probably not.

  8. Reicast just doesn’t work with some games. When it works, it usually works well. When it doesn’t work, there’s not much you can do to change it.

  9. is it open source? if not, there’s pretty much no chance. If it is, it’s possible, but there are no plans for it currently.

  10. yes, both beetle-saturn and yabause are very slow.

It uses the same BIOS files as Genesis Plus for the CD system. bios_CD_U.bin/bios_CD_E.bin/bios_CD_J.bin. I don’t think it supports using a Master System / Game Gear BIOS file.

You should use Genesis Plus where possible because it’s more accurate and has more features, minus 32X emulation.

The problem is with “MAME 2010” ever create that folders inside home directory. well with “MAME 2014” i can’t use it, ever give me an “bus error” and close retroarch.

9 - Is it open source? if not, there’s pretty much no chance. If it is, it’s possible, but there are no plans for it currently.

Yes is OpenSource and looks like abandoned :v MicroEmulator

Can you run MAME 2014 through gdb?

Here the output

[ inukaze | 04-09-2017 | 04:57 pm ]
[~]$ gdb retroarch
GNU gdb (GDB) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-slackware-linux".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from retroarch...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/games/retroarch 
warning: File "/lib64/libthread_db-1.0.so" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
	add-auto-load-safe-path /lib64/libthread_db-1.0.so
line to your configuration file "/home/inukaze/.gdbinit".
To completely disable this security protection add
	set auto-load safe-path /
line to your configuration file "/home/inukaze/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
	info "(gdb)Auto-loading safe path"
warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
[New LWP 4290]
[INFO] Environ SET_PIXEL_FORMAT: RGB565.
[INFO] Redirigiendo partida guardada a "/media/Compartido/Videojuegos/Partidas/Emulador/Bateria/.srm".
[INFO] Redirigiendo guardado rĂĄpido a "/media/Compartido/Videojuegos/Partidas/Emulador/Estado/.state".
[INFO] Version of libretro API: 1
[INFO] Compiled against API: 1
[INFO] [Audio]: Set audio input rate to: 29970.03 Hz.
[INFO] Shader encontrado "/home/inukaze/.config/retroarch/shaders/16bits.cgp"
[INFO] Shader encontrado "/home/inukaze/.config/retroarch/shaders/16bpp.cgp"
[INFO] Shader encontrado "/home/inukaze/.config/retroarch/shaders/8bits.cgp"
[INFO] Shader encontrado "/home/inukaze/.config/retroarch/shaders/inu.glslp"
[INFO] Shader encontrado "/home/inukaze/.config/retroarch/shaders/pcsx_rearmed_libretro.so.glslp"
[INFO] Shader encontrado "/home/inukaze/.config/retroarch/shaders/retroarch.cgp"
[INFO] Shader encontrado "/home/inukaze/.config/retroarch/shaders/retroarch.glslp"
[INFO] [Video]: Video @ 1280x960
[INFO] [GL]: Found GL context: x
[INFO] [GL]: Detecting screen resolution 1024x768.
[INFO] [GLX]: X = 0, Y = 0, W = 1280, H = 960.
[INFO] [GLX]: Found swap function: glXSwapIntervalEXT.
[INFO] [GLX]: glXSwapIntervalEXT(1)
[INFO] [GL]: Vendor: NVIDIA Corporation, Renderer: GeForce 6200 TurboCache(TM)/PCIe/SSE2.
[INFO] [GL]: Version: 2.1.2 NVIDIA 304.135.
[INFO] [GL]: Using resolution 1024x704
[INFO] [GL]: Default shader backend found: glsl.
[INFO] [Shader driver]: Using Cg shader backend.
[INFO] [CG]: Vertex profile: vp40
[INFO] [CG]: Fragment profile: fp40
[INFO] [CG]: Loading Cg meta-shader: /home/inukaze/.config/retroarch/shaders/retroarch.cgp
[INFO] [CG]: Loading Cg shader: "/media/Compartido/Inukaze/LinuxHome/.config/retroarch/shaders/shaders_cg/xsal/shaders/2xsal.cg".
[INFO] [CG]: Loading Cg shader: "/media/Compartido/Inukaze/LinuxHome/.config/retroarch/shaders/shaders_cg/TV/gamma.cg".
[INFO] [CG]: Found semantic "POSITION" in prog #1.
[INFO] [CG]: Found semantic "TEXCOORD0" in prog #1.
[INFO] [CG]: Found semantic "POSITION" in prog #2.
[INFO] [CG]: Found semantic "TEXCOORD" in prog #2.
[INFO] [CG]: Found semantic "POSITION" in prog #24.
[INFO] [CG]: Found semantic "COLOR" in prog #24.
[INFO] [CG]: Found semantic "TEXCOORD0" in prog #24.
[INFO] [CG]: Found semantic "POSITION" in prog #23.
[INFO] [CG]: Found semantic "COLOR" in prog #23.
[INFO] [CG]: Found semantic "TEXCOORD0" in prog #23.
[INFO] [CG]: Found semantic "POSITION" in prog #22.
[INFO] [CG]: Found semantic "COLOR" in prog #22.
[INFO] [CG]: Found semantic "TEXCOORD0" in prog #22.
[INFO] [GL]: Using 4 textures.
[INFO] [GL]: Loaded 2 program(s).
[INFO] [GL]: Using GL_RGB565 for texture uploads.
[INFO] [GL]: Creating FBO 0 @ 512x512
[INFO] [GL]: Creating FBO 1 @ 512x512
[INFO] [GL]: Creating feedback FBO 2 @ 512x512
[INFO] [udev]: Plugged pad: Microsoft X-Box 360 pad (1118:654) on port #0.
[INFO] [udev]: Pad #0 (/dev/input/event5) supports force feedback.
[INFO] [udev]: Pad #0 (/dev/input/event5) supports 16 force feedback effects.
[INFO] [Autoconf]: 191 profiles found.
[INFO] [Autoconf]: selected configuration: /home/inukaze/.config/retroarch/autoconfig/udev/Microsoft_X-Box_360_pad.cfg
[INFO] [udev]: Plugged pad: LUKEN USB Control (4933:20481) on port #1.
[INFO] [udev]: Pad #1 (/dev/input/event6) supports 0 force feedback effects.
[INFO] [Autoconf]: 191 profiles found.
[INFO] [Joypad]: Found joypad driver: "udev".
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Autoconf]: selected configuration: /home/inukaze/.config/retroarch/autoconfig/udev/LUKEN USB Control.cfg
[INFO] [X11]: Suspending screensaver (X11, xdg-screensaver).
[New LWP 4320]
[INFO] [ALSA]: Using signed 16-bit format.
[INFO] [ALSA]: Period size: 768 frames
[INFO] [ALSA]: Buffer size: 3072 frames
[INFO] [ALSA]: Can pause: yes.
[INFO] [Menu]: Found menu display driver: "menu_display_gl".
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[WARN] Input device ID 5 is unknown to this libretro implementation. Using RETRO_DEVICE_JOYPAD.
[INFO] No se guardarĂĄ la SRAM.
[INFO] Loading history file: [/home/inukaze/.config/retroarch/content_history.lpl].
[INFO] Loading history file: [/home/inukaze/.config/retroarch/content_favorites.lpl].
[INFO] Loading history file: [/home/inukaze/.config/retroarch/content_music_history.lpl].
[INFO] Loading history file: [/home/inukaze/.config/retroarch/content_video_history.lpl].
[INFO] Loading history file: [/home/inukaze/.config/retroarch/content_image_history.lpl].
[INFO] [GL]: VSync => on
[INFO] [GLX]: glXSwapIntervalEXT(1)
[INFO] [GL]: VSync => on
[INFO] [GLX]: glXSwapIntervalEXT(1)

Thread 1 "retroarch" received signal SIGBUS, Bus error.
0x00007ffff7df589f in memset () from /lib64/ld-linux-x86-64.so.2
(gdb)

That’s a known issue: https://github.com/libretro/mame2010-libretro/issues/14

Type ‘bt full’ after the crash in gdb, it’ll give some useful backtrace

Do you have the right ROM, BIOS & DEVICES (like qsound.zip) set for MAME 2014? Search for 0.159 version or newer (mostly)

Yes i had all files i can need Here the output

[ inukaze | 16-09-2017 | 04:28 pm ]
[~]$ gdb retroarch
GNU gdb (GDB) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-slackware-linux".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from retroarch...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/games/retroarch 
warning: File "/lib64/libthread_db-1.0.so" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
	add-auto-load-safe-path /lib64/libthread_db-1.0.so
line to your configuration file "/home/inukaze/.gdbinit".
To completely disable this security protection add
	set auto-load safe-path /
line to your configuration file "/home/inukaze/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
	info "(gdb)Auto-loading safe path"
warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
[New LWP 14621]
[INFO] Environ SET_PIXEL_FORMAT: RGB565.
[INFO] Redirigiendo partida guardada a "/media/Compartido/Videojuegos/Partidas/Emulador/Bateria/.srm".
[INFO] Redirigiendo guardado rĂĄpido a "/media/Compartido/Videojuegos/Partidas/Emulador/Estado/.state".
[INFO] Version of libretro API: 1
[INFO] Compiled against API: 1
[INFO] [Audio]: Set audio input rate to: 29970.03 Hz.
[INFO] Shader encontrado "/home/inukaze/.config/retroarch/shaders/16bits.cgp"
[INFO] Shader encontrado "/home/inukaze/.config/retroarch/shaders/16bpp.cgp"
[INFO] Shader encontrado "/home/inukaze/.config/retroarch/shaders/8bits.cgp"
[INFO] Shader encontrado "/home/inukaze/.config/retroarch/shaders/inu.glslp"
[INFO] Shader encontrado "/home/inukaze/.config/retroarch/shaders/pcsx_rearmed_libretro.so.glslp"
[INFO] Shader encontrado "/home/inukaze/.config/retroarch/shaders/retroarch.cgp"
[INFO] Shader encontrado "/home/inukaze/.config/retroarch/shaders/retroarch.glslp"
[INFO] [Video]: Video @ 1280x960
[INFO] [GL]: Found GL context: x
[INFO] [GL]: Detecting screen resolution 1024x768.
[INFO] [GLX]: X = 0, Y = 0, W = 1280, H = 960.
[INFO] [GLX]: Found swap function: glXSwapIntervalEXT.
[INFO] [GLX]: glXSwapIntervalEXT(1)
[INFO] [GL]: Vendor: NVIDIA Corporation, Renderer: GeForce 6200 TurboCache(TM)/PCIe/SSE2.
[INFO] [GL]: Version: 2.1.2 NVIDIA 304.135.
[INFO] [GL]: Using resolution 1024x704
[INFO] [GL]: Default shader backend found: glsl.
[INFO] [Shader driver]: Using Cg shader backend.
[INFO] [CG]: Vertex profile: vp40
[INFO] [CG]: Fragment profile: fp40
[INFO] [CG]: Loading Cg meta-shader: /home/inukaze/.config/retroarch/shaders/retroarch.cgp
[INFO] [CG]: Loading Cg shader: "/media/Compartido/Inukaze/LinuxHome/.config/retroarch/shaders/shaders_cg/xsal/shaders/2xsal.cg".
[INFO] [CG]: Loading Cg shader: "/media/Compartido/Inukaze/LinuxHome/.config/retroarch/shaders/shaders_cg/TV/gamma.cg".
[INFO] [CG]: Found semantic "POSITION" in prog #1.
[INFO] [CG]: Found semantic "TEXCOORD0" in prog #1.
[INFO] [CG]: Found semantic "POSITION" in prog #2.
[INFO] [CG]: Found semantic "TEXCOORD" in prog #2.
[INFO] [CG]: Found semantic "POSITION" in prog #24.
[INFO] [CG]: Found semantic "COLOR" in prog #24.
[INFO] [CG]: Found semantic "TEXCOORD0" in prog #24.
[INFO] [CG]: Found semantic "POSITION" in prog #23.
[INFO] [CG]: Found semantic "COLOR" in prog #23.
[INFO] [CG]: Found semantic "TEXCOORD0" in prog #23.
[INFO] [CG]: Found semantic "POSITION" in prog #22.
[INFO] [CG]: Found semantic "COLOR" in prog #22.
[INFO] [CG]: Found semantic "TEXCOORD0" in prog #22.
[INFO] [GL]: Using 4 textures.
[INFO] [GL]: Loaded 2 program(s).
[INFO] [GL]: Using GL_RGB565 for texture uploads.
[INFO] [GL]: Creating FBO 0 @ 512x512
[INFO] [GL]: Creating FBO 1 @ 512x512
[INFO] [GL]: Creating feedback FBO 2 @ 512x512
[INFO] [udev]: Plugged pad: Microsoft X-Box 360 pad (1118:654) on port #0.
[INFO] [Autoconf]: 191 profiles found.
[INFO] [udev]: Pad #0 (/dev/input/event5) supports force feedback.
[INFO] [udev]: Pad #0 (/dev/input/event5) supports 16 force feedback effects.
[INFO] [Autoconf]: selected configuration: /home/inukaze/.config/retroarch/autoconfig/udev/Microsoft_X-Box_360_pad.cfg
[INFO] [udev]: Plugged pad: LUKEN USB Control (4933:20481) on port #1.
[INFO] [udev]: Pad #1 (/dev/input/event6) supports 0 force feedback effects.
[INFO] [Autoconf]: 191 profiles found.
[INFO] [Joypad]: Found joypad driver: "udev".
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Autoconf]: selected configuration: /home/inukaze/.config/retroarch/autoconfig/udev/LUKEN USB Control.cfg
[INFO] [X11]: Suspending screensaver (X11, xdg-screensaver).
[New LWP 14651]
[INFO] [ALSA]: Using signed 16-bit format.
[INFO] [ALSA]: Period size: 768 frames
[INFO] [ALSA]: Buffer size: 3072 frames
[INFO] [ALSA]: Can pause: yes.
[INFO] [Menu]: Found menu display driver: "menu_display_gl".
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[WARN] Input device ID 5 is unknown to this libretro implementation. Using RETRO_DEVICE_JOYPAD.
[INFO] No se guardarĂĄ la SRAM.
[INFO] Loading history file: [/home/inukaze/.config/retroarch/content_history.lpl].
[INFO] Loading history file: [/home/inukaze/.config/retroarch/content_favorites.lpl].
[INFO] Loading history file: [/home/inukaze/.config/retroarch/content_music_history.lpl].
[INFO] Loading history file: [/home/inukaze/.config/retroarch/content_video_history.lpl].
[INFO] Loading history file: [/home/inukaze/.config/retroarch/content_image_history.lpl].
[INFO] [GL]: VSync => on
[INFO] [GLX]: glXSwapIntervalEXT(1)
[INFO] [GL]: VSync => on
[INFO] [GLX]: glXSwapIntervalEXT(1)

Thread 1 "retroarch" received signal SIGBUS, Bus error.
0x00007ffff7df589f in memset () from /lib64/ld-linux-x86-64.so.2
(gdb) bt full
#0  0x00007ffff7df589f in memset () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
#1  0x00007ffff7ddeef9 in _dl_map_object_from_fd () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
#2  0x00007ffff7de08a6 in _dl_map_object () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
#3  0x00007ffff7ded21a in dl_open_worker () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
#4  0x00007ffff7de8224 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
#5  0x00007ffff7deca49 in _dl_open () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
#6  0x00007ffff0cafef9 in dlopen_doit () from /lib64/libdl.so.2
No symbol table info available.
#7  0x00007ffff7de8224 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
#8  0x00007ffff0cb0561 in _dlerror_run () from /lib64/libdl.so.2
No symbol table info available.
#9  0x00007ffff0caff91 in dlopen@@GLIBC_2.2.5 () from /lib64/libdl.so.2
No symbol table info available.
#10 0x000000000045a91c in ?? ()
No symbol table info available.
#11 0x000000000041cee4 in ?? ()
No symbol table info available.
#12 0x000000000041cf1f in ?? ()
No symbol table info available.
#13 0x000000000042a156 in ?? ()
No symbol table info available.
#14 0x00000000004eb470 in ?? ()
No symbol table info available.
#15 0x00000000004e9b4d in ?? ()
No symbol table info available.
#16 0x000000000051a65d in ?? ()
No symbol table info available.
#17 0x00000000004d8dbf in ?? ()
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#18 0x0000000000416881 in ?? ()
No symbol table info available.
#19 0x00000000004198e5 in ?? ()
No symbol table info available.
#20 0x0000000000414350 in ?? ()
No symbol table info available.
#21 0x00007ffff006f350 in __libc_start_main () from /lib64/libc.so.6
No symbol table info available.
#22 0x0000000000411a79 in ?? ()
No symbol table info available.
(gdb)