Skip to content

Commit

Permalink
MW4 Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Scobalula committed Apr 8, 2020
1 parent ad14cbb commit 89e3373
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
4 changes: 4 additions & 0 deletions src/WraithX/WraithX/WraithX.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
<PreprocessorDefinitions>WIN32;_CRT_NO_VA_START_VALIDATION;_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
<AdditionalIncludeDirectories>..\ExternalDeps\Flac1.3.2\include;..\ExternalDeps\DirectXTexApril17\DirectXTex;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<LanguageStandard>
</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand All @@ -69,6 +71,8 @@
<PreprocessorDefinitions>WIN32;_CRT_NO_VA_START_VALIDATION;NDEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
<AdditionalIncludeDirectories>..\ExternalDeps\Flac1.3.2\include;..\ExternalDeps\DirectXTexApril17\DirectXTex;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<LanguageStandard>
</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand Down
13 changes: 7 additions & 6 deletions src/WraithXCOD/WraithXCOD/GameModernWarfare4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -597,11 +597,12 @@ std::unique_ptr<XAnim_t> GameModernWarfare4::ReadXAnim(const CoDAnim_t* Animatio
//}

// Check for additive animations
if (AnimData.AssetType == 0x6)
{
// This is a additive animation
Anim->AdditiveAnimation = true;
}
// No point, breaks it in SETools, wait for Cast to implement full Additive support
//if (AnimData.AssetType == 0x6)
//{
// // This is a additive animation
// Anim->AdditiveAnimation = true;
//}
// Check for looping
Anim->LoopingAnimation = (AnimData.Flags & 1);

Expand Down Expand Up @@ -1226,7 +1227,7 @@ void GameModernWarfare4::LoadXModel(const XModelLod_t& ModelLOD, const std::uniq
std::string GameModernWarfare4::LoadStringEntry(uint64_t Index)
{
// Read and return (Offsets[3] = StringTable)
return CoDAssets::GameInstance->ReadNullTerminatedString((36 * Index) + CoDAssets::GameOffsetInfos[5] + 8);
return CoDAssets::GameInstance->ReadNullTerminatedString((40 * Index) + CoDAssets::GameOffsetInfos[5] + 8);
}
void GameModernWarfare4::PerformInitialSetup()
{
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 @@ -361,8 +361,8 @@ IDI_CHECKMARK ICON "..\\..\\WraithX\\Resources\\Che
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,3,96,0
PRODUCTVERSION 1,3,96,0
FILEVERSION 1,3,98,0
PRODUCTVERSION 1,3,98,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -379,12 +379,12 @@ BEGIN
BEGIN
VALUE "CompanyName", "DTZxPorter / Scobalula"
VALUE "FileDescription", "Greyhound"
VALUE "FileVersion", "1.3.96.0"
VALUE "FileVersion", "1.3.98.0"
VALUE "InternalName", "Greyhound"
VALUE "LegalCopyright", "Copyright (C) 2019 DTZxPorter / Scobalula"
VALUE "OriginalFilename", "Greyhound.exe"
VALUE "ProductName", "Greyhound"
VALUE "ProductVersion", "1.3.96.0"
VALUE "ProductVersion", "1.3.98.0"
END
END
BLOCK "VarFileInfo"
Expand Down

0 comments on commit 89e3373

Please sign in to comment.