Skip to content

Commit

Permalink
use AtexSubCode3_Asm instead of _Cpp because of highlights being lost
Browse files Browse the repository at this point in the history
  • Loading branch information
DubbleClick committed Sep 4, 2024
1 parent aaf7cb6 commit 8dea921
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SourceFiles/AtexDecompress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ struct SImageData;

void AtexSubCode1_Cpp(uint32_t* array1, uint32_t* array2, unsigned int count);
void AtexSubCode2_Cpp(uint32_t* outBuffer, uint32_t* dcmpBuffer1, uint32_t* dcmpBuffer2, SImageData* imageData, unsigned int blockCount, unsigned int blockSize);
// currently loses some highlights, but I have no idea why. even a direct translation has this issue
void AtexSubCode3_Cpp(uint32_t* outBuffer, uint32_t* dcmpBuffer1, const uint32_t* dcmpBuffer2, SImageData* imageData, unsigned int blockCount, unsigned int blockSize);

int ImgFmt(unsigned int Format)
Expand Down Expand Up @@ -99,7 +100,7 @@ void AtexDecompress(unsigned int* InputBuffer, unsigned int BufferSize, unsigned
}
if (CompressionCode & 2 && ImageFormat >= 0x10 && ImageFormat <= 0x11)
{
AtexSubCode3_Cpp(OutBuffer, DcmpBuffer1, DcmpBuffer2, &ImageData, BlockCount, BlockSize);
AtexSubCode3_Asm(OutBuffer, DcmpBuffer1, DcmpBuffer2, &ImageData, BlockCount, BlockSize);
}
if (CompressionCode & 4 && ImageFormat >= 0x12 && ImageFormat <= 0x15)
{
Expand Down

0 comments on commit 8dea921

Please sign in to comment.