Add informational printouts for local client connection
This commit is contained in:
parent
a2e74eb788
commit
f41da638fa
1 changed files with 6 additions and 0 deletions
6
main.cpp
6
main.cpp
|
|
@ -168,12 +168,18 @@ int main(int argc, char* argv[])
|
|||
\*---------------------------------------------------------*/
|
||||
if(!(ret_flags & RET_FLAG_NO_DETECT))
|
||||
{
|
||||
printf("Attempting to connect to local OpenRGB server.\r\n");
|
||||
|
||||
if(!AttemptLocalConnection())
|
||||
{
|
||||
printf("Local OpenRGB server unavailable, running standalone.\r\n");
|
||||
|
||||
ResourceManager::get()->DetectDevices();
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("Local OpenRGB server connected, running in client mode\r\n");
|
||||
|
||||
ResourceManager::get()->DisableDetection();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue