Skip to content
This repository was archived by the owner on May 9, 2023. It is now read-only.

Commit 97dffc8

Browse files
committed
Fix patch target on Time.timeScale
1 parent bf2b22e commit 97dffc8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ExplorerCore.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace UnityExplorer
1414
public static class ExplorerCore
1515
{
1616
public const string NAME = "UnityExplorer";
17-
public const string VERSION = "4.8.1";
17+
public const string VERSION = "4.8.2";
1818
public const string AUTHOR = "Sinai";
1919
public const string GUID = "com.sinai.unityexplorer";
2020

src/UI/Widgets/TimeScaleWidget.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ static void InitPatch()
9797

9898
try
9999
{
100-
MethodInfo target = AccessTools.Method(typeof(Time), nameof(Time.timeScale));
100+
MethodInfo target = typeof(Time).GetProperty("timeScale").GetSetMethod();
101101
#if CPP
102102
if (UnhollowerBaseLib.UnhollowerUtils.GetIl2CppMethodInfoPointerFieldForGeneratedMethod(target) == null)
103103
return;

0 commit comments

Comments
 (0)