MCPcopy Create free account
hub / github.com/doldecomp/mkdd / initHeader

Method initHeader

src/Osako/SystemFile.cpp:156–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156void SystemFile::initHeader()
157{
158 ResTIMG *banner = (ResTIMG *)ResMgr::getPtr(ResMgr::mcArcSystem, "IPL/bn_System.bti");
159 memmove(mHeader.mBanner, ((u8 *)banner + banner->mImageDataOffset), BANNER_SIZE);
160 memmove(mHeader.mBannerPallete, ((u8 *)banner + banner->mPaletteOffset), PALETTE_SIZE);
161
162 ResTIMG *icon = (ResTIMG *)ResMgr::getPtr(ResMgr::mcArcSystem, "IPL/ic_System.bti");
163 memmove(mHeader.mIcon, ((u8 *)icon + icon->mImageDataOffset), BANNER_SIZE);
164 memcpy(mHeader.mIconPalette, ((u8 *)icon + icon->mPaletteOffset), PALETTE_SIZE);
165
166 mHeader.mCheckData.init();
167}
168
169void SystemFile::initData(u8 dataNo)
170{

Callers

nothing calls this directly

Calls 4

getPtrFunction · 0.85
memmoveFunction · 0.85
memcpyFunction · 0.85
initMethod · 0.45

Tested by

no test coverage detected