- neutrino: add version_pseudo.h to allow changes ...

by comparing old version_pseudo with new one
This commit is contained in:
svenhoefer
2016-03-03 09:04:05 +01:00
committed by M. Liebmann
parent d5b00e9798
commit 273dc68da5
3 changed files with 8 additions and 0 deletions

View File

@@ -47,6 +47,7 @@
#include "global.h" #include "global.h"
#include "neutrino.h" #include "neutrino.h"
#include "version_pseudo.h"
#include <daemonc/remotecontrol.h> #include <daemonc/remotecontrol.h>
@@ -909,6 +910,8 @@ int CNeutrinoApp::loadSetup(const char * fname)
g_settings.livestreamResolution = configfile.getInt32("livestreamResolution", 1920); g_settings.livestreamResolution = configfile.getInt32("livestreamResolution", 1920);
g_settings.livestreamScriptPath = configfile.getString("livestreamScriptPath", PLUGINDIR_VAR "/webtv"); g_settings.livestreamScriptPath = configfile.getString("livestreamScriptPath", PLUGINDIR_VAR "/webtv");
g_settings.version_pseudo = configfile.getString("version_pseudo", "19700101000000");
if(erg) if(erg)
configfile.setModifiedFlag(true); configfile.setModifiedFlag(true);
return erg; return erg;
@@ -1348,6 +1351,8 @@ void CNeutrinoApp::saveSetup(const char * fname)
configfile.setInt32("livestreamResolution", g_settings.livestreamResolution); configfile.setInt32("livestreamResolution", g_settings.livestreamResolution);
configfile.setString("livestreamScriptPath", g_settings.livestreamScriptPath); configfile.setString("livestreamScriptPath", g_settings.livestreamScriptPath);
configfile.setString("version_pseudo", g_settings.version_pseudo);
if(strcmp(fname, NEUTRINO_SETTINGS_FILE) || configfile.getModifiedFlag()) if(strcmp(fname, NEUTRINO_SETTINGS_FILE) || configfile.getModifiedFlag())
configfile.saveConfig(fname); configfile.saveConfig(fname);
} }

View File

@@ -137,6 +137,8 @@ struct SNeutrinoTheme
struct SNeutrinoSettings struct SNeutrinoSettings
{ {
std::string version_pseudo;
//video //video
int video_Format; int video_Format;
int video_Mode; int video_Mode;

1
version_pseudo.h Normal file
View File

@@ -0,0 +1 @@
#define NEUTRINO_VERSION_PSEUDO "19700101000000"