mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-04-29 14:59:26 -04:00
macOS compile error fix attempt no. 4
This commit is contained in:
parent
5fe8d8d90a
commit
3a88019cb2
1 changed files with 4 additions and 2 deletions
|
@ -60,11 +60,13 @@ std::vector<CameraManager::DeviceInfo> CameraManager::EnumerateDevices()
|
||||||
{
|
{
|
||||||
const auto uniqueId = Cap_getDeviceUniqueID(m_ctx, deviceNo);
|
const auto uniqueId = Cap_getDeviceUniqueID(m_ctx, deviceNo);
|
||||||
const auto name = Cap_getDeviceName(m_ctx, deviceNo);
|
const auto name = Cap_getDeviceName(m_ctx, deviceNo);
|
||||||
|
DeviceInfo info;
|
||||||
|
info.uniqueId = uniqueId;
|
||||||
|
|
||||||
if (name)
|
if (name)
|
||||||
infos.emplace_back(DeviceInfo{std::string(uniqueId), fmt::format("{}: {}", deviceNo + 1, name)});
|
info.name = fmt::format("{}: {}", deviceNo + 1, name);
|
||||||
else
|
else
|
||||||
infos.emplace_back(DeviceInfo(std::string(uniqueId), fmt::format("{}: Unknown", deviceNo + 1)));
|
info.name = fmt::format("{}: Unknown", deviceNo + 1);
|
||||||
}
|
}
|
||||||
return infos;
|
return infos;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue