Skip to content

Commit

Permalink
Fix PAK Images not exporting
Browse files Browse the repository at this point in the history
  • Loading branch information
Scobalula committed Oct 2, 2018
1 parent eb7a2f3 commit a5d554a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/WraithXCOD/WraithXCOD/GameAdvancedWarfare.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ std::unique_ptr<XImageDDS> GameAdvancedWarfare::LoadXImage(const XImage_t& Image
}

// Calculate table offset of the biggest mip
uint64_t PAKTableOffset = (((Image.ImagePtr - (CoDAssets::GameOffsetInfos[2] + 8)) / sizeof(AWGfxImage)) * (sizeof(AWPAKImageEntry) * 4)) + CoDAssets::GameOffsetInfos[4] + (LargestMip * sizeof(AWPAKImageEntry));
uint64_t PAKTableOffset = (((Image.ImagePtr - (CoDAssets::GameOffsetInfos[2] + 8)) / sizeof(AWGfxImage)) * (sizeof(AWPAKImageEntry) * 4)) + CoDAssets::GameOffsetInfos[5] + (LargestMip * sizeof(AWPAKImageEntry));

// Read info
auto ImageStreamInfo = CoDAssets::GameInstance->Read<AWPAKImageEntry>(PAKTableOffset);
Expand Down
2 changes: 1 addition & 1 deletion src/WraithXCOD/WraithXCOD/GameGhosts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ std::unique_ptr<XImageDDS> GameGhosts::LoadXImage(const XImage_t& Image)
}

// Calculate table offset of the biggest mip
uint64_t PAKTableOffset = (((Image.ImagePtr - (CoDAssets::GameOffsetInfos[2] + 8)) / sizeof(GhostsGfxImage)) * (sizeof(GhostsPAKImageEntry) * 4)) + CoDAssets::GameOffsetInfos[4] + (LargestMip * sizeof(GhostsPAKImageEntry));
uint64_t PAKTableOffset = (((Image.ImagePtr - (CoDAssets::GameOffsetInfos[2] + 8)) / sizeof(GhostsGfxImage)) * (sizeof(GhostsPAKImageEntry) * 4)) + CoDAssets::GameOffsetInfos[5] + (LargestMip * sizeof(GhostsPAKImageEntry));

// Read info
auto ImageStreamInfo = CoDAssets::GameInstance->Read<GhostsPAKImageEntry>(PAKTableOffset);
Expand Down
2 changes: 1 addition & 1 deletion src/WraithXCOD/WraithXCOD/GameModernWarfareRM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ std::unique_ptr<XImageDDS> GameModernWarfareRM::LoadXImage(const XImage_t& Image
}

// Calculate table offset of the biggest mip
uint64_t PAKTableOffset = (((Image.ImagePtr - (CoDAssets::GameOffsetInfos[2] + 8)) / sizeof(MWRGfxImage)) * (sizeof(MWRPAKImageEntry) * 4)) + CoDAssets::GameOffsetInfos[4] + (LargestMip * sizeof(MWRPAKImageEntry));
uint64_t PAKTableOffset = (((Image.ImagePtr - (CoDAssets::GameOffsetInfos[2] + 8)) / sizeof(MWRGfxImage)) * (sizeof(MWRPAKImageEntry) * 4)) + CoDAssets::GameOffsetInfos[5] + (LargestMip * sizeof(MWRPAKImageEntry));

// Read info
auto ImageStreamInfo = CoDAssets::GameInstance->Read<MWRPAKImageEntry>(PAKTableOffset);
Expand Down
2 changes: 1 addition & 1 deletion src/WraithXCOD/WraithXCOD/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ void MainWindow::OnDestroy()
void MainWindow::OnSupport()
{
// Spawn wiki post
ShellExecuteA(NULL, "open", "https://github.com/Scobalula/Greyhound/Wiki", NULL, NULL, SW_SHOWNORMAL);
ShellExecuteA(NULL, "open", "https://github.com/Scobalula/Greyhound/wiki", NULL, NULL, SW_SHOWNORMAL);
}

void MainWindow::OnLoadFile()
Expand Down

0 comments on commit a5d554a

Please sign in to comment.