mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 00:11:24 +12:00
Fake PSN (#7516)
This commit is contained in:
parent
bb1b4bac9b
commit
f1f5c91386
22 changed files with 2198 additions and 788 deletions
|
@ -10,6 +10,7 @@
|
|||
#include "Utilities/StrUtil.h"
|
||||
|
||||
#include <QMessageBox>
|
||||
#include <QLineEdit>
|
||||
|
||||
#if defined(_WIN32) || defined(HAVE_VULKAN)
|
||||
#include "Emu/RSX/VK/VKHelpers.h"
|
||||
|
@ -551,6 +552,23 @@ void emu_settings::EnhanceDoubleSpinBox(QDoubleSpinBox* spinbox, SettingsType ty
|
|||
});
|
||||
}
|
||||
|
||||
void emu_settings::EnhanceEdit(QLineEdit* edit, SettingsType type)
|
||||
{
|
||||
if (!edit)
|
||||
{
|
||||
cfg_log.fatal("EnhanceEdit '%s' was used with an invalid object", GetSettingName(type));
|
||||
return;
|
||||
}
|
||||
|
||||
const std::string set_text = GetSetting(type);
|
||||
edit->setText(qstr(set_text));
|
||||
|
||||
connect(edit, &QLineEdit::textChanged, [=, this](const QString &text)
|
||||
{
|
||||
SetSetting(type, sstr(text));
|
||||
});
|
||||
}
|
||||
|
||||
std::vector<std::string> emu_settings::GetLoadedLibraries()
|
||||
{
|
||||
return m_currentSettings["Core"]["Load libraries"].as<std::vector<std::string>, std::initializer_list<std::string>>({});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue