Skip to content

Commit fe59f75

Browse files
TheRogueZetaCalcProgrammer1
authored andcommitted
Update spacing and text in warning messages
Commit amended to make DRAM/Motherboard warning common between the Windows and Linux messages by Adam Honse <calcprogrammer1@gmail.com>. Line breaks in the OS-specific paragraphs removed as I found them unnecessary, especially when the line is already wrapped before the break.
1 parent ec1cb11 commit fe59f75

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

ResourceManager.cpp

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,17 +1110,19 @@ void ResourceManager::DetectDevicesThreadFunction()
11101110
\*-------------------------------------------------*/
11111111
if(i2c_interface_fail)
11121112
{
1113-
const char* i2c_message = "One or more I2C/SMBus interfaces failed to initialize.\r"
1113+
const char* i2c_message = "<h2>WARNING:</h2>"
1114+
"<p>One or more I2C/SMBus interfaces failed to initialize.</p>"
1115+
"<p>RGB DRAM modules and some motherboards' onboard RGB lighting will not be available without I2C/SMBus.</p>"
11141116
#ifdef _WIN32
1115-
"On Windows, this is usually caused by a failure to load the inpout32 driver.\r"
1116-
"You must run OpenRGB as administrator at least once to allow inpout32 to set up.\r"
1117+
"<p>On Windows, this is usually caused by a failure to load the inpout32 driver. "
1118+
"You must run OpenRGB as administrator at least once to allow inpout32 to set up.</p>"
11171119
#endif
11181120
#ifdef __linux__
1119-
"On Linux, this is usually because the i2c-dev module is not loaded.\r"
1120-
"You must load the i2c-dev module along with the correct i2c driver for your motherboard.\r"
1121-
"This is usually i2c-piix4 for AMD systems and i2c-i801 for Intel systems.\r"
1121+
"<p>On Linux, this is usually because the i2c-dev module is not loaded. "
1122+
"You must load the i2c-dev module along with the correct i2c driver for your motherboard. "
1123+
"This is usually i2c-piix4 for AMD systems and i2c-i801 for Intel systems.</p>"
11221124
#endif
1123-
"See https://help.openrgb.org for additional troubleshooting.";
1125+
"<p>See <a href='https://help.openrgb.org/'>help.openrgb.org</a> for additional troubleshooting steps if you keep seeing this message.<br></p>";
11241126

11251127
LOG_DIALOG("%s", i2c_message);
11261128
}

0 commit comments

Comments
 (0)