Implement at32() util

Works like .at() but uses source location for "exception".
This commit is contained in:
Nekotekina 2022-09-19 15:57:51 +03:00 committed by Ivan
parent 2655255d4d
commit 6ff6a4989a
62 changed files with 472 additions and 452 deletions

View file

@ -1939,7 +1939,7 @@ namespace rpcn
{
{
std::lock_guard lock(mutex_messages);
return messages.at(id);
return ::at32(messages, id);
}
}
@ -1950,7 +1950,7 @@ namespace rpcn
std::lock_guard lock(mutex_messages);
for (auto id : active_messages)
{
const auto& entry = messages.at(id);
const auto& entry = ::at32(messages, id);
const auto& msg = entry->second;
if (msg.mainType == type_filter && (include_bootable || !(msg.msgFeatures & SCE_NP_BASIC_MESSAGE_FEATURES_BOOTABLE)))
{