MCPcopy Create free account
hub / github.com/HertzDevil/0CC-FamiTracker / StoreHeaderChunk

Method StoreHeaderChunk

Source/ChunkRenderText.cpp:192–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192void CChunkRenderText::StoreHeaderChunk(const CChunk *pChunk)
193{
194 std::string str;
195 int i = 0;
196
197 str += "\t.word " + GetLabelString(pChunk->GetDataPointerTarget(i++)) + "\n"; // // //
198 str += "\t.word " + GetLabelString(pChunk->GetDataPointerTarget(i++)) + "\n";
199 str += "\t.word " + GetLabelString(pChunk->GetDataPointerTarget(i++)) + "\n";
200 str += "\t.word " + GetLabelString(pChunk->GetDataPointerTarget(i++)) + "\n";
201 str += "\t.word " + GetLabelString(pChunk->GetDataPointerTarget(i++)) + "\n"; // // // groove
202 str += "\t.byte %i ; flags\n", pChunk->GetData(i++);
203 if (pChunk->IsDataPointer(i))
204 str += "\t.word " + GetLabelString(pChunk->GetDataPointerTarget(i++)) + "\n"; // FDS waves
205 str += "\t.word %i ; NTSC speed\n", pChunk->GetData(i++);
206 str += "\t.word %i ; PAL speed\n", pChunk->GetData(i++);
207 if (i < pChunk->GetLength())
208 str += "\t.word %i ; N163 channels\n", pChunk->GetData(i++); // N163 channels
209
210 m_headerStrings.push_back(std::move(str));
211}
212
213void CChunkRenderText::StoreInstrumentListChunk(const CChunk *pChunk)
214{

Callers

nothing calls this directly

Calls 4

GetDataPointerTargetMethod · 0.80
IsDataPointerMethod · 0.80
GetDataMethod · 0.45
GetLengthMethod · 0.45

Tested by

no test coverage detected