forked from libretro/Lakka-LibreELEC
45 lines
1.8 KiB
Diff
45 lines
1.8 KiB
Diff
Subject: disable online check
|
|
|
|
---
|
|
--- a/xbmc/GUIInfoManager.cpp
|
|
+++ b/xbmc/GUIInfoManager.cpp
|
|
@@ -1921,7 +1921,6 @@ const infomap system_labels[] = {
|
|
{"currentcontrol", SYSTEM_CURRENT_CONTROL},
|
|
{"currentcontrolid", SYSTEM_CURRENT_CONTROL_ID},
|
|
{"dvdlabel", SYSTEM_DVD_LABEL},
|
|
- {"internetstate", SYSTEM_INTERNET_STATE},
|
|
{"osversioninfo", SYSTEM_OS_VERSION_INFO},
|
|
{"kernelversion", SYSTEM_OS_VERSION_INFO}, // old, not correct name
|
|
{"uptime", SYSTEM_UPTIME},
|
|
--- a/xbmc/utils/SystemInfo.cpp
|
|
+++ b/xbmc/utils/SystemInfo.cpp
|
|
@@ -275,7 +275,6 @@ bool CSysInfoJob::DoWork()
|
|
{
|
|
m_info.systemUptime = GetSystemUpTime(false);
|
|
m_info.systemTotalUptime = GetSystemUpTime(true);
|
|
- m_info.internetState = GetInternetState();
|
|
m_info.videoEncoder = GetVideoEncoder();
|
|
m_info.cpuFrequency =
|
|
StringUtils::Format("{:4.0f} MHz", CServiceBroker::GetCPUInfo()->GetCPUFrequency());
|
|
@@ -1021,9 +1020,7 @@ int CSysInfo::GetXbmcBitness(void)
|
|
|
|
bool CSysInfo::HasInternet()
|
|
{
|
|
- if (m_info.internetState != CSysData::UNKNOWN)
|
|
- return m_info.internetState == CSysData::CONNECTED;
|
|
- return (m_info.internetState = CSysInfoJob::GetInternetState()) == CSysData::CONNECTED;
|
|
+ return m_info.internetState == CSysData::UNKNOWN;
|
|
}
|
|
|
|
std::string CSysInfo::GetHddSpaceInfo(int drive, bool shortText)
|
|
--- a/xbmc/windows/GUIWindowSystemInfo.cpp
|
|
+++ b/xbmc/windows/GUIWindowSystemInfo.cpp
|
|
@@ -126,7 +126,6 @@ void CGUIWindowSystemInfo::FrameMove()
|
|
SetControlLabel(i++, "{}: {}", 13160, NETWORK_GATEWAY_ADDRESS);
|
|
SetControlLabel(i++, "{}: {}", 13161, NETWORK_DNS1_ADDRESS);
|
|
SetControlLabel(i++, "{}: {}", 20307, NETWORK_DNS2_ADDRESS);
|
|
- SetControlLabel(i++, "{} {}", 13295, SYSTEM_INTERNET_STATE);
|
|
}
|
|
|
|
else if (m_section == CONTROL_BT_VIDEO)
|