mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 17:01:24 +12:00
Qt: Add missing Boot confirmation
This commit is contained in:
parent
00618995d9
commit
57473ff98d
1 changed files with 11 additions and 0 deletions
|
@ -1938,6 +1938,11 @@ void main_window::CreateConnects()
|
||||||
|
|
||||||
connect(ui->addGamesAct, &QAction::triggered, this, [this]()
|
connect(ui->addGamesAct, &QAction::triggered, this, [this]()
|
||||||
{
|
{
|
||||||
|
if (!m_gui_settings->GetBootConfirmation(this))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
QStringList paths;
|
QStringList paths;
|
||||||
|
|
||||||
// Only select one folder for now
|
// Only select one folder for now
|
||||||
|
@ -2661,6 +2666,8 @@ void main_window::CreateFirmwareCache()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Emu.SetForceBoot(true);
|
||||||
|
Emu.Stop();
|
||||||
Emu.SetForceBoot(true);
|
Emu.SetForceBoot(true);
|
||||||
|
|
||||||
if (const game_boot_result error = Emu.BootGame(g_cfg.vfs.get_dev_flash() + "sys", "", true);
|
if (const game_boot_result error = Emu.BootGame(g_cfg.vfs.get_dev_flash() + "sys", "", true);
|
||||||
|
@ -2888,6 +2895,10 @@ void main_window::dropEvent(QDropEvent* event)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Emu.SetForceBoot(true);
|
||||||
|
Emu.Stop();
|
||||||
|
|
||||||
if (const auto error = Emu.BootGame(sstr(drop_paths.first()), "", true); error != game_boot_result::no_errors)
|
if (const auto error = Emu.BootGame(sstr(drop_paths.first()), "", true); error != game_boot_result::no_errors)
|
||||||
{
|
{
|
||||||
gui_log.error("Boot failed: reason: %s, path: %s", error, sstr(drop_paths.first()));
|
gui_log.error("Boot failed: reason: %s, path: %s", error, sstr(drop_paths.first()));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue