mirror of
https://github.com/yuzu-emu/discord-rpc.git
synced 2024-12-23 00:45:33 +00:00
missed a format I guess
This commit is contained in:
parent
ef60ec40c3
commit
a6a9b6259f
|
@ -32,7 +32,6 @@ static const char* GetTempPath()
|
|||
|
||||
/*static*/ BaseConnection* BaseConnection::Create()
|
||||
{
|
||||
|
||||
PipeAddr.sun_family = AF_UNIX;
|
||||
return &Connection;
|
||||
}
|
||||
|
@ -54,7 +53,8 @@ bool BaseConnection::Open()
|
|||
}
|
||||
fcntl(self->sock, F_SETFL, O_NONBLOCK);
|
||||
for (int pipeNum = 0; pipeNum < 10; ++pipeNum) {
|
||||
snprintf(PipeAddr.sun_path, sizeof(PipeAddr.sun_path), "%s/discord-ipc-%d", tempPath, pipeNum);
|
||||
snprintf(
|
||||
PipeAddr.sun_path, sizeof(PipeAddr.sun_path), "%s/discord-ipc-%d", tempPath, pipeNum);
|
||||
int err = connect(self->sock, (const sockaddr*)&PipeAddr, sizeof(PipeAddr));
|
||||
if (err == 0) {
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue