From ed757e69fe5dd05e3fbd6ac9efb11ca59ff7e843 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Thu, 3 Mar 2016 09:04:05 +0100 Subject: [PATCH] neutrino: add version_pseudo.h to allow changes ... by comparing old version_pseudo with new one Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/273dc68da5ebf2afcfb0f2b4ffbcade6b19d98d8 Author: vanhofen Date: 2016-03-03 (Thu, 03 Mar 2016) Origin message was: ------------------ - neutrino: add version_pseudo.h to allow changes ... by comparing old version_pseudo with new one ------------------ This commit was generated by Migit --- src/neutrino.cpp | 5 +++++ src/system/settings.h | 2 ++ version_pseudo.h | 1 + 3 files changed, 8 insertions(+) create mode 100644 version_pseudo.h diff --git a/src/neutrino.cpp b/src/neutrino.cpp index 20ab45c24..028df3ea3 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -47,6 +47,7 @@ #include "global.h" #include "neutrino.h" +#include "version_pseudo.h" #include @@ -909,6 +910,8 @@ int CNeutrinoApp::loadSetup(const char * fname) g_settings.livestreamResolution = configfile.getInt32("livestreamResolution", 1920); g_settings.livestreamScriptPath = configfile.getString("livestreamScriptPath", PLUGINDIR_VAR "/webtv"); + g_settings.version_pseudo = configfile.getString("version_pseudo", "19700101000000"); + if(erg) configfile.setModifiedFlag(true); return erg; @@ -1348,6 +1351,8 @@ void CNeutrinoApp::saveSetup(const char * fname) configfile.setInt32("livestreamResolution", g_settings.livestreamResolution); configfile.setString("livestreamScriptPath", g_settings.livestreamScriptPath); + configfile.setString("version_pseudo", g_settings.version_pseudo); + if(strcmp(fname, NEUTRINO_SETTINGS_FILE) || configfile.getModifiedFlag()) configfile.saveConfig(fname); } diff --git a/src/system/settings.h b/src/system/settings.h index 446a69406..1dede46a9 100644 --- a/src/system/settings.h +++ b/src/system/settings.h @@ -137,6 +137,8 @@ struct SNeutrinoTheme struct SNeutrinoSettings { + std::string version_pseudo; + //video int video_Format; int video_Mode; diff --git a/version_pseudo.h b/version_pseudo.h new file mode 100644 index 000000000..3b2ae8143 --- /dev/null +++ b/version_pseudo.h @@ -0,0 +1 @@ +#define NEUTRINO_VERSION_PSEUDO "19700101000000"