Advertisement
Guest User

Untitled

a guest
Mar 9th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.48 KB | None | 0 0
  1. --- a/addons/resource.language.en_gb/resources/strings.po
  2. +++ b/addons/resource.language.en_gb/resources/strings.po
  3. @@ -19787,3 +19787,9 @@
  4.  msgctxt "#39010"
  5.  msgid "Select sort method"
  6.  msgstr ""
  7. +
  8. +#. used for Kernel version in Systeminfo
  9. +#: /xbmc/windows/GUIWindowSystemInfo.cpp
  10. +msgctxt "#98765"
  11. +msgid "Kernel:"
  12. +msgstr ""
  13. --- a/xbmc/guiinfo/GUIInfoLabels.h
  14. +++ b/xbmc/guiinfo/GUIInfoLabels.h
  15. @@ -379,6 +379,7 @@
  16.  #define SYSTEM_SCREEN_RESOLUTION    659
  17.  #define SYSTEM_VIDEO_ENCODER_INFO   660
  18.  #define SYSTEM_OS_VERSION_INFO      667
  19. +#define SYSTEM_KERNEL_VERSION_INFO  668
  20.  #define SYSTEM_FREE_SPACE           679
  21.  #define SYSTEM_USED_SPACE           680
  22.  #define SYSTEM_TOTAL_SPACE          681
  23. --- a/xbmc/windows/GUIWindowSystemInfo.cpp
  24. +++ b/xbmc/windows/GUIWindowSystemInfo.cpp
  25. @@ -107,6 +107,7 @@
  26.      SetControlLabel(i++, "%s: %s", 150, NETWORK_IP_ADDRESS);
  27.      SetControlLabel(i++, "%s %s", 13287, SYSTEM_SCREEN_RESOLUTION);
  28.      SetControlLabel(i++, "%s %s", 13283, SYSTEM_OS_VERSION_INFO);
  29. +    SetControlLabel(i++, "%s %s", 98765, SYSTEM_KERNEL_VERSION_INFO);
  30.      SetControlLabel(i++, "%s: %s", 12390, SYSTEM_UPTIME);
  31.      SetControlLabel(i++, "%s: %s", 12394, SYSTEM_TOTALUPTIME);
  32.      SetControlLabel(i++, "%s: %s", 12395, SYSTEM_BATTERY_LEVEL);
  33. --- a/xbmc/utils/SystemInfo.h
  34. +++ b/xbmc/utils/SystemInfo.h
  35. @@ -52,6 +52,7 @@
  36.    std::string videoEncoder;
  37.    std::string cpuFrequency;
  38.    std::string osVersionInfo;
  39. +  std::string kernelVersionInfo;
  40.    std::string macAddress;
  41.    std::string batteryLevel;
  42.  };
  43. --- a/xbmc/utils/SystemInfo.cpp
  44. +++ b/xbmc/utils/SystemInfo.cpp
  45. @@ -257,7 +257,8 @@
  46.    m_info.internetState     = GetInternetState();
  47.    m_info.videoEncoder      = GetVideoEncoder();
  48.    m_info.cpuFrequency      = GetCPUFreqInfo();
  49. -  m_info.osVersionInfo     = CSysInfo::GetOsPrettyNameWithVersion() + " (kernel: " + CSysInfo::GetKernelName() + " " + CSysInfo::GetKernelVersionFull() + ")";
  50. +  m_info.osVersionInfo     = CSysInfo::GetOsPrettyNameWithVersion();
  51. +  m_info.kernelVersionInfo = CSysInfo::GetKernelName() + " " + CSysInfo::GetKernelVersionFull();
  52.    m_info.macAddress        = GetMACAddress();
  53.    m_info.batteryLevel      = GetBatteryLevel();
  54.    return true;
  55. @@ -377,6 +378,8 @@
  56.      return m_info.macAddress;
  57.    case SYSTEM_OS_VERSION_INFO:
  58.      return m_info.osVersionInfo;
  59. +  case SYSTEM_KERNEL_VERSION_INFO:
  60. +    return m_info.kernelVersionInfo;
  61.    case SYSTEM_CPUFREQUENCY:
  62.      return m_info.cpuFrequency;
  63.    case SYSTEM_UPTIME:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement