base patch

This commit is contained in:
Zakhar Afonin
2020-05-08 21:07:34 +03:00
parent c8ec908ca2
commit 6ede3c13b2
3 changed files with 29 additions and 2 deletions

View File

@@ -24,6 +24,12 @@ bool AuthSession::MakeOffline(QString offline_playername)
return false;
}
session = "-";
// Filling session with dummy data
client_token = "ff64ff64ff64ff64ff64ff64ff64ff64";
access_token = "ff64ff64ff64ff64ff64ff64ff64ff64";
// TODO: Fetch actual UUID's from Mojang API so they match with real ones
uuid = QString(QCryptographicHash::hash(offline_playername.toLocal8Bit(), QCryptographicHash::Md5).toHex());
player_name = offline_playername;
status = PlayableOffline;
return true;