diff --git a/src/playdate/build/pdxinfo.nim b/src/playdate/build/pdxinfo.nim index c5ba0ee..a74cb86 100644 --- a/src/playdate/build/pdxinfo.nim +++ b/src/playdate/build/pdxinfo.nim @@ -2,7 +2,8 @@ import std/[os, parsecfg, streams, strutils, strformat, times, osproc], nimbledu type PdxInfo* = object ## Details used to populate the pdxinfo file - name*, author*, description*, bundleId*, imagePath*, version*, buildNumber*: string + name*, author*, description*, bundleId*, imagePath*, version*: string + buildNumber*, launchSoundPath*, contentWarning*, contentWarning2*: string proc `$`*(pdx: PdxInfo): string = for key, value in pdx.fieldPairs: diff --git a/tests/t_pdxinfo.nim b/tests/t_pdxinfo.nim index cab490c..d1213ac 100644 --- a/tests/t_pdxinfo.nim +++ b/tests/t_pdxinfo.nim @@ -31,6 +31,9 @@ suite "Pdxinfo generation": imagePath=launcher version=1.2.3 buildNumber=20250216 + launchSoundPath=path/to/launch/sound/file + contentWarning="Beware the Jabberwock, my son!" + contentWarning2="The jaws that bite, the claws that catch!" """).parsePdx("[stream]") check($pdx == """ @@ -41,6 +44,9 @@ suite "Pdxinfo generation": imagePath=launcher version=1.2.3 buildNumber=20250216 + launchSoundPath=path/to/launch/sound/file + contentWarning=Beware the Jabberwock, my son! + contentWarning2=The jaws that bite, the claws that catch! """.dedent()) test "Join together multiple pdxinfo objects":