Imported the check for updates code from StepMania AMX.
--- TODO: Move the code from NSMAN to a new class TODO: HOOKS->GetURL for Linux TODO: Do not run the check every time the game is launched, use: PREFSMAN->m_iUpdateCheckIntervalSeconds - Seconds to wait before running the next check PREFSMAN->m_iUpdateCheckLastCheckedSecond - Timestamp of the last check
This commit is contained in:
@@ -300,6 +300,17 @@ public:
|
||||
|
||||
#if !defined(WITHOUT_NETWORKING)
|
||||
Preference<bool> m_bEnableScoreboard; //Alows disabling of scoreboard in network play
|
||||
|
||||
#if defined(HAVE_VERSION_INFO)
|
||||
// Check for Updates code
|
||||
Preference<bool> m_bUpdateCheckEnable;
|
||||
// TODO - Aldo_MX: Use PREFSMAN->m_iUpdateCheckIntervalSeconds & PREFSMAN->m_iUpdateCheckLastCheckedSecond
|
||||
//Preference<int> m_iUpdateCheckIntervalSeconds;
|
||||
//Preference<int> m_iUpdateCheckLastCheckedSecond;
|
||||
|
||||
// TODO - Aldo_MX: Write helpers in LuaManager.cpp to treat unsigned int/long like LUA Numbers
|
||||
//Preference<unsigned long> m_uUpdateCheckLastCheckedBuild;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
void ReadPrefsFromIni( const IniFile &ini, const RString &sSection, bool bIsStatic );
|
||||
|
||||
Reference in New Issue
Block a user