mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-04 23:55:08 +01:00
Support passing additional constructor arguments to nvdrv devices
Needed for host1x channels which use the same class for multiple types.
This commit is contained in:
parent
eb6f052873
commit
b0a5dab0f7
@ -23,12 +23,12 @@ namespace skyline::service::nvdrv {
|
||||
break; \
|
||||
}
|
||||
|
||||
#define DEVICE_CASE(path, object) \
|
||||
case util::Hash(path): \
|
||||
{ \
|
||||
std::unique_lock lock(deviceMutex); \
|
||||
devices.emplace(fd, std::make_unique<device::object>(state, *this, core, ctx)); \
|
||||
return NvResult::Success; \
|
||||
#define DEVICE_CASE(path, object, ...) \
|
||||
case util::Hash(path): \
|
||||
{ \
|
||||
std::unique_lock lock(deviceMutex); \
|
||||
devices.emplace(fd, std::make_unique<device::object>(state, *this, core, ctx, ##__VA_ARGS__)); \
|
||||
return NvResult::Success; \
|
||||
}
|
||||
|
||||
DEVICE_SWITCH(
|
||||
|
Loading…
Reference in New Issue
Block a user