mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-18 14:40:56 +00:00
Persist the IsAppCollectorGame attribute
This commit is contained in:
@@ -19,6 +19,7 @@
|
|||||||
#define SER_APPNAME "name"
|
#define SER_APPNAME "name"
|
||||||
#define SER_APPID "id"
|
#define SER_APPID "id"
|
||||||
#define SER_APPHDR "hdr"
|
#define SER_APPHDR "hdr"
|
||||||
|
#define SER_APPCOLLECTOR "appcollector"
|
||||||
|
|
||||||
NvComputer::NvComputer(QSettings& settings)
|
NvComputer::NvComputer(QSettings& settings)
|
||||||
{
|
{
|
||||||
@@ -41,6 +42,7 @@ NvComputer::NvComputer(QSettings& settings)
|
|||||||
app.name = settings.value(SER_APPNAME).toString();
|
app.name = settings.value(SER_APPNAME).toString();
|
||||||
app.id = settings.value(SER_APPID).toInt();
|
app.id = settings.value(SER_APPID).toInt();
|
||||||
app.hdrSupported = settings.value(SER_APPHDR).toBool();
|
app.hdrSupported = settings.value(SER_APPHDR).toBool();
|
||||||
|
app.isAppCollectorGame = settings.value(SER_APPCOLLECTOR).toBool();
|
||||||
|
|
||||||
this->appList.append(app);
|
this->appList.append(app);
|
||||||
}
|
}
|
||||||
@@ -83,6 +85,7 @@ void NvComputer::serialize(QSettings& settings) const
|
|||||||
settings.setValue(SER_APPNAME, appList[i].name);
|
settings.setValue(SER_APPNAME, appList[i].name);
|
||||||
settings.setValue(SER_APPID, appList[i].id);
|
settings.setValue(SER_APPID, appList[i].id);
|
||||||
settings.setValue(SER_APPHDR, appList[i].hdrSupported);
|
settings.setValue(SER_APPHDR, appList[i].hdrSupported);
|
||||||
|
settings.setValue(SER_APPCOLLECTOR, appList[i].isAppCollectorGame);
|
||||||
}
|
}
|
||||||
settings.endArray();
|
settings.endArray();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user