From 4a50cf1d3a3f4b65753429cd2b93135b5eb32081 Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 12 Mar 2016 21:54:44 +0100 Subject: [PATCH] Changed: Read/write shortcuts --HG-- branch : feature-ryzom-installer --- code/ryzom/tools/client/ryzom_installer/src/configfile.cpp | 4 ++++ code/ryzom/tools/client/ryzom_installer/src/configfile.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/code/ryzom/tools/client/ryzom_installer/src/configfile.cpp b/code/ryzom/tools/client/ryzom_installer/src/configfile.cpp index 1be9cdfe7..b3b41cfde 100644 --- a/code/ryzom/tools/client/ryzom_installer/src/configfile.cpp +++ b/code/ryzom/tools/client/ryzom_installer/src/configfile.cpp @@ -112,6 +112,8 @@ bool CConfigFile::load(const QString &filename) profile.executable = settings.value("executable").toString(); profile.arguments = settings.value("arguments").toString(); profile.comments = settings.value("comments").toString(); + profile.desktopShortcut = settings.value("desktop_shortcut").toBool(); + profile.menuShortcut = settings.value("menu_shortcut").toBool(); settings.endGroup(); } @@ -180,6 +182,8 @@ bool CConfigFile::save() const settings.setValue("executable", profile.executable); settings.setValue("arguments", profile.arguments); settings.setValue("comments", profile.comments); + settings.setValue("desktop_shortcut", profile.desktopShortcut); + settings.setValue("menu_shortcut", profile.menuShortcut); settings.endGroup(); } diff --git a/code/ryzom/tools/client/ryzom_installer/src/configfile.h b/code/ryzom/tools/client/ryzom_installer/src/configfile.h index 5b2a15f6f..32bfb99c6 100644 --- a/code/ryzom/tools/client/ryzom_installer/src/configfile.h +++ b/code/ryzom/tools/client/ryzom_installer/src/configfile.h @@ -47,6 +47,8 @@ struct CProfile CProfile() { id = -1; + desktopShortcut = false; + menuShortcut = false; } int id; @@ -56,6 +58,8 @@ struct CProfile QString executable; QString arguments; QString comments; + bool desktopShortcut; + bool menuShortcut; }; extern const CProfile NoProfile;