sys_net improvements (#15584)

Also remove redundant ensures
This commit is contained in:
RipleyTom 2024-05-13 04:35:08 +02:00 committed by GitHub
parent fc92aef4d1
commit a50683d6ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 161 additions and 43 deletions

View file

@ -516,7 +516,6 @@ error_code cellAudioOutGetDeviceInfo(u32 audioOut, u32 deviceIndex, vm::ptr<Cell
audio_out_configuration& cfg = g_fxo->get<audio_out_configuration>();
std::lock_guard lock(cfg.mtx);
ensure(audioOut < cfg.out.size());
const audio_out_configuration::audio_out& out = ::at32(cfg.out, audioOut);
ensure(out.sound_modes.size() <= 16);