1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-29 23:51:01 +08:00

adjust DummyAPIAccess to more closely match APIAccess

wrt logging in and out
This commit is contained in:
Liam DeVoe
2023-06-22 16:01:12 -04:00
Unverified
parent 6de7328fef
commit 21bed336c6
+2 -2
View File
@@ -34,7 +34,7 @@ namespace osu.Game.Online.API
public string AccessToken => "token";
public bool IsLoggedIn => State.Value == APIState.Online;
public bool IsLoggedIn => State.Value > APIState.Offline;
public string ProvidedUsername => LocalUser.Value.Username;
@@ -114,8 +114,8 @@ namespace osu.Game.Online.API
public void Logout()
{
LocalUser.Value = new GuestUser();
state.Value = APIState.Offline;
LocalUser.Value = new GuestUser();
}
public IHubClientConnector GetHubConnector(string clientName, string endpoint, bool preferMessagePack) => null;