mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-01-09 16:35:13 +00:00
30 lines
587 B
C
30 lines
587 B
C
|
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
|
||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include <QString>
|
||
|
#include <QVariant>
|
||
|
|
||
|
struct GuiSave {
|
||
|
QString key;
|
||
|
QString name;
|
||
|
QVariant def;
|
||
|
|
||
|
GuiSave() {
|
||
|
key = "";
|
||
|
name = "";
|
||
|
def = QVariant();
|
||
|
}
|
||
|
|
||
|
GuiSave(const QString& k, const QString& n, const QVariant& d) {
|
||
|
key = k;
|
||
|
name = n;
|
||
|
def = d;
|
||
|
}
|
||
|
|
||
|
bool operator==(const GuiSave& rhs) const noexcept {
|
||
|
return key == rhs.key && name == rhs.name && def == rhs.def;
|
||
|
}
|
||
|
};
|