mirror of
https://github.com/libretro/beetle-psx-libretro.git
synced 2025-02-18 16:09:56 +00:00
Cleanups
This commit is contained in:
parent
5681b1a43a
commit
40a543b13b
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user