mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
- neutrino: add version_pseudo.h to allow changes ...
by comparing old version_pseudo with new one
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
@@ -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
1
version_pseudo.h
Normal file
@@ -0,0 +1 @@
|
|||||||
|
#define NEUTRINO_VERSION_PSEUDO "19700101000000"
|
Reference in New Issue
Block a user