Skip to content

Commit 0a7dfef

Browse files
committed
Sd2snes: Fix the file listing type when hitting a endofblock type
1 parent 1041ee1 commit 0a7dfef

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

devices/sd2snesdevice.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,11 @@ QList<ADevice::FileInfos> SD2SnesDevice::parseLSCommand(QByteArray& dataI)
610610
cpt++;
611611
}
612612
QString name;
613+
if (type == 0x02)
614+
{
615+
sDebug() << "Type 2 " << cpt << QString::number(data.at(cpt), 16);
616+
type = static_cast<unsigned char>(data.at(cpt));
617+
}
613618
cpt++;
614619
while (data.at(cpt) != 0)
615620
{

0 commit comments

Comments
 (0)