FFXIV plugin 2.6.2.0 support (#56)

This commit is contained in:
ksh 2021-12-04 13:32:20 +09:00 committed by GitHub
parent bf6f5964e2
commit 375583e8ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -12,7 +12,7 @@ namespace DutyContent
{
class DcConfig
{
public static int PluginTag => 19;
public static int PluginTag => 20;
public static Version PluginVersion => System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
public static bool PluginEnable { get; set; }

View file

@ -99,8 +99,9 @@ namespace DutyContent
if (_ffxiv_plugin_data == null)
{
_ffxiv_plugin_data = ActGlobals.oFormActMain.ActPlugins.Where(x =>
x.pluginFile.Name.ToUpper().Contains("FFXIV_ACT_PLUGIN") &&
x.lblPluginStatus.Text.ToUpper().Contains("FFXIV PLUGIN STARTED."))
x.pluginFile.Name.ToUpper().StartsWith("FFXIV_ACT_PLUGIN") &&
(x.lblPluginStatus.Text.ToUpper().StartsWith("FFXIV PLUGIN STARTED.") ||
x.lblPluginStatus.Text.ToUpper().StartsWith("FFXIV_ACT_PLUGIN STARTED.")))
.Select(x => x)
.FirstOrDefault();
}