Warn when starting a game with remote desktop mouse mode enabled

This commit is contained in:
Cameron Gutman 2020-04-25 23:50:12 -07:00
parent 43d79673e1
commit f749b38aa2
3 changed files with 8 additions and 0 deletions

View file

@ -281,6 +281,9 @@ NvHTTP::getAppList()
else if (name == "IsHdrSupported") {
apps.last().hdrSupported = xmlReader.readElementText() == "1";
}
else if (name == "IsAppCollectorGame") {
apps.last().isAppCollectorGame = xmlReader.readElementText() == "1";
}
}
}

View file

@ -24,6 +24,7 @@ public:
int id;
QString name;
bool hdrSupported;
bool isAppCollectorGame;
};
Q_DECLARE_METATYPE(NvApp)

View file

@ -517,6 +517,10 @@ bool Session::validateLaunch(SDL_Window* testWindow)
{
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->videoCodecConfig == StreamingPreferences::VCC_FORCE_HEVC_HDR) {
emitLaunchWarning("HDR is not supported with software decoding.");