| 81 | return std::nullopt; |
| 82 | } |
| 83 | std::optional<std::reference_wrapper<Sound>> Data::getSound(const std::uint32_t &id) |
| 84 | { |
| 85 | auto scopedSounds = Globals::gSounds.scoped(); |
| 86 | if (scopedSounds->find(id) != scopedSounds->end()) |
| 87 | { |
| 88 | return scopedSounds->at(id); |
| 89 | } |
| 90 | |
| 91 | Fancy::fancy.logTime().warning() << "Tried to access non existent sound " << id << std::endl; |
| 92 | return std::nullopt; |
| 93 | } |
| 94 | std::optional<Tab> Data::setTab(const std::uint32_t &id, const Tab &tab) |
| 95 | { |
| 96 | if (tabs.size() > id) |
no outgoing calls
no test coverage detected