Add UseApplicationAssets option to RPC API and configuration (#879)

This commit is contained in:
koko 2023-08-23 13:37:24 -04:00 committed by GitHub
commit 9cb9fb62e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View file

@ -19,6 +19,7 @@ public class RpcResponse
UsernameType = configuration.UsernameType,
Assets = new RpcAssets
{
UseApplicationAssets = configuration.Assets.UseApplicationAssets,
PodAsset = AssetConvertNull(configuration.Assets.PodAsset),
MoonAsset = AssetConvertNull(configuration.Assets.MoonAsset),
RemoteMoonAsset = AssetConvertNull(configuration.Assets.RemoteMoonAsset),

View file

@ -15,6 +15,7 @@ public class RichPresenceConfiguration
public class RpcAssets
{
public bool UseApplicationAssets { get; init; }
public string PodAsset { get; init; }
public string MoonAsset { get; init; }
public string RemoteMoonAsset { get; init; }

View file

@ -11,7 +11,7 @@ public class ServerConfiguration : ConfigurationBase<ServerConfiguration>
// This is so Lighthouse can properly identify outdated configurations and update them with newer settings accordingly.
// If you are modifying anything here, this value MUST be incremented.
// Thanks for listening~
public override int ConfigVersion { get; set; } = 22;
public override int ConfigVersion { get; set; } = 23;
public override string ConfigName { get; set; } = "lighthouse.yml";
public string WebsiteListenUrl { get; set; } = "http://localhost:10060";