This repository has been archived by the owner on Oct 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
92 additions
and
0 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
26 changes: 26 additions & 0 deletions
26
...ine.Runtime/UnrealEngine.Runtime/Internal/InjectedClasses/Engine/GameInstance_Injected.cs
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,26 @@ | ||
using System; | ||
using UnrealEngine.Engine; | ||
using UnrealEngine.Runtime; | ||
using UnrealEngine.Runtime.Native; | ||
|
||
namespace UnrealEngine.Engine | ||
{ | ||
public partial class UGameInstance : UObject | ||
{ | ||
private VTableHacks.CachedFunctionRedirect<VTableHacks.GameInstanceInitDel_ThisCall> initializeRedirect; | ||
internal override void InitInternal() | ||
{ | ||
Init(); | ||
} | ||
|
||
/// <summary> | ||
/// Allow custom GameInstances an opportunity to set up what it needs. | ||
/// </summary> | ||
public virtual void Init() | ||
{ | ||
initializeRedirect | ||
.Resolve(VTableHacks.GameInstanceInit, this) | ||
.Invoke(Address); | ||
} | ||
} | ||
} |
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