Skip to content

Commit

Permalink
Hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
myzmotic committed Dec 18, 2018
1 parent 70abc5d commit 5e85cc4
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions xiloader/network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -506,12 +506,14 @@ namespace xiloader
{
case SUCCESS_LOGIN: // Success (Login)
xiloader::console::output(xiloader::color::success, "Successfully logged in as %s!", g_Username.c_str());
sock->AccountId = *(UINT32*)(recvBuffer + 0x10);
sock->AccountId = *(UINT32*)(recvBuffer + 0x01);
closesocket(sock->s);
sock->s = INVALID_SOCKET;
break;

case SUCCESS_CREATE: // Success (Create Account)
xiloader::console::output(xiloader::color::success, "Account successfully created!");
sock->AccountId = *(UINT32*)(recvBuffer + 0x10);
sock->AccountId = *(UINT32*)(recvBuffer + 0x01);
break;

case ERROR_LOGIN: // Error (Login)
Expand Down Expand Up @@ -563,11 +565,8 @@ namespace xiloader

if (input == "1")
{
sendBuffer[0x82] = SHUTDOWN;
send(sock->s, sendBuffer, 131, 0);

closesocket(sock->s);
sock->s = INVALID_SOCKET;
//sendBuffer[0x82] = SHUTDOWN;
//send(sock->s, sendBuffer, 131, 0);
return true;
}
else if (input == "2")
Expand Down

0 comments on commit 5e85cc4

Please sign in to comment.