mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 08:24:16 +00:00
Use OF_READ
This commit is contained in:
@@ -92,11 +92,11 @@ MxResult MxDiskStreamProvider::SetResourceToGet(MxStreamController* p_resource)
|
|||||||
|
|
||||||
m_pFile = new MxDSFile(path.GetData(), 0);
|
m_pFile = new MxDSFile(path.GetData(), 0);
|
||||||
if (m_pFile != NULL) {
|
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";
|
path = MxString(MxOmni::GetCD()) + p_resource->GetAtom().GetInternal() + ".si";
|
||||||
m_pFile->SetFileName(path.GetData());
|
m_pFile->SetFileName(path.GetData());
|
||||||
|
|
||||||
if (m_pFile->Open(0) != 0) {
|
if (m_pFile->Open(OF_READ) != 0) {
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -68,11 +68,11 @@ MxResult MxRAMStreamProvider::SetResourceToGet(MxStreamController* p_resource)
|
|||||||
|
|
||||||
m_pFile = new MxDSFile(path.GetData(), 0);
|
m_pFile = new MxDSFile(path.GetData(), 0);
|
||||||
if (m_pFile != NULL) {
|
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";
|
path = MxString(MxOmni::GetCD()) + p_resource->GetAtom().GetInternal() + ".si";
|
||||||
m_pFile->SetFileName(path.GetData());
|
m_pFile->SetFileName(path.GetData());
|
||||||
|
|
||||||
if (m_pFile->Open(0) != 0) {
|
if (m_pFile->Open(OF_READ) != 0) {
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user