mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-14 13:01:16 +02:00
DVDInterface: Remove SetDiscInside
It's only a call to SetLidOpen now.
This commit is contained in:
@@ -263,7 +263,6 @@ static void EjectDiscCallback(u64 userdata, s64 cyclesLate);
|
||||
static void InsertDiscCallback(u64 userdata, s64 cyclesLate);
|
||||
static void FinishExecutingCommandCallback(u64 userdata, s64 cycles_late);
|
||||
|
||||
void SetDiscInside(bool disc_inside);
|
||||
void SetLidOpen();
|
||||
|
||||
void UpdateInterrupts();
|
||||
@@ -486,7 +485,7 @@ bool SetVolumeName(const std::string& disc_path)
|
||||
{
|
||||
DVDThread::WaitUntilIdle();
|
||||
s_inserted_volume = DiscIO::CreateVolumeFromFilename(disc_path);
|
||||
SetDiscInside(VolumeIsValid());
|
||||
SetLidOpen();
|
||||
return VolumeIsValid();
|
||||
}
|
||||
|
||||
@@ -496,7 +495,7 @@ bool SetVolumeDirectory(const std::string& full_path, bool is_wii,
|
||||
DVDThread::WaitUntilIdle();
|
||||
s_inserted_volume =
|
||||
DiscIO::CreateVolumeFromDirectory(full_path, is_wii, apploader_path, DOL_path);
|
||||
SetDiscInside(VolumeIsValid());
|
||||
SetLidOpen();
|
||||
return VolumeIsValid();
|
||||
}
|
||||
|
||||
@@ -505,11 +504,6 @@ bool VolumeIsValid()
|
||||
return s_inserted_volume != nullptr;
|
||||
}
|
||||
|
||||
void SetDiscInside(bool disc_inside)
|
||||
{
|
||||
SetLidOpen();
|
||||
}
|
||||
|
||||
bool IsDiscInside()
|
||||
{
|
||||
return s_inserted_volume != nullptr;
|
||||
@@ -523,7 +517,7 @@ static void EjectDiscCallback(u64 userdata, s64 cyclesLate)
|
||||
{
|
||||
DVDThread::WaitUntilIdle();
|
||||
s_inserted_volume.reset();
|
||||
SetDiscInside(false);
|
||||
SetLidOpen();
|
||||
}
|
||||
|
||||
static void InsertDiscCallback(u64 userdata, s64 cyclesLate)
|
||||
|
Reference in New Issue
Block a user