mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-03 12:31:15 +00:00
Use MxDSFile::OPEN_READ instead of OF_READ
This commit is contained in:
parent
c3e2e787da
commit
79dca34394
@ -13,6 +13,10 @@ class MxDSFile : public MxDSSource {
|
||||
public:
|
||||
MxDSFile(const char* p_filename, MxULong p_skipReadingChunks);
|
||||
|
||||
enum {
|
||||
OPEN_READ = 0,
|
||||
};
|
||||
|
||||
#ifdef ISLE_APP
|
||||
~MxDSFile() override { Close(); }
|
||||
#else
|
||||
|
||||
@ -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(OF_READ) != 0) {
|
||||
if (m_pFile->Open(MxDSFile::OPEN_READ) != 0) {
|
||||
path = MxString(MxOmni::GetCD()) + p_resource->GetAtom().GetInternal() + ".si";
|
||||
m_pFile->SetFileName(path.GetData());
|
||||
|
||||
if (m_pFile->Open(OF_READ) != 0) {
|
||||
if (m_pFile->Open(MxDSFile::OPEN_READ) != 0) {
|
||||
goto done;
|
||||
}
|
||||
}
|
||||
|
||||
@ -69,11 +69,11 @@ MxResult MxRAMStreamProvider::SetResourceToGet(MxStreamController* p_resource)
|
||||
|
||||
m_pFile = new MxDSFile(path.GetData(), 0);
|
||||
if (m_pFile != NULL) {
|
||||
if (m_pFile->Open(OF_READ) != 0) {
|
||||
if (m_pFile->Open(MxDSFile::OPEN_READ) != 0) {
|
||||
path = MxString(MxOmni::GetCD()) + p_resource->GetAtom().GetInternal() + ".si";
|
||||
m_pFile->SetFileName(path.GetData());
|
||||
|
||||
if (m_pFile->Open(OF_READ) != 0) {
|
||||
if (m_pFile->Open(MxDSFile::OPEN_READ) != 0) {
|
||||
goto done;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user