mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-02 01:58:40 +00:00
Add UseApplicationAssets option to RPC API and configuration (#879)
This commit is contained in:
parent
70a66e6034
commit
9cb9fb62e4
3 changed files with 3 additions and 1 deletions
|
@ -19,6 +19,7 @@ public class RpcResponse
|
||||||
UsernameType = configuration.UsernameType,
|
UsernameType = configuration.UsernameType,
|
||||||
Assets = new RpcAssets
|
Assets = new RpcAssets
|
||||||
{
|
{
|
||||||
|
UseApplicationAssets = configuration.Assets.UseApplicationAssets,
|
||||||
PodAsset = AssetConvertNull(configuration.Assets.PodAsset),
|
PodAsset = AssetConvertNull(configuration.Assets.PodAsset),
|
||||||
MoonAsset = AssetConvertNull(configuration.Assets.MoonAsset),
|
MoonAsset = AssetConvertNull(configuration.Assets.MoonAsset),
|
||||||
RemoteMoonAsset = AssetConvertNull(configuration.Assets.RemoteMoonAsset),
|
RemoteMoonAsset = AssetConvertNull(configuration.Assets.RemoteMoonAsset),
|
||||||
|
|
|
@ -15,6 +15,7 @@ public class RichPresenceConfiguration
|
||||||
|
|
||||||
public class RpcAssets
|
public class RpcAssets
|
||||||
{
|
{
|
||||||
|
public bool UseApplicationAssets { get; init; }
|
||||||
public string PodAsset { get; init; }
|
public string PodAsset { get; init; }
|
||||||
public string MoonAsset { get; init; }
|
public string MoonAsset { get; init; }
|
||||||
public string RemoteMoonAsset { get; init; }
|
public string RemoteMoonAsset { get; init; }
|
||||||
|
|
|
@ -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.
|
// 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.
|
// If you are modifying anything here, this value MUST be incremented.
|
||||||
// Thanks for listening~
|
// 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 override string ConfigName { get; set; } = "lighthouse.yml";
|
||||||
public string WebsiteListenUrl { get; set; } = "http://localhost:10060";
|
public string WebsiteListenUrl { get; set; } = "http://localhost:10060";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue