Skip to content

Commit

Permalink
Merge pull request #44 from Scobalula/development
Browse files Browse the repository at this point in the history
MW2 Fixes
  • Loading branch information
Scobalula authored Nov 3, 2022
2 parents fab7d27 + 419739c commit fac8cd8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/WraithXCOD/WraithXCOD/GameModernWarfare5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -601,9 +601,9 @@ std::unique_ptr<XSound> GameModernWarfare5::ReadXSound(const CoDSound_t* Sound)
{
// Buffer
std::unique_ptr<uint8_t[]> SoundBuffer = nullptr;
// Extract buffer, these are compressed
// Extract buffer, these are compressed, pad the audio size since the size in sound asset is literal, but XPAK data is padded.
uint32_t SoundMemoryResult = 0;
SoundBuffer = CoDAssets::GamePackageCache->ExtractPackageObject(SoundData.StreamKey, (int32_t)(((uint64_t)SoundData.Size + 4095) & 0xFFFFFFFFFFFFF000), SoundMemoryResult);
SoundBuffer = CoDAssets::GamePackageCache->ExtractPackageObject(SoundData.StreamKey, (int32_t)(((uint64_t)SoundData.Size + (size_t)SoundData.SeekTableSize + 4095) & 0xFFFFFFFFFFFFFFF0), SoundMemoryResult);

if (SoundMemoryResult == 0)
return nullptr;
Expand All @@ -617,9 +617,9 @@ std::unique_ptr<XSound> GameModernWarfare5::ReadXSound(const CoDSound_t* Sound)
{
// Buffer
std::unique_ptr<uint8_t[]> SoundBuffer = nullptr;
// Extract buffer, these are compressed
// Extract buffer, these are compressed, pad the audio size since the size in sound asset is literal, but XPAK data is padded.
uint32_t SoundMemoryResult = 0;
SoundBuffer = CoDAssets::GamePackageCache->ExtractPackageObject(SoundData.StreamKeyEx, (int32_t)(((uint64_t)SoundData.LoadedSize + 4095) & 0xFFFFFFFFFFFFF000), SoundMemoryResult);
SoundBuffer = CoDAssets::GamePackageCache->ExtractPackageObject(SoundData.StreamKeyEx, (int32_t)(((uint64_t)SoundData.LoadedSize + (size_t)SoundData.SeekTableSize + 4095) & 0xFFFFFFFFFFFFFFF0), SoundMemoryResult);

if (SoundMemoryResult == 0)
return nullptr;
Expand Down
8 changes: 4 additions & 4 deletions src/WraithXCOD/WraithXCOD/WraithXCOD.rc
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,8 @@ IDI_CHECKMARK ICON "..\\..\\WraithX\\Resources\\Che
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,23,25,0
PRODUCTVERSION 1,23,25,0
FILEVERSION 1,23,27,0
PRODUCTVERSION 1,23,27,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -366,12 +366,12 @@ BEGIN
BEGIN
VALUE "CompanyName", "DTZxPorter / Scobalula"
VALUE "FileDescription", "Greyhound"
VALUE "FileVersion", "1.23.25.0"
VALUE "FileVersion", "1.23.27.0"
VALUE "InternalName", "Greyhound"
VALUE "LegalCopyright", "Copyright (C) 2022 DTZxPorter / Scobalula"
VALUE "OriginalFilename", "Greyhound.exe"
VALUE "ProductName", "Greyhound"
VALUE "ProductVersion", "1.23.25.0"
VALUE "ProductVersion", "1.23.27.0"
END
END
BLOCK "VarFileInfo"
Expand Down

0 comments on commit fac8cd8

Please sign in to comment.