Skip to content

Commit

Permalink
Merge branch develop v10.0.0-211203.1328
Browse files Browse the repository at this point in the history
  • Loading branch information
anoyetta committed Dec 3, 2021
2 parents 60d7265 + 5eec85f commit 0c41d03
Show file tree
Hide file tree
Showing 114 changed files with 2,856 additions and 2,407 deletions.
2 changes: 1 addition & 1 deletion source/@MasterVersion.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v9.3.7
v10.0.0
11 changes: 0 additions & 11 deletions source/ACT.Hojoring.Common/Hojoring.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,6 @@ public void ShowSplash(

isSplashShown = true;

#if false
var dir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
if (Directory.GetFiles(
dir,
"*NOSPLASH*",
SearchOption.TopDirectoryOnly).Length > 0)
{
return;
}
#endif

this.splash = new SplashWindow();
this.splash.Loaded += (_, __) => this.splash.StartFadeOut();
this.splash.Show();
Expand Down
2 changes: 1 addition & 1 deletion source/ACT.Hojoring.Common/SplashWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public partial class SplashWindow : Window, INotifyPropertyChanged
private static readonly bool IsDebug = false;
#endif

public string FFXIVVersion => "for patch 5.4x";
public string FFXIVVersion => "for ENDWALKER";

public static Version HojoringVersion => Assembly.GetExecutingAssembly()?.GetName()?.Version;

Expand Down
4 changes: 2 additions & 2 deletions source/ACT.Hojoring.Common/Version.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Reflection;

[assembly: AssemblyVersion("9.3.0.7")]
[assembly: AssemblyFileVersion("9.3.0.7")]
[assembly: AssemblyVersion("10.0.0.0")]
[assembly: AssemblyFileVersion("10.0.0.0")]
26 changes: 24 additions & 2 deletions source/ACT.Hojoring.Debug/ACT.Hojoring.Debug.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{466C29AA-D69A-4D20-AA75-F559D9528634}</ProjectGuid>
<OutputType>Library</OutputType>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>ACT.Hojoring.Debug</RootNamespace>
<AssemblyName>ACT.Hojoring.Debug</AssemblyName>
Expand Down Expand Up @@ -34,6 +34,9 @@
<WarningLevel>4</WarningLevel>
<NoWarn>MSB3270</NoWarn>
</PropertyGroup>
<PropertyGroup>
<StartupObject />
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.ComponentModel.Composition" />
Expand All @@ -47,6 +50,7 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Dummy.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
Expand Down Expand Up @@ -109,7 +113,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Costura.Fody">
<Version>5.6.0</Version>
<Version>5.7.0</Version>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
Expand All @@ -122,4 +126,22 @@
<Content Include="FodyWeavers.xml" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>@del /q /f $(TargetPath) &gt;nul
@del /q /f $(TargetDir)bin\*.dll &gt;nul 2&gt;&amp;1

@mkdir "$(TargetDir)bin" &gt;nul 2&gt;&amp;1
@move /y "$(TargetDir)*.dll" "$(TargetDir)bin"&gt;nul

@move /y "$(TargetDir)bin\RazorEngine.dll" "$(TargetDir)"&gt;nul
@move /y "$(TargetDir)bin\SLOBSharp.dll" "$(TargetDir)"&gt;nul
@move /y "$(TargetDir)bin\ACT.Hojoring.Common.dll" "$(TargetDir)"&gt;nul
@move /y "$(TargetDir)bin\ACT.Hojoring.Updater.dll" "$(TargetDir)"&gt;nul
@move /y "$(TargetDir)bin\ACT.SpecialSpellTimer.dll" "$(TargetDir)"&gt;nul
@move /y "$(TargetDir)bin\ACT.SpecialSpellTimer.RazorModel.dll" "$(TargetDir)"&gt;nul
@move /y "$(TargetDir)bin\ACT.TTSYukkuri.dll" "$(TargetDir)"&gt;nul
@move /y "$(TargetDir)bin\ACT.UltraScouter.dll" "$(TargetDir)"&gt;nul
@move /y "$(TargetDir)bin\ACT.XIVLog.dll" "$(TargetDir)"&gt;nul
</PostBuildEvent>
</PropertyGroup>
</Project>
9 changes: 9 additions & 0 deletions source/ACT.Hojoring.Debug/Dummy.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace ACT.Hojoring.Debug
{
public static class Dummy
{
public static void Main()
{
}
}
}
22 changes: 7 additions & 15 deletions source/ACT.Hojoring.Debug/FodyWeavers.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
<Costura
IncludeDebugSymbols="false">
<ExcludeAssemblies>
ACT.SpecialSpellTimer*
ACT.TTSYukkuri*
ACT.UltraScouter*
ACT.XIVLog*
FFXIV.Framework
FFXIV.Framework.TTS.Server*
ACT.Hojoring.Common
ACT.Hojoring.Updater
RazorEngine
SLOBSharp
FFXIV_ACT_Plugin
FFXIV_ACT_Plugin.*
</ExcludeAssemblies>
IncludeDebugSymbols="true">
<PreloadOrder>
ACT.Hojoring.Activator
</PreloadOrder>
<IncludeAssemblies>
ACT.Hojoring.Activator
</IncludeAssemblies>
</Costura>
</Weavers>
14 changes: 14 additions & 0 deletions source/ACT.Hojoring.Shared/ACT.Hojoring.Shared.projitems
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MSBuildAllProjects Condition="'$(MSBuildVersion)' == '' Or '$(MSBuildVersion)' &lt; '16.0'">$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
<HasSharedItems>true</HasSharedItems>
<SharedGUID>9dd140fa-30bd-4e10-b61a-f8a5b8837643</SharedGUID>
</PropertyGroup>
<PropertyGroup Label="Configuration">
<Import_RootNamespace>ACT.Hojoring.Shared</Import_RootNamespace>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildThisFileDirectory)AssemblyResolver.cs" />
</ItemGroup>
</Project>
13 changes: 13 additions & 0 deletions source/ACT.Hojoring.Shared/ACT.Hojoring.Shared.shproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Label="Globals">
<ProjectGuid>9dd140fa-30bd-4e10-b61a-f8a5b8837643</ProjectGuid>
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.Default.props" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.props" />
<PropertyGroup />
<Import Project="ACT.Hojoring.Shared.projitems" Label="Shared" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.CSharp.targets" />
</Project>
73 changes: 73 additions & 0 deletions source/ACT.Hojoring.Shared/AssemblyResolver.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;

