mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-07-10 09:34:40 -06:00
macOS compile error fix attempt no. 4
This commit is contained in:
parent
5fe8d8d90a
commit
3a88019cb2
@ -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…
Reference in New Issue
Block a user