Skip to content

Commit

Permalink
refactor to IAppArgs
Browse files Browse the repository at this point in the history
  • Loading branch information
lorux0 committed Aug 23, 2024
1 parent 309acf0 commit 7fced69
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
using ECS.SceneLifeCycle.CurrentScene;
using ECS.SceneLifeCycle.LocalSceneDevelopment;
using ECS.SceneLifeCycle.Realm;
using Global.AppArgs;
using Global.Dynamic.ChatCommands;
using LiveKit.Internal.FFIClients.Pools;
using LiveKit.Internal.FFIClients.Pools.Memory;
Expand Down Expand Up @@ -610,11 +611,13 @@ public void InitializeWorldRelatedModules(World world, Entity playerEntity)
wearablesProvider!.Initialize(world);
}

private static URN[]? ParseSelfForcedEmotes(ApplicationParametersParser appParams)
private static URN[]? ParseSelfForcedEmotes(IAppArgs appParams)
{
if (!appParams.AppParameters.TryGetValue("self-force-emotes", out string csv))
if (!appParams.TryGetValue("self-force-emotes", out string? csv))
return null;

if (string.IsNullOrEmpty(csv)) return null;

string[] emotes = csv.Split(',');
return emotes.Select(s => new URN(s)).ToArray();
}
Expand Down

0 comments on commit 7fced69

Please sign in to comment.