| 605 | } |
| 606 | |
| 607 | void cGraphics_PC::Mission_Intro_Load_Resources(const eTileTypes pTileset) { |
| 608 | |
| 609 | // Briefing images |
| 610 | std::string JunData1 = mTileTypes[pTileset].mName + "p1.dat"; |
| 611 | std::string JunData2 = mTileTypes[pTileset].mName + "p2.dat"; |
| 612 | std::string JunData3 = mTileTypes[pTileset].mName + "p3.dat"; |
| 613 | std::string JunData4 = mTileTypes[pTileset].mName + "p4.dat"; |
| 614 | std::string JunData5 = mTileTypes[pTileset].mName + "p5.dat"; |
| 615 | |
| 616 | mImageMissionIntro.mData = g_Resource->fileGet(JunData1); |
| 617 | mMission_Intro_Gfx_Clouds1 = g_Resource->fileGet(JunData2); |
| 618 | mMission_Intro_Gfx_Clouds2 = g_Resource->fileGet(JunData3); |
| 619 | mMission_Intro_Gfx_Clouds3 = g_Resource->fileGet(JunData4); |
| 620 | mMission_Intro_Gfx_TreesMain = g_Resource->fileGet(JunData5); |
| 621 | |
| 622 | mBriefing_ParaHeli = g_Resource->fileGet( "paraheli.dat" ); |
| 623 | |
| 624 | // Copy the palette for the current map tileset, in from paraheli to the briefing intro images |
| 625 | uint8* si = mBriefing_ParaHeli->data() + 0xF00; |
| 626 | si += 0x30 * pTileset; |
| 627 | |
| 628 | std::memcpy( (mImageMissionIntro.mData->data() + mImageMissionIntro.mData->size()) - 0x60, si, 0x30 ); |
| 629 | |
| 630 | // Copy the palette from mImagePStuff |
| 631 | std::memcpy( (mImageMissionIntro.mData->data() + mImageMissionIntro.mData->size()) - 0x30, mImagePStuff.mData->data() + 0xA000, 0x30 ); |
| 632 | |
| 633 | // Load the palette |
| 634 | mImageMissionIntro.LoadPalette(mImageMissionIntro.mData->size() - 0x300, 0x100, 0); |
| 635 | } |
| 636 | |
| 637 | uint8 cGraphics_PC::Video_Get_Pixel(uint8* pSi, int16 pX, int16 pY) { |
| 638 |
no test coverage detected