mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-05-07 13:37:46 +00:00
Only set db_config if we boot with a title_id
This commit is contained in:
parent
985703058b
commit
7ea0a96d02
1 changed files with 7 additions and 1 deletions
|
|
@ -554,7 +554,7 @@ void main_window::Boot(const std::string& path, const std::string& title_id, boo
|
|||
|
||||
m_app_icon = gui::utils::get_app_icon_from_path(path, title_id);
|
||||
|
||||
std::string db_config;
|
||||
std::optional<std::string> db_config = std::nullopt;
|
||||
|
||||
// Get database config if possible or if we are in database_config mode (to ensure we see an error on invalid use)
|
||||
if (config_database* db = m_game_list_frame->GetConfigDatabase();
|
||||
|
|
@ -572,6 +572,10 @@ void main_window::Boot(const std::string& path, const std::string& title_id, boo
|
|||
gui_log.notice("Found database config for: '%s'", title_id);
|
||||
db_config = *config;
|
||||
}
|
||||
else if (!title_id.empty())
|
||||
{
|
||||
db_config = std::string(); // Set empty string to prevent another check in the emulator code
|
||||
}
|
||||
|
||||
if (const auto error = Emu.BootGame(path, title_id, direct, config_mode, config_path, db_config); error != game_boot_result::no_errors)
|
||||
{
|
||||
|
|
@ -4229,6 +4233,8 @@ void main_window::dropEvent(QDropEvent* event)
|
|||
|
||||
const std::string path = drop_paths.first().toStdString();
|
||||
|
||||
gui_log.notice("Booting from drag and drop...");
|
||||
|
||||
if (const auto error = Emu.BootGame(path, "", true); error != game_boot_result::no_errors)
|
||||
{
|
||||
gui_log.error("Boot failed: reason: %s, path: %s", error, path);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue