Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-Implement the LRAPI patcher #24

Merged
merged 2 commits into from
Aug 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions Binary/JSONCecilPatcher.meta

This file was deleted.

Binary file modified BinaryDiff/LegacyResourcesAPI.diff
Binary file not shown.
2 changes: 1 addition & 1 deletion BinaryDiff/LegacyResourcesAPI.diff.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file removed BinaryDiff/LegacyResourcesAPI.pdb
Binary file not shown.
7 changes: 0 additions & 7 deletions BinaryDiff/LegacyResourcesAPI.pdb.meta

This file was deleted.

3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 1.5.0
- Reimplemented the LegacyResourcesAPI Patcher extension so that the DLL becomes stable and dont crash on certain edge cases.

### 1.4.1
- Updated to use Thunderkit 9.0.0
- Fixed R2API Submodule installer erroring due to internal changes to how packages are handled by Thunderkit
Expand Down
14 changes: 14 additions & 0 deletions Editor/LegacyResourcesAPIPatcher.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System.IO;
using ThunderKit.Core.Config;

namespace RiskOfThunder.RoR2Importer
{
public class LegacyResourceAPIPatcher : ManagedAssemblyPatcher
{
public override string Name => "RoR2 LegacyResourceAPI Patcher";
public override string Description => $"Patches the game's LegacyResourcesAPI.dll to improve stability and reduce editor hangs.";
public override int Priority => Constants.Priority.LegacyResourceAPIPatcher;
public override string AssemblyFileName => "LegacyResourcesAPI.dll";
public override string BsDiffPatchPath => Path.Combine("Packages", "riskofthunder-ror2importextensions", "BinaryDiff", "LegacyResourcesAPI.diff");
}
}
11 changes: 11 additions & 0 deletions Editor/LegacyResourcesAPIPatcher.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
RoR2 Import Extensions is a *thunderkit extension* aiming to reduce the time it takes to properly set up a RoR2 Thunderkit Project.

It is extremely recommended to install this and use it in the process of setting up a project, RoR2ImportExtensions can also be used as a use case example on how to extend the Thunderkit Importing Process.

### Extensions:
Note: Higher priority means it runs earlier

Expand All @@ -14,6 +15,7 @@ Note: Higher priority means it runs earlier
|Unity GUI Uninstaller|3.23M|Removes Unity GUI due to compatibility issues with the game's modified TextMeshPro library and ensures that the Unity.UI.dll is copied from the games directory|Highly Recommended|
|Assembly Publicizer|3.125M|Publicizes the listed assemblies with N-Strip, publicized assemblies retain their editor functionality and inspector look| Recommended if publicizing is needed|
|MMHook Generator|3.12M|Creates MMHook assemblies for the listed assemblies, allowing for hooking ingame methods to run code injection|Extremely Recommended
| ROR2 LegacyResourceAPI Patcher | 2.75M | Patches the LegacyResourcesAPI dll to improve it's stability in the editor | Extremely Recommended |
|Set Deferred Shading|1.9995M|Ensures that the Graphics Tiers have their Rendering Path set to Deferred after importing Project settings|Highly Recommended
|Configure Addressable Graphics Settings|-5.01K|Assigns the Risk of Rain 2 DeferredShading and DeferredReflectionCustom shaders in the Addressable Graphics settings and by proxy in the Project's Graphics Settings|Recommended
|Ensure RoR2 Thunderstore Source|-125k|Ensures the creation of a thunderstore source that points to https://thunderstore.io|Recommended
Expand Down
2 changes: 1 addition & 1 deletion ThunderKit/RoR2ImportExtensions.asset
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ MonoBehaviour:
Name: RoR2ImportExtensions
Description: Import extensions for ThunderKit to stabilize and complete the RoR2
import process
Version: 1.4.0
Version: 1.4.1
Dependencies: []
--- !u!114 &-221931170887336229
MonoBehaviour:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"url": ""
},
"displayName": "RoR2 Import Extensions",
"version": "1.4.0",
"version": "1.5.0",
"unity": "2019.4",
"description": "Import extensions for ThunderKit to stabilize and complete the RoR2 import process"
}