mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-03-06 14:27:43 +00:00
Cosmetic fix for a notification when the emulator core is missing.
This commit is contained in:
parent
e19f0beace
commit
c2f1ba0585
|
@ -904,9 +904,13 @@ void FileData::launchGame(Window* window)
|
|||
separatorPos = quotePos;
|
||||
|
||||
if (separatorPos != std::string::npos) {
|
||||
coreName = command.substr(coreFilePos + 1, separatorPos - (coreFilePos + 1));
|
||||
coreName = command.substr(coreFilePos + 2, separatorPos - (coreFilePos + 2));
|
||||
|
||||
std::string coreFile = Utils::FileSystem::expandHomePath(path + coreName);
|
||||
#if defined(_WIN64)
|
||||
std::string coreFile = Utils::FileSystem::expandHomePath(path + "\\" + coreName);
|
||||
#else
|
||||
std::string coreFile = Utils::FileSystem::expandHomePath(path + "/" + coreName);
|
||||
#endif
|
||||
|
||||
// Expand %EMUPATH% if it has been used in the %CORE_ variable.
|
||||
size_t stringPos = coreFile.find("%EMUPATH%");
|
||||
|
|
Loading…
Reference in a new issue