VSH/UI: Add VSH to game grid

* Custom VSH config.
* VSH shortcut creation.
This commit is contained in:
Eladash 2023-01-06 14:00:24 +02:00 committed by Megamouse
parent 8cf28730cb
commit 8eefbcae45
8 changed files with 122 additions and 65 deletions

View file

@ -8,6 +8,7 @@
#include "Emu/System.h"
#include "Emu/system_config.h"
#include "Emu/vfs_config.h"
#include "Emu/system_utils.hpp"
#include "Emu/Cell/Modules/cellSysutil.h"
#include "Emu/Io/Keyboard.h"
@ -136,10 +137,9 @@ void emu_settings::LoadSettings(const std::string& title_id)
// Otherwise we'll always trigger the "obsolete settings dialog" when editing custom configs.
ValidateSettings(true);
const std::string config_path = rpcs3::utils::get_custom_config_path(m_title_id);
std::string custom_config_path;
if (fs::is_file(config_path))
if (std::string config_path = rpcs3::utils::get_custom_config_path(m_title_id); fs::is_file(config_path))
{
custom_config_path = config_path;
}