CDROM: Store filename, reduce ack cycles

This commit is contained in:
Connor McLaughlin
2019-10-18 22:04:25 +10:00
parent 513bbe44f3
commit 246b17454e
3 changed files with 6 additions and 3 deletions

View File

@ -24,6 +24,7 @@ CDImageBin::~CDImageBin()
bool CDImageBin::Open(const char* filename)
{
m_filename = filename;
m_fp = std::fopen(filename, "rb");
if (!m_fp)
{

View File

@ -63,6 +63,7 @@ bool CDImageCueSheet::OpenAndParse(const char* filename)
// get the directory of the filename
std::string basepath = GetPathDirectory(filename);
m_filename = filename;
u32 disc_lba = 0;