From 2e82d001e15c565bb5807be4b41da2302c3c79e7 Mon Sep 17 00:00:00 2001 From: Silent Date: Wed, 8 Mar 2017 16:34:00 +0100 Subject: [PATCH] Update to VS2017 (with fixes) --- .gitignore | 1 + SilentPatch.sln | 6 ++++-- SilentPatchIII/SilentPatchIII.vcxproj | 5 +++-- SilentPatchSA/ModelInfoSA.cpp | 9 +++++---- SilentPatchSA/SilentPatchSA.vcxproj | 6 +++--- SilentPatchVC/SilentPatchVC.vcxproj | 5 +++-- 6 files changed, 19 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index 166fbc2..0ac7de7 100644 --- a/.gitignore +++ b/.gitignore @@ -60,6 +60,7 @@ _Chutzpah* # Visual C++ cache files ipch/ +.vs/ *.aps *.ncb *.opensdf diff --git a/SilentPatch.sln b/SilentPatch.sln index 33d5ec5..01560ed 100644 --- a/SilentPatch.sln +++ b/SilentPatch.sln @@ -1,6 +1,8 @@  -Microsoft Visual Studio Solution File, Format Version 11.00 -# Visual Studio 2015 +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 14.0.25420.1 +MinimumVisualStudioVersion = 10.0.40219.1 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DDraw", "DDraw\DDraw.vcxproj", "{B695EC1B-7258-426A-81CF-9323C016ACFB}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SilentPatchIII", "SilentPatchIII\SilentPatchIII.vcxproj", "{652975D8-60B0-48E4-A973-4F10BA54FFCB}" diff --git a/SilentPatchIII/SilentPatchIII.vcxproj b/SilentPatchIII/SilentPatchIII.vcxproj index 95e5240..cb207f9 100644 --- a/SilentPatchIII/SilentPatchIII.vcxproj +++ b/SilentPatchIII/SilentPatchIII.vcxproj @@ -33,20 +33,21 @@ {652975D8-60B0-48E4-A973-4F10BA54FFCB} IIIFix SilentPatchIII + 7.0 DynamicLibrary true MultiByte - v140_xp + v141_xp DynamicLibrary false true MultiByte - v140_xp + v141_xp diff --git a/SilentPatchSA/ModelInfoSA.cpp b/SilentPatchSA/ModelInfoSA.cpp index 6c46460..a13a3c3 100644 --- a/SilentPatchSA/ModelInfoSA.cpp +++ b/SilentPatchSA/ModelInfoSA.cpp @@ -70,6 +70,7 @@ RpMaterial* CVehicleModelInfo::GetEditableMaterialListCB(RpMaterial* pMaterial, } // TODO: FIX IT +typedef std::tuple PlateDataTuple; static RpMaterial* PollPlateData(RpMaterial* pMaterial, void* pData) { if ( RwTexture* pTexture = RpMaterialGetTexture(pMaterial) ) @@ -79,7 +80,7 @@ static RpMaterial* PollPlateData(RpMaterial* pMaterial, void* pData) { if ( !_strnicmp(pTexName, "carplate", 8) ) { - auto& pCallbackData = *static_cast*>(pData); + auto& pCallbackData = *static_cast(pData); assert(std::get<2>(pCallbackData) < NUM_MAX_PLATES); if ( std::get<2>(pCallbackData) < NUM_MAX_PLATES ) @@ -99,7 +100,7 @@ static RpMaterial* PollPlateData(RpMaterial* pMaterial, void* pData) } else if ( !_strnicmp(pTexName, "carpback", 8) ) { - auto& pCallbackData = *static_cast*>(pData); + auto& pCallbackData = *static_cast(pData); assert(std::get<3>(pCallbackData) < NUM_MAX_PLATES); if ( std::get<3>(pCallbackData) < NUM_MAX_PLATES ) @@ -164,7 +165,7 @@ static RpAtomic* SetPlateData(RpAtomic* pAtomic, void* pData) void CCustomCarPlateMgr::SetupClump(RpClump* pClump, RpMaterial** pMatsArray) { // Split pMatsArray - std::tuple CallbackData = std::make_tuple(pMatsArray, pMatsArray+NUM_MAX_PLATES, 0, 0); + PlateDataTuple CallbackData = std::make_tuple(pMatsArray, pMatsArray+NUM_MAX_PLATES, 0, 0); RpClumpForAllAtomics(pClump, PollPlateData, &CallbackData); } @@ -175,7 +176,7 @@ void CCustomCarPlateMgr::SetupClumpAfterVehicleUpgrade(RpClump* pClump, RpMateri if ( pMatsArray ) { // Split pMatsArray - std::tuple CallbackData = std::make_tuple(pMatsArray, pMatsArray+NUM_MAX_PLATES, 0, 0); + PlateDataTuple CallbackData = std::make_tuple(pMatsArray, pMatsArray+NUM_MAX_PLATES, 0, 0); RpClumpForAllAtomics(pClump, PollPlateData, &CallbackData); } diff --git a/SilentPatchSA/SilentPatchSA.vcxproj b/SilentPatchSA/SilentPatchSA.vcxproj index 2c2b3a7..65532c9 100644 --- a/SilentPatchSA/SilentPatchSA.vcxproj +++ b/SilentPatchSA/SilentPatchSA.vcxproj @@ -14,21 +14,21 @@ {D3E18BC0-A120-451D-A16A-F77072625D66} SAFix SilentPatchSA - 0x0502 + 7.0 DynamicLibrary true MultiByte - v140_xp + v141_xp DynamicLibrary false true MultiByte - v140_xp + v141_xp diff --git a/SilentPatchVC/SilentPatchVC.vcxproj b/SilentPatchVC/SilentPatchVC.vcxproj index d00d24c..17b515f 100644 --- a/SilentPatchVC/SilentPatchVC.vcxproj +++ b/SilentPatchVC/SilentPatchVC.vcxproj @@ -14,20 +14,21 @@ {374D4CB4-548A-4DA0-AB68-8EA356424626} VCFix SilentPatchVC + 7.0 DynamicLibrary true MultiByte - v140_xp + v141_xp DynamicLibrary false true MultiByte - v140_xp + v141_xp