| 350 | } |
| 351 | |
| 352 | void CChunkRenderText::StoreFrameChunk(const CChunk *pChunk) |
| 353 | { |
| 354 | int len = pChunk->GetLength(); |
| 355 | |
| 356 | // Frame list |
| 357 | std::string str = GetLabelString(pChunk->GetLabel()) + ":\n\t.word "; |
| 358 | |
| 359 | for (int i = 0, j = 0; i < len; ++i) { |
| 360 | if (pChunk->IsDataPointer(i)) { |
| 361 | if (j++ > 0) |
| 362 | str += ", "; |
| 363 | str += GetLabelString(pChunk->GetDataPointerTarget(i)); |
| 364 | } |
| 365 | } |
| 366 | |
| 367 | // Bank values |
| 368 | for (int i = 0, j = 0; i < len; ++i) { |
| 369 | if (pChunk->IsDataBank(i)) { |
| 370 | if (j == 0) |
| 371 | str += "\n\t.byte "; |
| 372 | if (j++ > 0) |
| 373 | str += ", "; |
| 374 | str += "$" + conv::from_uint_hex(pChunk->GetData(i), 2); |
| 375 | } |
| 376 | } |
| 377 | |
| 378 | str.push_back('\n'); |
| 379 | |
| 380 | m_songDataStrings.push_back(std::move(str)); |
| 381 | } |
| 382 | |
| 383 | void CChunkRenderText::StorePatternChunk(const CChunk *pChunk) |
| 384 | { |
nothing calls this directly
no test coverage detected