Skip to content

Commit ae04ad3

Browse files
committed
chore: Cleanup of presence during review
1 parent 511e7e9 commit ae04ad3

File tree

2 files changed

+2
-32
lines changed

2 files changed

+2
-32
lines changed

Runtime/Client/LootLockerLifecycleManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ public static T GetService<T>() where T : class, ILootLockerService
266266
{
267267
if (_state == LifecycleManagerState.Quitting || _state == LifecycleManagerState.Resetting)
268268
{
269-
LootLockerLogger.Log($"Cannot access service {typeof(T).Name} during {_state.ToString().ToLower()}", LootLockerLogger.LogLevel.Warning);
269+
LootLockerLogger.Log($"Access of service {typeof(T).Name} during {_state.ToString().ToLower()} was requested but denied", LootLockerLogger.LogLevel.Debug);
270270
return null;
271271
}
272272

Runtime/Game/Resources/LootLockerConfig.cs

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -10,36 +10,6 @@
1010

1111
namespace LootLocker
1212
{
13-
#if LOOTLOCKER_ENABLE_PRESENCE
14-
/// <summary>
15-
/// Platforms where WebSocket presence can be enabled
16-
/// </summary>
17-
[System.Flags]
18-
public enum LootLockerPresencePlatforms
19-
{
20-
None = 0,
21-
Windows = 1 << 0,
22-
MacOS = 1 << 1,
23-
Linux = 1 << 2,
24-
iOS = 1 << 3,
25-
Android = 1 << 4,
26-
WebGL = 1 << 5,
27-
PlayStation4 = 1 << 6,
28-
PlayStation5 = 1 << 7,
29-
XboxOne = 1 << 8,
30-
XboxSeriesXS = 1 << 9,
31-
NintendoSwitch = 1 << 10,
32-
UnityEditor = 1 << 11,
33-
34-
// Convenient presets
35-
AllDesktop = Windows | MacOS | Linux,
36-
AllMobile = iOS | Android,
37-
AllConsoles = PlayStation4 | PlayStation5 | XboxOne | XboxSeriesXS | NintendoSwitch,
38-
AllPlatforms = AllDesktop | AllMobile | AllConsoles | WebGL | UnityEditor,
39-
RecommendedPlatforms = AllDesktop | AllConsoles | UnityEditor // Exclude mobile and WebGL by default for battery/compatibility
40-
}
41-
#endif
42-
4313
public class LootLockerConfig : ScriptableObject
4414
{
4515

@@ -438,7 +408,7 @@ public static bool IsTargetingProductionEnvironment()
438408

439409
#if LOOTLOCKER_ENABLE_PRESENCE
440410
[Tooltip("Enable WebSocket presence system by default. Can be controlled at runtime via SetPresenceEnabled().")]
441-
public bool enablePresence = true;
411+
public bool enablePresence = false;
442412

443413
[Tooltip("Automatically connect presence when sessions are started. Can be controlled at runtime via SetPresenceAutoConnectEnabled().")]
444414
public bool enablePresenceAutoConnect = true;

0 commit comments

Comments
 (0)