HW: Move DVDInterface variables to Core::System.
This commit is contained in:
parent
c4d5804f60
commit
2d45ce5c4e
File diff suppressed because it is too large
Load Diff
|
@ -23,6 +23,23 @@ class Mapping;
|
||||||
|
|
||||||
namespace DVDInterface
|
namespace DVDInterface
|
||||||
{
|
{
|
||||||
|
class DVDInterfaceState
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
DVDInterfaceState();
|
||||||
|
DVDInterfaceState(const DVDInterfaceState&) = delete;
|
||||||
|
DVDInterfaceState(DVDInterfaceState&&) = delete;
|
||||||
|
DVDInterfaceState& operator=(const DVDInterfaceState&) = delete;
|
||||||
|
DVDInterfaceState& operator=(DVDInterfaceState&&) = delete;
|
||||||
|
~DVDInterfaceState();
|
||||||
|
|
||||||
|
struct Data;
|
||||||
|
Data& GetData() { return *m_data; }
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::unique_ptr<Data> m_data;
|
||||||
|
};
|
||||||
|
|
||||||
enum class DICommand : u8
|
enum class DICommand : u8
|
||||||
{
|
{
|
||||||
Inquiry = 0x12,
|
Inquiry = 0x12,
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
#include "AudioCommon/SoundStream.h"
|
#include "AudioCommon/SoundStream.h"
|
||||||
#include "Core/Config/MainSettings.h"
|
#include "Core/Config/MainSettings.h"
|
||||||
|
#include "Core/HW/DVD/DVDInterface.h"
|
||||||
#include "Core/HW/DVD/DVDThread.h"
|
#include "Core/HW/DVD/DVDThread.h"
|
||||||
|
|
||||||
namespace Core
|
namespace Core
|
||||||
|
@ -17,6 +18,7 @@ struct System::Impl
|
||||||
bool m_sound_stream_running = false;
|
bool m_sound_stream_running = false;
|
||||||
bool m_audio_dump_started = false;
|
bool m_audio_dump_started = false;
|
||||||
|
|
||||||
|
DVDInterface::DVDInterfaceState m_dvd_interface_state;
|
||||||
DVDThread::DVDThreadState m_dvd_thread_state;
|
DVDThread::DVDThreadState m_dvd_thread_state;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -62,6 +64,11 @@ void System::SetAudioDumpStarted(bool started)
|
||||||
m_impl->m_audio_dump_started = started;
|
m_impl->m_audio_dump_started = started;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DVDInterface::DVDInterfaceState& System::GetDVDInterfaceState() const
|
||||||
|
{
|
||||||
|
return m_impl->m_dvd_interface_state;
|
||||||
|
}
|
||||||
|
|
||||||
DVDThread::DVDThreadState& System::GetDVDThreadState() const
|
DVDThread::DVDThreadState& System::GetDVDThreadState() const
|
||||||
{
|
{
|
||||||
return m_impl->m_dvd_thread_state;
|
return m_impl->m_dvd_thread_state;
|
||||||
|
|
|
@ -7,6 +7,10 @@
|
||||||
|
|
||||||
class SoundStream;
|
class SoundStream;
|
||||||
|
|
||||||
|
namespace DVDInterface
|
||||||
|
{
|
||||||
|
class DVDInterfaceState;
|
||||||
|
}
|
||||||
namespace DVDThread
|
namespace DVDThread
|
||||||
{
|
{
|
||||||
class DVDThreadState;
|
class DVDThreadState;
|
||||||
|
@ -45,6 +49,7 @@ public:
|
||||||
bool IsAudioDumpStarted() const;
|
bool IsAudioDumpStarted() const;
|
||||||
void SetAudioDumpStarted(bool started);
|
void SetAudioDumpStarted(bool started);
|
||||||
|
|
||||||
|
DVDInterface::DVDInterfaceState& GetDVDInterfaceState() const;
|
||||||
DVDThread::DVDThreadState& GetDVDThreadState() const;
|
DVDThread::DVDThreadState& GetDVDThreadState() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Reference in New Issue