Skip to content

Generated json playlist contains unescaped " in values #86

@jvs3

Description

@jvs3

The name generated by ScummVM when adding a game can contain the " character. The playlist generated by the ScummVM core uses the name as as the label value. If the " character is in the name it is not escaped \" resulting in this error in the RetroArch logs

[WARN] Error parsing chunk:
---snip---
Chapter II - Vohaul's Revenge (2.0F 1989-01-05 3.5"/DOS/English)",
"core_path": "DETECT",
"core_name": "DETECT",
"crc32": "DETECT",
"db_name": "ScummVM.lpl"
},
{
"path": "/home/user/RetroArch-Linux-x86_64/RetroArch-Linux-x86_64.AppImage.home/.config/re
---snip---
[WARN] Error: Invalid JSON at line 204, column 84 - expected ',' or '}' not 'D' after member value.

Games listed in the generated ScummVM.lpl playlist after the ---snip--- part of the error message are not visible in RetroArch.

I followed the instructions at '?' (top left) -> 'Libretro playlist' in the main ScummVM interface which i reached by doing 'Load core' -> 'Scummvm' and 'Start Core' in the RetroArch main menu. The playlist was generated using the option 'Global options' -> 'Backend' -> 'Generate playlist'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions