mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-03 08:15:37 +00:00
Warn when starting a game with remote desktop mouse mode enabled
This commit is contained in:
parent
43d79673e1
commit
f749b38aa2
@ -281,6 +281,9 @@ NvHTTP::getAppList()
|
|||||||
else if (name == "IsHdrSupported") {
|
else if (name == "IsHdrSupported") {
|
||||||
apps.last().hdrSupported = xmlReader.readElementText() == "1";
|
apps.last().hdrSupported = xmlReader.readElementText() == "1";
|
||||||
}
|
}
|
||||||
|
else if (name == "IsAppCollectorGame") {
|
||||||
|
apps.last().isAppCollectorGame = xmlReader.readElementText() == "1";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,6 +24,7 @@ public:
|
|||||||
int id;
|
int id;
|
||||||
QString name;
|
QString name;
|
||||||
bool hdrSupported;
|
bool hdrSupported;
|
||||||
|
bool isAppCollectorGame;
|
||||||
};
|
};
|
||||||
|
|
||||||
Q_DECLARE_METATYPE(NvApp)
|
Q_DECLARE_METATYPE(NvApp)
|
||||||
|
@ -517,6 +517,10 @@ bool Session::validateLaunch(SDL_Window* testWindow)
|
|||||||
{
|
{
|
||||||
QStringList warningList;
|
QStringList warningList;
|
||||||
|
|
||||||
|
if (m_Preferences->absoluteMouseMode && !m_App.isAppCollectorGame) {
|
||||||
|
emitLaunchWarning("Your selection to enable remote desktop mouse mode may cause problems in games.");
|
||||||
|
}
|
||||||
|
|
||||||
if (m_Preferences->videoDecoderSelection == StreamingPreferences::VDS_FORCE_SOFTWARE) {
|
if (m_Preferences->videoDecoderSelection == StreamingPreferences::VDS_FORCE_SOFTWARE) {
|
||||||
if (m_Preferences->videoCodecConfig == StreamingPreferences::VCC_FORCE_HEVC_HDR) {
|
if (m_Preferences->videoCodecConfig == StreamingPreferences::VCC_FORCE_HEVC_HDR) {
|
||||||
emitLaunchWarning("HDR is not supported with software decoding.");
|
emitLaunchWarning("HDR is not supported with software decoding.");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user