From 84b31ae6d043725b5bf9cda8501906fd8ff22bdf Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Mon, 16 Dec 2024 14:02:58 -0700 Subject: [PATCH] Use `OF_READ` --- LEGO1/omni/src/stream/mxdiskstreamprovider.cpp | 4 ++-- LEGO1/omni/src/stream/mxramstreamprovider.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/LEGO1/omni/src/stream/mxdiskstreamprovider.cpp b/LEGO1/omni/src/stream/mxdiskstreamprovider.cpp index 1c3ff1c0..1f7dba15 100644 --- a/LEGO1/omni/src/stream/mxdiskstreamprovider.cpp +++ b/LEGO1/omni/src/stream/mxdiskstreamprovider.cpp @@ -92,11 +92,11 @@ MxResult MxDiskStreamProvider::SetResourceToGet(MxStreamController* p_resource) m_pFile = new MxDSFile(path.GetData(), 0); if (m_pFile != NULL) { - if (m_pFile->Open(0) != 0) { + if (m_pFile->Open(OF_READ) != 0) { path = MxString(MxOmni::GetCD()) + p_resource->GetAtom().GetInternal() + ".si"; m_pFile->SetFileName(path.GetData()); - if (m_pFile->Open(0) != 0) { + if (m_pFile->Open(OF_READ) != 0) { goto done; } } diff --git a/LEGO1/omni/src/stream/mxramstreamprovider.cpp b/LEGO1/omni/src/stream/mxramstreamprovider.cpp index 55d282b3..d655c16f 100644 --- a/LEGO1/omni/src/stream/mxramstreamprovider.cpp +++ b/LEGO1/omni/src/stream/mxramstreamprovider.cpp @@ -68,11 +68,11 @@ MxResult MxRAMStreamProvider::SetResourceToGet(MxStreamController* p_resource) m_pFile = new MxDSFile(path.GetData(), 0); if (m_pFile != NULL) { - if (m_pFile->Open(0) != 0) { + if (m_pFile->Open(OF_READ) != 0) { path = MxString(MxOmni::GetCD()) + p_resource->GetAtom().GetInternal() + ".si"; m_pFile->SetFileName(path.GetData()); - if (m_pFile->Open(0) != 0) { + if (m_pFile->Open(OF_READ) != 0) { goto done; } }