Open askotx opened 5 years ago
Is it possible to add support for JSON format, I think it could be something like:
#if legacy then playlist_entry := playlist_entry_rom_path . "`n" . playlist_title . "`n" . core_path . "`n" . "DETECT" . "`n" . "DETECT" . "`n" . playlist_name . ".lpl" . "`n" #else #this before start loop array header := '"{`n" """version""":"""1.0""",`n" """items""": [`n" playlist_file.Write(header) #in array playlist_entry := "{". "`n" . """path""": """. playlist_entry_rom_path . """,". "`n" . """label": """ . playlist_title . """,". "`n" . """core_path""": """. core_path . """,. "`n" . """core_name""": ""DETECT""",. "`n" . """crc32""": """DETECT""",. "`n" . """db_name""": """ . playlist_name .".lpl""". "`n" . "},". "`n" playlist_file.Write(playlist_entry) #after array # remove last "," comma, I don't know the command footer:= " ]`n" "}`n" playlist_file.Write(footer) #end if
Is it possible to add support for JSON format, I think it could be something like: