-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Death Knight class quest icon * Add different icon for event xp * Update AssetsTools.NET to v3
- Loading branch information
1 parent
38bbbc2
commit 119d171
Showing
17 changed files
with
195 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>net472</TargetFramework> | ||
<LangVersion>latest</LangVersion> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<ProjectPath>$(MSBuildThisFileDirectory)</ProjectPath> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectProperty Include="ProjectPath" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Using Remove="System.Net.Http" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="ThisAssembly.Project" Version="1.2.14"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\TextureExtractor\TextureExtractor.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System.Reflection; | ||
using System.Text.RegularExpressions; | ||
using TextureExtractor; | ||
|
||
string productDb = File.ReadAllText(@"C:\ProgramData\Battle.net\Agent\product.db"); | ||
|
||
string hsPath = Regex.Match(productDb, @"[ -~]+Hearthstone").Value.Replace('/', '\\'); | ||
|
||
string assetBundleDir = Path.Combine(hsPath, @"Data\Win"); | ||
|
||
List<string> assetBundles = Directory.EnumerateFiles(assetBundleDir, "*.unity3d").ToList(); | ||
|
||
Extractor extractor = new(Path.Combine(ThisAssembly.Project.ProjectPath, @"obj\hs"), "1"); | ||
|
||
IEnumerable<Task> tasks = assetBundles.Select(bundle => extractor.ExtractAsync(bundle)); | ||
await Task.WhenAll(tasks); | ||
|
||
string test = hsPath; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// ReSharper disable once CheckNamespace | ||
internal static class Extensions | ||
{ | ||
public static void RemoveAll<T>(this ICollection<T> @this, Func<T, bool> predicate) | ||
{ | ||
if (@this is List<T> list) | ||
list.RemoveAll(new Predicate<T>(predicate)); | ||
else | ||
foreach (var item in @this.Where(predicate)) | ||
@this.Remove(item); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>net472</TargetFramework> | ||
<LangVersion>latest</LangVersion> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Brokenevent.ILStrip" Version="1.1.4" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Using Include="BrokenEvent.ILStrip" /> | ||
<Using Remove="System.Net.Http" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
ILStrip stripper = new(args[0]) | ||
{ | ||
CollectUsageFromReferences = true, | ||
RemoveUnknownResources = true | ||
}; | ||
|
||
stripper.EntryPoints.Add(args[1]); | ||
|
||
stripper.ScanUsedClasses(); | ||
|
||
stripper.ScanUnusedClasses(); | ||
|
||
stripper.UnusedTypes.RemoveAll(x => x?.BaseType?.FullName == "System.Attribute"); | ||
|
||
stripper.CleanupUnusedClasses(); | ||
|
||
stripper.CleanupUnusedResources(); | ||
|
||
stripper.CleanupUnusedReferences(); | ||
|
||
stripper.MakeInternalExclusions.Add(args[1]); | ||
|
||
stripper.MakeInternal(); | ||
|
||
stripper.Save(args[0]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"profiles": { | ||
"ILStripper": { | ||
"commandName": "Project", | ||
"commandLineArgs": "$(SolutionDir)TextureExtractor\\bin\\Debug\\net472\\TextureExtractor.dll TextureExtractor.Extractor" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.