linux (compat): Add linux to most Win64 guards

This commit is contained in:
Anaël committed 2026-11-29 13:33:39 +01:00
1 parent 8cf5675892
commit 9626065598
180 files changed
+941 -935

No files matched your search

+3 -3
View File
@@ -57,7 +57,7 @@ ArchiveFile::ArchiveFile(File file, bool allowFolder)
FileInputStream fis(file);
#if defined _XBOX_ONE || defined __ORBIS__ || defined _WINDOWS64
#if defined _XBOX_ONE || defined __ORBIS__ || (defined(_WINDOWS64) || defined(__linux__))
byteArray readArray(static_cast<unsigned int>(file.length()));
fis.read(readArray,0,file.length());
@@ -73,7 +73,7 @@ ArchiveFile::ArchiveFile(File file, bool allowFolder)
dis.close();
fis.close();
#if defined _XBOX_ONE || defined __ORBIS__ || defined _WINDOWS64
#if defined _XBOX_ONE || defined __ORBIS__ || (defined(_WINDOWS64) || defined(__linux__))
bais.reset();
#endif
app.DebugPrintf("Finished loading archive file\n");
@@ -139,7 +139,7 @@ byteArray ArchiveFile::getFile(const wstring &filename)
{
PMetaData data = it->second;
#if defined _XBOX_ONE || defined __ORBIS__ || defined _WINDOWS64
#if defined _XBOX_ONE || defined __ORBIS__ || (defined(_WINDOWS64) || defined(__linux__))
out = byteArray(data->filesize );
memcpy( out.data, m_cachedData + data->ptr, data->filesize );