mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-08 16:05:56 +00:00
Implement at32() util
Works like .at() but uses source location for "exception".
This commit is contained in:
parent
2655255d4d
commit
6ff6a4989a
62 changed files with 472 additions and 452 deletions
|
|
@ -38,7 +38,7 @@ namespace utils
|
|||
{
|
||||
if (metadata.contains(key))
|
||||
{
|
||||
return metadata.at(key);
|
||||
return ::at32(metadata, key);
|
||||
}
|
||||
|
||||
return def;
|
||||
|
|
@ -50,7 +50,7 @@ namespace utils
|
|||
if (metadata.contains(key))
|
||||
{
|
||||
s64 result{};
|
||||
if (try_to_int64(&result, metadata.at(key), smin, smax))
|
||||
if (try_to_int64(&result, ::at32(metadata, key), smin, smax))
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
|
@ -468,9 +468,9 @@ namespace utils
|
|||
while (thread_ctrl::state() != thread_state::aborting)
|
||||
{
|
||||
ensure(m_context.current_track < m_context.playlist.size());
|
||||
media_log.notice("audio_decoder: about to decode: %s (index=%d)", m_context.playlist.at(m_context.current_track), m_context.current_track);
|
||||
media_log.notice("audio_decoder: about to decode: %s (index=%d)", ::at32(m_context.playlist, m_context.current_track), m_context.current_track);
|
||||
|
||||
decode_track(m_context.playlist.at(m_context.current_track));
|
||||
decode_track(::at32(m_context.playlist, m_context.current_track));
|
||||
track_fully_decoded = true;
|
||||
|
||||
if (has_error)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue