mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-12-02 22:18:09 +01:00
linux (compat): Add linux to most Win64 guards
This commit is contained in:
1 parent
8cf5675892
commit
9626065598
180 files changed
+941
-935
No files matched your search
@@ -1,13 +1,13 @@
|
||||
#include "stdafx.h"
|
||||
#include "DLCManager.h"
|
||||
#include "DLCAudioFile.h"
|
||||
#if defined _XBOX || defined _WINDOWS64
|
||||
#if defined _XBOX || defined _WINDOWS64 || defined(__linux__)
|
||||
#include "../../Xbox/XML/ATGXmlParser.h"
|
||||
#include "../../Xbox/XML/xmlFilesCallback.h"
|
||||
#endif
|
||||
|
||||
DLCAudioFile::DLCAudioFile(const wstring &path) : DLCFile(DLCManager::e_DLCType_Audio,path)
|
||||
{
|
||||
{
|
||||
m_pbData = nullptr;
|
||||
m_dwBytes = 0;
|
||||
}
|
||||
@@ -148,11 +148,11 @@ bool DLCAudioFile::processDLCDataFile(PBYTE pbData, DWORD dwLength)
|
||||
app.DebugPrintf("DLC version of %d is too old to be read\n", uiVersion);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
unsigned int uiParameterTypeCount=DLCManager::readUInt32(&pbData[uiCurrentByte], bSwapEndian);
|
||||
uiCurrentByte+=sizeof(int);
|
||||
C4JStorage::DLC_FILE_PARAM *pParams = (C4JStorage::DLC_FILE_PARAM *)&pbData[uiCurrentByte];
|
||||
|
||||
|
||||
for(unsigned int i=0;i<uiParameterTypeCount;i++)
|
||||
{
|
||||
pParams->dwType = bSwapEndian ? DLCManager::SwapInt32(pParams->dwType) : pParams->dwType;
|
||||
@@ -198,11 +198,11 @@ bool DLCAudioFile::processDLCDataFile(PBYTE pbData, DWORD dwLength)
|
||||
EAudioType type = static_cast<EAudioType>(pFile->dwType);
|
||||
|
||||
//Bounds Checking
|
||||
if (type < 0 || type >= e_AudioType_Max)
|
||||
if (type < 0 || type >= e_AudioType_Max)
|
||||
{
|
||||
app.DebugPrintf("Error parser: EAudioType (%d) out of bounds!\n", type);
|
||||
|
||||
continue;
|
||||
|
||||
continue;
|
||||
}
|
||||
// Params
|
||||
unsigned int uiParameterCount=DLCManager::readUInt32(pbTemp, bSwapEndian);
|
||||
@@ -255,4 +255,4 @@ wstring &DLCAudioFile::GetSoundName(int iIndex)
|
||||
iWorldType++;
|
||||
}
|
||||
return m_parameters[iWorldType].at(iIndex);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user