Log third party repo usage
This commit is contained in:
parent
b69a53ef3d
commit
bdc8187492
@ -3,7 +3,7 @@
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0-windows</TargetFramework>
|
||||
<LangVersion>9.0</LangVersion>
|
||||
<Version>1.20</Version>
|
||||
<Version>1.21</Version>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
|
@ -5,6 +5,7 @@ using Dalamud.Game.Command;
|
||||
using Dalamud.Game.Text;
|
||||
using Dalamud.Game.Text.SeStringHandling;
|
||||
using Dalamud.Interface.Windowing;
|
||||
using Dalamud.Logging;
|
||||
using Dalamud.Plugin;
|
||||
using ECommons;
|
||||
using ECommons.Schedulers;
|
||||
@ -49,6 +50,7 @@ namespace Pal.Client
|
||||
public PomanderState PomanderOfSight { get; set; } = PomanderState.Inactive;
|
||||
public PomanderState PomanderOfIntuition { get; set; } = PomanderState.Inactive;
|
||||
public string? DebugMessage { get; set; }
|
||||
public bool IsUnsupported { get; set; }
|
||||
|
||||
public string Name => "Palace Pal";
|
||||
|
||||
@ -61,6 +63,9 @@ namespace Pal.Client
|
||||
Service.Configuration = (Configuration?)pluginInterface.GetPluginConfig() ?? pluginInterface.Create<Configuration>()!;
|
||||
Service.Configuration.Migrate();
|
||||
|
||||
IsUnsupported = !pluginInterface.IsDev && !pluginInterface.SourceRepository.StartsWith("https://raw.githubusercontent.com/carvelli/");
|
||||
PluginLog.Information($"Install source: {pluginInterface.SourceRepository}");
|
||||
|
||||
var agreementWindow = pluginInterface.Create<AgreementWindow>();
|
||||
if (agreementWindow is not null)
|
||||
{
|
||||
|
@ -36,7 +36,7 @@ namespace Pal.Client.Windows
|
||||
public ConfigWindow() : base("Palace Pal###PalPalaceConfig")
|
||||
{
|
||||
var version = typeof(Plugin).Assembly.GetName().Version!.ToString(2);
|
||||
WindowName = $"Palace Pal v{version}###PalPalaceConfig";
|
||||
WindowName = $"Palace Pal v{version}{(Service.Plugin.IsUnsupported ? " - Unsupported" : "")}###PalPalaceConfig";
|
||||
Size = new Vector2(500, 400);
|
||||
SizeCondition = ImGuiCond.FirstUseEver;
|
||||
Position = new Vector2(300, 300);
|
||||
|
Loading…
Reference in New Issue
Block a user