Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- a/addons/resource.language.en_gb/resources/strings.po
- +++ b/addons/resource.language.en_gb/resources/strings.po
- @@ -19787,3 +19787,9 @@
- msgctxt "#39010"
- msgid "Select sort method"
- msgstr ""
- +
- +#. used for Kernel version in Systeminfo
- +#: /xbmc/windows/GUIWindowSystemInfo.cpp
- +msgctxt "#98765"
- +msgid "Kernel:"
- +msgstr ""
- --- a/xbmc/guiinfo/GUIInfoLabels.h
- +++ b/xbmc/guiinfo/GUIInfoLabels.h
- @@ -379,6 +379,7 @@
- #define SYSTEM_SCREEN_RESOLUTION 659
- #define SYSTEM_VIDEO_ENCODER_INFO 660
- #define SYSTEM_OS_VERSION_INFO 667
- +#define SYSTEM_KERNEL_VERSION_INFO 668
- #define SYSTEM_FREE_SPACE 679
- #define SYSTEM_USED_SPACE 680
- #define SYSTEM_TOTAL_SPACE 681
- --- a/xbmc/windows/GUIWindowSystemInfo.cpp
- +++ b/xbmc/windows/GUIWindowSystemInfo.cpp
- @@ -107,6 +107,7 @@
- SetControlLabel(i++, "%s: %s", 150, NETWORK_IP_ADDRESS);
- SetControlLabel(i++, "%s %s", 13287, SYSTEM_SCREEN_RESOLUTION);
- SetControlLabel(i++, "%s %s", 13283, SYSTEM_OS_VERSION_INFO);
- + SetControlLabel(i++, "%s %s", 98765, SYSTEM_KERNEL_VERSION_INFO);
- SetControlLabel(i++, "%s: %s", 12390, SYSTEM_UPTIME);
- SetControlLabel(i++, "%s: %s", 12394, SYSTEM_TOTALUPTIME);
- SetControlLabel(i++, "%s: %s", 12395, SYSTEM_BATTERY_LEVEL);
- --- a/xbmc/utils/SystemInfo.h
- +++ b/xbmc/utils/SystemInfo.h
- @@ -52,6 +52,7 @@
- std::string videoEncoder;
- std::string cpuFrequency;
- std::string osVersionInfo;
- + std::string kernelVersionInfo;
- std::string macAddress;
- std::string batteryLevel;
- };
- --- a/xbmc/utils/SystemInfo.cpp
- +++ b/xbmc/utils/SystemInfo.cpp
- @@ -257,7 +257,8 @@
- m_info.internetState = GetInternetState();
- m_info.videoEncoder = GetVideoEncoder();
- m_info.cpuFrequency = GetCPUFreqInfo();
- - m_info.osVersionInfo = CSysInfo::GetOsPrettyNameWithVersion() + " (kernel: " + CSysInfo::GetKernelName() + " " + CSysInfo::GetKernelVersionFull() + ")";
- + m_info.osVersionInfo = CSysInfo::GetOsPrettyNameWithVersion();
- + m_info.kernelVersionInfo = CSysInfo::GetKernelName() + " " + CSysInfo::GetKernelVersionFull();
- m_info.macAddress = GetMACAddress();
- m_info.batteryLevel = GetBatteryLevel();
- return true;
- @@ -377,6 +378,8 @@
- return m_info.macAddress;
- case SYSTEM_OS_VERSION_INFO:
- return m_info.osVersionInfo;
- + case SYSTEM_KERNEL_VERSION_INFO:
- + return m_info.kernelVersionInfo;
- case SYSTEM_CPUFREQUENCY:
- return m_info.cpuFrequency;
- case SYSTEM_UPTIME:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement