Aloshi / EmulationStation

A flexible emulator front-end supporting keyboardless navigation and custom system themes.
MIT License
2.07k stars 905 forks source link

Roms don't launch on Windows version #554

Open XombyCraft opened 8 years ago

XombyCraft commented 8 years ago
  1. run ES
  2. select game (SNES game for testing, no bios needed)
  3. ES "blackscreens" then blips (minimize/maximize) then back to ES menu system.

IF: I use the launch command at a CMD prompt (i.e.: terminal, for you linux-oriented folk), the game fires right up. IF: I bypass ES in favor of running the rom via RetroArch directly, game fires right up.

Also tried running ES as an Administrator, which made no difference. ES_win32_latest (DL on 1/23/16) + retroarch 1.3.0x86_64

pertinent log contents: lvl2: Attempting to launch game... lvl2: getting volume as 38 ( from float 0.38) lvl2: "C:\Users\MY USERNAME.emulationstation\systems\retroarch\retroarch.exe" -L "C:\Users\MY USERNAME.emulationstation\systems\retroarch\cores\snes9x_libretro.dll" "C:\Users\MY USERNAME.emulationstation\roms\snes\7th Saga, The (USA).sfc" lvl1: ...launch terminated with nonzero exit code 1! lvl2: Creating surface... #here it's back to ES lvl2: Created window successfully. #ES menu, presumably lvl2: EmulationStation cleanly shutting down. #I exited ES

The problem is that, while quoting the intial retroarch.exe portion of the command works fine, as the "arguments" must be quoted as well, however there's an issue with usernames with a space in them.

Especially if you use the %HOMEPATH% notation.

The only solution I've found is to uninstall ES and use the "PORTABLE" version out of a folder on C: that does not contain spaces. This is just a work-around, as this is a verifiable flaw in the ES command launching.

finalsliver commented 8 years ago

If it helps at all here is a copy paste of my own snes section of the es_systems.cfg

<name>snes</name>
<fullname>Super Nintendo Entertainment System</fullname>
<path>roms\snes</path>
<extension>.smc .sfc .SMC .SFC</extension>
<command>systems\retroarch\retroarch.exe -L "systems\retroarch\cores\snes9x_libretro.dll" "%ROM_RAW%"</command>
<platform>snes</platform>
<theme>snes</theme>    

This is what determines how ES launches its systems/roms.

For clarification my 'systems' and 'roms' folders are on the same level as the "emulationstation.exe"

While this may not help, I felt better trying to chime in since ES activity seems to be low nowadays.

AucardThe3rd commented 7 years ago

i have the same issue, here is a section of my cfg file

<system>
    <name>nes</name>
    <fullname>Nintendo Entertainment System</fullname>
    <path>F:\roms\nes</path>
    <extension>.nes .NES</extension>
    <command>%HOMEPATH%\.emulationstation\systems\retroarch\retroarch.exe -L %HOMEPATH%\.emulationstation\systems\retroarch\cores\fceumm_libretro.dll "%ROM_RAW%"</command>
    <platform>nes</platform>
    <theme>nes</theme>  
</system>
yeep-bepis commented 5 years ago

I have this same issue, would really like to know how this can be resolved