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
@@ -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 );
|
||||
|
||||
Reference in new issue
Block a user