Fixed demo mode
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
913d81e371
commit
50a4d61ded
5 changed files with 71 additions and 33 deletions
|
@ -30,8 +30,13 @@ bool AuthSession::MakeOffline(QString offline_playername)
|
|||
return true;
|
||||
}
|
||||
|
||||
void AuthSession::MakeDemo()
|
||||
void AuthSession::MakeDemo(QString name, QString u)
|
||||
{
|
||||
player_name = "Player";
|
||||
wants_online = false;
|
||||
demo = true;
|
||||
}
|
||||
uuid = u;
|
||||
session = "-";
|
||||
access_token = "0";
|
||||
player_name = name;
|
||||
status = PlayableOnline; // needs online to download the assets
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue