Is there a way to get the pdxinfo
metadata from the C API, such as the app name?
There is no API but you can open the file directly and read the contents.
Some sample code provided by @shaun
FileStat stat;
if (playdate->file->stat("pdxinfo", &stat)) {
playdate->system->logToConsole("%s", playdate->file->geterr());
return;
}
SDFile* f = playdate->file->open("pdxinfo", kFileRead);
char* buf = playdate->system->realloc(NULL, stat.size+1);
playdate->file->read(f, buf, stat.size);
playdate->file->close(f);
playdate->system->logToConsole("%s", buf);
playdate->system->realloc(buf, 0);