//some semi-c++ code
ÂÂÂÂ
if fileexists("SD:/images/%c%c%c%c%c%c.png", ascii(header->id[0]), ascii(header->id[1]), ascii(header->id[2]), ascii(header->id[3]), "P", ascii(header->id[5]))
{
ÂÂÂÂsnprintf(imgPath, sizeof(imgPath), "SD:/images/%c%c%c%c%c%c.png", ascii(header->id[0]), ascii(header->id[1]), ascii(header->id[2]), ascii(header->id[3]), "P", ascii(header->id[5]));
}
else if fileexists("SD:/images/%c%c%c%c%c%c.png", ascii(header->id[0]), ascii(header->id[1]), ascii(header->id[2]), ascii(header->id[3]), "U", ascii(header->id[5]))
{
ÂÂÂÂsnprintf(imgPath, sizeof(imgPath), "SD:/images/%c%c%c%c%c%c.png", ascii(header->id[0]), ascii(header->id[1]), ascii(header->id[2]), ascii(header->id[3]), "U", ascii(header->id[5]));
}
else
{
ÂÂÂÂsnprintf(imgPath, sizeof(imgPath), "SD:/images/noimage.png");
}