fix: projects now build for both vs 2022 and vs 2012

This commit is contained in:
Patoke
2026-03-01 05:50:14 -03:00
parent 4b7769987d
commit ac4fcfb546
5 changed files with 15 additions and 8 deletions
+4 -2
View File
@@ -57,7 +57,8 @@ public:
struct
{
DirectX::XMMATRIX m_matrix;
float m_matrix[16];
//DirectX::XMMATRIX m_matrix;
} add_matrix;
struct
@@ -105,7 +106,8 @@ public:
struct
{
int m_light_index;
DirectX::XMVECTOR m_direction;
float m_direction[3];
//DirectX::XMVECTOR m_direction;
} set_light_direction;
struct
+3 -3
View File
@@ -73,7 +73,7 @@ C4JStorage::EDLCStatus CDLC::GetInstalledDLC(int iPad, int(*Func)(LPVOID, int, i
bool isArt = hFind.dwFileAttributes != -1 && (hFind.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY);
if (isArt && hFind.cFileName[0] != '.')
{
XCONTENT_DATA data{};
XCONTENT_DATA data;
if (ret)
{
@@ -116,7 +116,7 @@ DWORD CDLC::MountInstalledDLC(int iPad, DWORD dwDLC, int(*Func)(LPVOID, int, DWO
this->m_uiCurrentMappedDLC = dwDLC;
char* dlcdirPath = m_vInstalledDLCs[m_uiCurrentMappedDLC].szFileName;
m_vDLCDriveMappings.push_back({ dlcdirPath, m_szMountPath });
m_vDLCDriveMappings.push_back(DriveMapping(dlcdirPath, m_szMountPath));
m_iHasNewMountedDLCs = true;
@@ -125,7 +125,7 @@ DWORD CDLC::MountInstalledDLC(int iPad, DWORD dwDLC, int(*Func)(LPVOID, int, DWO
DWORD CDLC::UnmountInstalledDLC(LPCSTR szMountDrive)
{
LPCSTR szDrive{};
LPCSTR szDrive = nullptr;
if (szMountDrive)
{
+5
View File
@@ -7,6 +7,11 @@ public:
struct DriveMapping
{
DriveMapping(std::string szDirectoryPath, std::string szMountPath) : m_szDirectoryPath(szDirectoryPath), m_szMountPath(szMountPath)
{
;
}
std::string m_szDirectoryPath;
std::string m_szMountPath;
};
+1 -1
View File
@@ -63,7 +63,7 @@ unsigned int CStorage::UpdateCRC(unsigned int crc, unsigned __int8* buf, int len
void CStorage::DebugPrintf(const char* szFormat, ...)
{
char buf[1024]{};
char buf[1024];
va_list va;
va_start(va, szFormat);
+2 -2
View File
@@ -41,8 +41,8 @@ void CSaveGame::ResetSaveData()
C4JStorage::ESaveGameState CSaveGame::GetSavesInfo(int iPad, int (*Func)(LPVOID lpParam, SAVE_DETAILS* pSaveDetails, const bool), LPVOID lpParam, char* pszSavePackName)
{
WIN32_FIND_DATAA findFileData{};
WIN32_FILE_ATTRIBUTE_DATA fileInfoBuffer{};
WIN32_FIND_DATAA findFileData;
WIN32_FILE_ATTRIBUTE_DATA fileInfoBuffer;
if (!m_pSaveDetails)
{