namespace ACT.Hojoring.Shared
{
public static class AssemblyResolver
{
public static void Initialize(
Func<string> directoryResolver)
{
DirectoryResolvers.Add(directoryResolver);
AppDomain.CurrentDomain.AssemblyResolve += CustomAssemblyResolve;
}

private static readonly List<Func<string>> DirectoryResolvers = new List<Func<string>>();

private static Assembly CustomAssemblyResolve(object sender, ResolveEventArgs e)
{
var dirs = new List<string>();

foreach (var directoryResolver in DirectoryResolvers)
{
if (directoryResolver == null)
{
continue;
}

var baseDir = directoryResolver?.Invoke();
if (string.IsNullOrEmpty(baseDir))
{
continue;
}

dirs.Add(baseDir);
dirs.Add(Path.Combine(baseDir, "bin"));

var architect = Environment.Is64BitProcess ? "x64" : "x86";
dirs.Add(Path.Combine(baseDir, $@"{architect}"));
dirs.Add(Path.Combine(baseDir, $@"bin\{architect}"));
}

// Directories プロパティで指定されたディレクトリを基準にアセンブリを検索する
foreach (var directory in dirs)
{
var asm = TryLoadAssembly(e.Name, directory, ".dll");
if (asm != null)
{
return asm;
}
}

return null;
}

private static Assembly TryLoadAssembly(
string assemblyName,
string directory,
string extension)
{
var asm = new AssemblyName(assemblyName);

var asmPath = Path.Combine(directory, asm.Name + extension);
if (File.Exists(asmPath))
{
return Assembly.LoadFrom(asmPath);
}

return null;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Costura.Fody">
<Version>5.5.0</Version>
<Version>5.7.0</Version>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion source/ACT.Hojoring.Updater/ACT.Hojoring.Updater.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Costura.Fody">
<Version>5.5.0</Version>
<Version>5.7.0</Version>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Octokit">
Expand Down
11 changes: 6 additions & 5 deletions source/ACT.Hojoring.Updater/FodyWeavers.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
<Costura IncludeDebugSymbols="true">
<ExcludeAssemblies>
Advanced Combat Tracker
</ExcludeAssemblies>
<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
<Costura
IncludeDebugSymbols="false">
<PreloadOrder>
Octokit
</PreloadOrder>
</Costura>
</Weavers>
3 changes: 2 additions & 1 deletion source/ACT.Hojoring.Updater/UpdateChecker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ namespace ACT.Hojoring
{
public class UpdateChecker
{
public UpdateChecker()
static UpdateChecker()
{
CosturaUtility.Initialize();
}

public bool UsePreRelease { get; set; }
Expand Down
13 changes: 12 additions & 1 deletion source/ACT.Hojoring.sln
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
# Visual Studio Version 17
VisualStudioVersion = 16.0.28714.193
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Plugins", "Plugins", "{F9A5BAFF-4C35-4F15-BDD6-81CB8EC6977D}"
Expand Down Expand Up @@ -44,7 +44,18 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ACT.Hojoring.Activator", "A
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ACT.Hojoring.Debug", "ACT.Hojoring.Debug\ACT.Hojoring.Debug.csproj", "{466C29AA-D69A-4D20-AA75-F559D9528634}"
EndProject
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "ACT.Hojoring.Shared", "ACT.Hojoring.Shared\ACT.Hojoring.Shared.shproj", "{9DD140FA-30BD-4E10-B61A-F8A5B8837643}"
EndProject
Global
GlobalSection(SharedMSBuildProjectFiles) = preSolution
ACT.Hojoring.Shared\ACT.Hojoring.Shared.projitems*{450f38fa-7f7d-41b9-9bbb-503efc6c0a72}*SharedItemsImports = 4
ACT.Hojoring.Shared\ACT.Hojoring.Shared.projitems*{9dd140fa-30bd-4e10-b61a-f8a5b8837643}*SharedItemsImports = 13
ACT.Hojoring.Shared\ACT.Hojoring.Shared.projitems*{ccf72089-92fa-4afb-bde7-869ca0e394f9}*SharedItemsImports = 4
ACT.Hojoring.Shared\ACT.Hojoring.Shared.projitems*{cfc5e5e2-effe-4fc4-9efd-79d15b1abf45}*SharedItemsImports = 4
ACT.Hojoring.Shared\ACT.Hojoring.Shared.projitems*{d504e286-56ec-494f-82cd-fd71aefef606}*SharedItemsImports = 4
ACT.Hojoring.Shared\ACT.Hojoring.Shared.projitems*{dda65b79-1b89-4223-ba81-c748755057e6}*SharedItemsImports = 4
ACT.Hojoring.Shared\ACT.Hojoring.Shared.projitems*{f20b280b-35b9-4462-a71e-e187cc2a60e7}*SharedItemsImports = 4
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x86 = Debug|x86
Expand Down
19 changes: 16 additions & 3 deletions source/ACT.Hojoring/ACT.Hojoring.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Costura.Fody">
<Version>5.5.0</Version>
<Version>5.7.0</Version>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
Expand All @@ -99,8 +99,21 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>DEL /F "$(TargetPath)" &gt; nul
DEL /F *grpc_csharp_ext.* &gt; nul
<PostBuildEvent>@del /q /f $(TargetPath) &gt;nul
@del /q /f $(TargetDir)bin\*.dll &gt;nul 2&gt;&amp;1

@mkdir "$(TargetDir)bin" &gt;nul 2&gt;&amp;1
@move /y "$(TargetDir)*.dll" "$(TargetDir)bin"&gt;nul

@move /y "$(TargetDir)bin\RazorEngine.dll" "$(TargetDir)"&gt;nul
@move /y "$(TargetDir)bin\SLOBSharp.dll" "$(TargetDir)"&gt;nul
@move /y "$(TargetDir)bin\ACT.Hojoring.Common.dll" "$(TargetDir)"&gt;nul
@move /y "$(TargetDir)bin\ACT.Hojoring.Updater.dll" "$(TargetDir)"&gt;nul
@move /y "$(TargetDir)bin\ACT.SpecialSpellTimer.dll" "$(TargetDir)"&gt;nul
@move /y "$(TargetDir)bin\ACT.SpecialSpellTimer.RazorModel.dll" "$(TargetDir)"&gt;nul
@move /y "$(TargetDir)bin\ACT.TTSYukkuri.dll" "$(TargetDir)"&gt;nul
@move /y "$(TargetDir)bin\ACT.UltraScouter.dll" "$(TargetDir)"&gt;nul
@move /y "$(TargetDir)bin\ACT.XIVLog.dll" "$(TargetDir)"&gt;nul
</PostBuildEvent>
</PropertyGroup>
<PropertyGroup>
Expand Down
20 changes: 6 additions & 14 deletions source/ACT.Hojoring/FodyWeavers.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
<Costura
IncludeDebugSymbols="false">
<ExcludeAssemblies>
ACT.SpecialSpellTimer*
ACT.TTSYukkuri*
ACT.UltraScouter*
ACT.XIVLog*
FFXIV.Framework
FFXIV.Framework.TTS.Server*
ACT.Hojoring.Common
ACT.Hojoring.Updater
RazorEngine
SLOBSharp
FFXIV_ACT_Plugin
FFXIV_ACT_Plugin.*
</ExcludeAssemblies>
<PreloadOrder>
ACT.Hojoring.Activator
</PreloadOrder>
<IncludeAssemblies>
ACT.Hojoring.Activator
</IncludeAssemblies>
</Costura>
</Weavers>
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,6 @@
<Version>4.3.1</Version>
</PackageReference>
</ItemGroup>
<Import Project="..\ACT.Hojoring.Shared\ACT.Hojoring.Shared.projitems" Label="Shared" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
Loading

0 comments on commit 0c41d03

Please sign in to comment.