mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-04-29 06:49:24 -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 name = Cap_getDeviceName(m_ctx, deviceNo);
|
||||
DeviceInfo info;
|
||||
info.uniqueId = uniqueId;
|
||||
|
||||
if (name)
|
||||
infos.emplace_back(DeviceInfo{std::string(uniqueId), fmt::format("{}: {}", deviceNo + 1, name)});
|
||||
info.name = fmt::format("{}: {}", deviceNo + 1, name);
|
||||
else
|
||||
infos.emplace_back(DeviceInfo(std::string(uniqueId), fmt::format("{}: Unknown", deviceNo + 1)));
|
||||
info.name = fmt::format("{}: Unknown", deviceNo + 1);
|
||||
}
|
||||
return infos;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue