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

Method WriteToModule

Source/InstrumentIO.cpp:52–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52void CInstrumentIO::WriteToModule(const CInstrument &inst, CDocumentFile &file, unsigned inst_index) const {
53 // Write index and type
54 file.WriteBlockInt(inst_index);
55 file.WriteBlockChar(static_cast<char>(inst.GetType()));
56
57 // Store the instrument
58 DoWriteToModule(inst, file);
59
60 // Store the name
61 file.WriteStringCounted(inst.GetName()); // // //
62}
63
64void CInstrumentIO::WriteToFTI(const CInstrument &inst, CSimpleFile &file) const {
65 // Write header

Callers 1

SaveInstrumentsMethod · 0.80

Calls 5

WriteBlockIntMethod · 0.80
WriteBlockCharMethod · 0.80
WriteStringCountedMethod · 0.80
GetTypeMethod · 0.45
GetNameMethod · 0.45

Tested by

no test coverage detected