[Bug] Scripts on EmulationStation events
Emulationstation send garbage data on 6th argument passed to script on EndGame event:
Args: -action endgame -statefile /tmp/es_state.inf -param N³
Arg 1: -action
Arg 2: endgame
Arg 3: -statefile
Arg 4: /tmp/es_state.inf
Arg 5: -param
Arg 6: N³
Pointer conversation may be the problem. Source code: es-app/src/usernotifications/NotificationManager.cpp https://gitlab.com/recalbox/recalbox/-/blob/master/projects/frontend/es-app/src/usernotifications/NotificationManager.cpp?ref_type=heads#L287
void NotificationManager::Notify(const SystemData* system, const FileData* game, Notification action, const String& actionParameters)
{
// why ?
// if (VideoEngine::IsInstantiated())
// VideoEngine::Instance().StopVideo();
const String& notificationParameter = (game != nullptr) ? game->RomPath().ToString() :
((system != nullptr) ? system->Name() : actionParameters);
Hope can be fixed soon.