mirror of
https://github.com/isledecomp/isle.git
synced 2026-02-14 00:27:38 +00:00
Update mxdiskstreamprovider.cpp
This commit is contained in:
parent
f3de3db4a2
commit
054616ebf8
@ -1,9 +1,9 @@
|
||||
#include "mxdiskstreamprovider.h"
|
||||
|
||||
#include "mxthread.h"
|
||||
#include "mxomni.h"
|
||||
#include "mxstring.h"
|
||||
#include "mxstreamcontroller.h"
|
||||
#include "mxstring.h"
|
||||
#include "mxthread.h"
|
||||
|
||||
DECOMP_SIZE_ASSERT(MxDiskStreamProvider, 0x60);
|
||||
|
||||
@ -57,14 +57,11 @@ MxResult MxDiskStreamProvider::SetResourceToGet(MxStreamController* p_resource)
|
||||
|
||||
MxDSFile* file = new MxDSFile(path.GetData(), 0);
|
||||
m_pFile = file;
|
||||
if (file != NULL)
|
||||
{
|
||||
if (file->Open(0) != 0)
|
||||
{
|
||||
if (file != NULL) {
|
||||
if (file->Open(0) != 0) {
|
||||
path = MxString(MxOmni::GetCD()) + p_resource->GetAtom().GetInternal() + ".si";
|
||||
file->SetFileName(path);
|
||||
if (file->Open(0) != 0)
|
||||
{
|
||||
if (file->Open(0) != 0) {
|
||||
return FAILURE;
|
||||
}
|
||||
}
|
||||
@ -73,8 +70,7 @@ MxResult MxDiskStreamProvider::SetResourceToGet(MxStreamController* p_resource)
|
||||
MxResult success = m_busySemaphore.Init(0, 100);
|
||||
// m_thread.Start();
|
||||
|
||||
if (success == SUCCESS && p_resource != NULL)
|
||||
{
|
||||
if (success == SUCCESS && p_resource != NULL) {
|
||||
return SUCCESS;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user