mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 09:48:37 +12:00
Qt: check microphone permissions
This commit is contained in:
parent
3420cb0365
commit
e5b03d9cbd
2 changed files with 41 additions and 0 deletions
|
@ -87,6 +87,7 @@ extern std::pair<std::shared_ptr<lv2_overlay>, CellError> ppu_load_overlay(const
|
|||
extern bool ppu_load_rel_exec(const ppu_rel_object&);
|
||||
|
||||
extern void send_close_home_menu_cmds();
|
||||
extern void check_microphone_permissions();
|
||||
|
||||
extern void signal_system_cache_can_stay();
|
||||
|
||||
|
@ -1722,6 +1723,15 @@ game_boot_result Emulator::Load(const std::string& title_id, bool is_disc_patch,
|
|||
return game_boot_result::no_errors;
|
||||
}
|
||||
|
||||
// Check microphone permissions
|
||||
if (g_cfg.audio.microphone_type != microphone_handler::null)
|
||||
{
|
||||
if (const std::vector<std::string> device_list = fmt::split(g_cfg.audio.microphone_devices.to_string(), {"@@@"}); !device_list.empty())
|
||||
{
|
||||
check_microphone_permissions();
|
||||
}
|
||||
}
|
||||
|
||||
// Detect boot location
|
||||
const std::string hdd0_game = vfs::get("/dev_hdd0/game/");
|
||||
const bool from_hdd0_game = IsPathInsideDir(m_path, hdd0_game);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue