added more debug output to string compressor

This commit is contained in:
FeralChild64 committed 2020-06-25 17:59:35 +02:00
1 parent 473660be80
commit 2d04b1b4cb
1 file changed
+22
+22
View File
@@ -1550,6 +1550,28 @@ void DataSet::prepareOutput_packed(std::ostringstream &stream,
{
stream << "\t// IDX__" << stringEntryList.list[idxString].alias << std::endl;
}
if (!isCompressionLvl2(stringEntryList))
{
stream << "\t// '";
for (auto &character : stringEntryList.list[idxString].string)
{
if (character >= 32 && character <= 132 && character != 39 && character != 34)
{
stream << character;
}
else if (character == 13)
{
stream << "<return>";
}
else
{
stream << "_";
}
}
stream << "'" << std::endl;
}
stream << "\t.byte ";
bool first = true;