mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-02 07:39:49 -04:00
htc: implement remaining htclow::HtclowManagerImpl funcs (mux impls pending)
This commit is contained in:
parent
e20c2450ce
commit
87165e0f08
11 changed files with 190 additions and 34 deletions
|
@ -49,9 +49,17 @@ namespace ams::htclow::driver {
|
|||
return htclow::ResultUnknownDriverType();
|
||||
}
|
||||
|
||||
/* Set the driver type. */
|
||||
m_driver_type = driver_type;
|
||||
|
||||
return ResultSuccess();
|
||||
}
|
||||
|
||||
impl::DriverType DriverManager::GetDriverType() {
|
||||
/* Lock ourselves. */
|
||||
return m_driver_type.value_or(impl::DriverType::Unknown);
|
||||
}
|
||||
|
||||
IDriver *DriverManager::GetCurrentDriver() {
|
||||
/* Lock ourselves. */
|
||||
std::scoped_lock lk(m_mutex);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue