This commit is contained in:
twinaphex 2015-07-28 23:00:20 +02:00
parent 5681b1a43a
commit 40a543b13b
2 changed files with 1 additions and 7 deletions

View File

@ -154,7 +154,7 @@ class CDIF_ST : public CDIF
CDAccess *disc_cdaccess;
};
CDIF::CDIF() : UnrecoverableError(false), is_phys_cache(false), DiscEjected(false)
CDIF::CDIF() : UnrecoverableError(false), DiscEjected(false)
{
}
@ -313,8 +313,6 @@ int CDIF_MT::ReadThreadStart()
return(0);
}
is_phys_cache = false;
EmuThreadQueue.Write(CDIF_Message(CDIF_MSG_DONE));
while(Running)
@ -649,7 +647,6 @@ CDIF_ST::CDIF_ST(CDAccess *cda) : disc_cdaccess(cda)
{
//puts("***WARNING USING SINGLE-THREADED CD READER***");
is_phys_cache = false;
UnrecoverableError = false;
DiscEjected = false;

View File

@ -52,15 +52,12 @@ class CDIF
// Returns false on failure(usually drive error of some kind; not completely fatal, can try again).
virtual bool Eject(bool eject_status) = 0;
inline bool IsPhysical(void) { return(is_phys_cache); }
// For Mode 1, or Mode 2 Form 1.
// No reference counting or whatever is done, so if you destroy the CDIF object before you destroy the returned Stream, things will go BOOM.
Stream *MakeStream(uint32 lba, uint32 sector_count);
protected:
bool UnrecoverableError;
bool is_phys_cache;
TOC disc_toc;
bool DiscEjected;
};