Qt: Add reload button to postprocessing UI

This commit is contained in:
Connor McLaughlin
2020-09-13 20:21:33 +10:00
parent 7a5f167c1c
commit 3232e3b164
5 changed files with 35 additions and 1 deletions

View File

@ -1024,7 +1024,7 @@ void QtHostInterface::setCheatEnabled(quint32 index, bool enabled)
SetCheatCodeState(index, enabled, g_settings.auto_load_cheats);
}
void QtHostInterface::applyCheat(u32 index)
void QtHostInterface::applyCheat(quint32 index)
{
if (!isOnWorkerThread())
{
@ -1035,6 +1035,17 @@ void QtHostInterface::applyCheat(u32 index)
ApplyCheatCode(index);
}
void QtHostInterface::reloadPostProcessingShaders()
{
if (!isOnWorkerThread())
{
QMetaObject::invokeMethod(this, "reloadPostProcessingShaders", Qt::QueuedConnection);
return;
}
ReloadPostProcessingShaders();
}
void QtHostInterface::loadState(const QString& filename)
{
if (!isOnWorkerThread())