| 154 | } |
| 155 | |
| 156 | void 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 | |
| 169 | void SystemFile::initData(u8 dataNo) |
| 170 | { |