mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 08:51:28 +12:00
Emu/Qt: Fix Boot Recent when using BootGame(add_only=true)
This commit is contained in:
parent
b0a24665e5
commit
b639584acc
9 changed files with 14 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "Utilities/BitField.h"
|
#include "Utilities/BitField.h"
|
||||||
|
|
||||||
|
|
|
@ -607,6 +607,8 @@ bool Emulator::BootGame(const std::string& path, bool direct, bool add_only, boo
|
||||||
"/USRDIR/ISO.BIN.EDAT",
|
"/USRDIR/ISO.BIN.EDAT",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
m_path_old = m_path;
|
||||||
|
|
||||||
if (direct && fs::exists(path))
|
if (direct && fs::exists(path))
|
||||||
{
|
{
|
||||||
m_path = path;
|
m_path = path;
|
||||||
|
@ -1126,6 +1128,7 @@ void Emulator::Load(bool add_only, bool force_global_config)
|
||||||
if (add_only)
|
if (add_only)
|
||||||
{
|
{
|
||||||
LOG_NOTICE(LOADER, "Finished to add data to games.yml by boot for: %s", m_path);
|
LOG_NOTICE(LOADER, "Finished to add data to games.yml by boot for: %s", m_path);
|
||||||
|
m_path = m_path_old; // Reset m_path to fix boot from gui
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -214,6 +214,7 @@ class Emulator final
|
||||||
atomic_t<u64> m_pause_amend_time; // increased when resumed
|
atomic_t<u64> m_pause_amend_time; // increased when resumed
|
||||||
|
|
||||||
std::string m_path;
|
std::string m_path;
|
||||||
|
std::string m_path_old;
|
||||||
std::string m_title_id;
|
std::string m_title_id;
|
||||||
std::string m_title;
|
std::string m_title;
|
||||||
std::string m_cat;
|
std::string m_cat;
|
||||||
|
|
|
@ -291,7 +291,10 @@ void main_window::Boot(const std::string& path, bool direct, bool add_only, bool
|
||||||
{
|
{
|
||||||
LOG_SUCCESS(LOADER, "Boot successful.");
|
LOG_SUCCESS(LOADER, "Boot successful.");
|
||||||
const std::string serial = Emu.GetTitleID().empty() ? "" : "[" + Emu.GetTitleID() + "] ";
|
const std::string serial = Emu.GetTitleID().empty() ? "" : "[" + Emu.GetTitleID() + "] ";
|
||||||
AddRecentAction(gui::Recent_Game(qstr(Emu.GetBoot()), qstr(serial + Emu.GetTitle())));
|
if (!add_only)
|
||||||
|
{
|
||||||
|
AddRecentAction(gui::Recent_Game(qstr(Emu.GetBoot()), qstr(serial + Emu.GetTitle())));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <QWinTaskbarProgress>
|
#include <QWinTaskbarProgress>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
|
|
||||||
#include "msg_dialog_frame.h"
|
#include "msg_dialog_frame.h"
|
||||||
|
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
#include "Emu/Memory/vm.h"
|
#include "Emu/Memory/vm.h"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include "progress_dialog.h"
|
#include "progress_dialog.h"
|
||||||
|
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue