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

Method LoadSongInfo

Source/FamiTrackerDocIO.cpp:361–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359}
360
361void CFamiTrackerDocIO::LoadSongInfo(CFamiTrackerModule &modfile, int ver) {
362 std::array<char, CFamiTrackerModule::METADATA_FIELD_LENGTH> buf = { };
363 file_.GetBlock(buf.data(), std::size(buf));
364 buf.back() = '\0';
365 modfile.SetModuleName(buf.data());
366 file_.GetBlock(buf.data(), std::size(buf));
367 buf.back() = '\0';
368 modfile.SetModuleArtist(buf.data());
369 file_.GetBlock(buf.data(), std::size(buf));
370 buf.back() = '\0';
371 modfile.SetModuleCopyright(buf.data());
372}
373
374void CFamiTrackerDocIO::SaveSongInfo(const CFamiTrackerModule &modfile, int ver) {
375 file_.WriteStringPadded(modfile.GetModuleName(), CFamiTrackerModule::METADATA_FIELD_LENGTH);

Callers

nothing calls this directly

Calls 7

sizeFunction · 0.85
backMethod · 0.80
SetModuleNameMethod · 0.80
SetModuleArtistMethod · 0.80
SetModuleCopyrightMethod · 0.80
GetBlockMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected