Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Commit

Permalink
Update versions for release, update README
Browse files Browse the repository at this point in the history
  • Loading branch information
knah committed Jun 7, 2020
1 parent 1731ba6 commit e981743
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion AssemblyUnhollower/AssemblyUnhollower.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<OutputType>Exe</OutputType>
<TargetFramework>net4.7.2</TargetFramework>
<Nullable>enable</Nullable>
<Version>0.4.2.0</Version>
<Version>0.4.4.0</Version>
<LangVersion>latest</LangVersion>
</PropertyGroup>

Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ How-to:
* Call `ClassInjector.RegisterTypeInIl2Cpp<T>()` before first use of class to be injected
* The injected class can be used normally afterwards, for example a custom MonoBehavior implementation would work with `AddComponent<T>`

Fine-tuning:
* `[HideFromIl2Cpp]` can be used to prevent a method from being exposed to il2cpp

Caveats:
* Injected class instances are handled by IL2CPP garbage collection. This means that an object may be collected even if it's referenced from managed domain. Attempting to use that object afterwards will result in `ObjectCollectedException`. Conversely, managed representation of injected object will not be garbage collected as long as it's referenced from IL2CPP domain.
* It might be possible to create a cross-domain reference loop that will prevent objects from being garbage collected. Avoid doing anything that will result in injected class instances (indirectly) storing references to itself. The simplest example of how to leak memory is this:
Expand Down
2 changes: 1 addition & 1 deletion UnhollowerBaseLib/UnhollowerBaseLib.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net4.7.2</TargetFramework>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>latest</LangVersion>
<Version>0.4.3.0</Version>
<Version>0.4.4.0</Version>
</PropertyGroup>

</Project>
2 changes: 1 addition & 1 deletion UnhollowerRuntimeLib/UnhollowerRuntimeLib.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net4.7.2</TargetFramework>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>latest</LangVersion>
<Version>0.4.1.0</Version>
<Version>0.4.4.0</Version>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit e981743

Please sign in to comment.