Skip to content

Commit fdb6aa6

Browse files
authored
更新 README.md
1 parent d63fed1 commit fdb6aa6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@
103103
104104
#### Mono注入 (Mono Inject)
105105
> ``` c++
106-
> I::AssemblyLoad assembly("./MonoCsharp.dll");
107-
> I::AssemblyLoad assembly("./MonoCsharp.dll", "MonoCsharp", "Inject", "MonoCsharp.Inject:Load()");
106+
> UnityResolve::AssemblyLoad assembly("./MonoCsharp.dll");
107+
> UnityResolve::AssemblyLoad assembly("./MonoCsharp.dll", "MonoCsharp", "Inject", "MonoCsharp.Inject:Load()");
108108
> ```
109109
110110
#### 获取函数地址(变量偏移) 及调用(修改/获取) (Get the function address (variable offset) and invoke (modify/get))
@@ -140,9 +140,13 @@
140140
> // Cast(UnityResolve::MethodPointer<return type, args...>&);
141141
> const UnityResolve::MethodPointer<void, int, bool> ptr = method2->Cast<void, int, bool>();
142142
> ptr(114514, true);
143+
143144
> UnityResolve::MethodPointer<void, int, bool> add;
144145
> ptr = method1->Cast(add);
145146
>
147+
> std::function<void(int, bool)> add2;
148+
> method->Cast(add2);
149+
>
146150
> ```
147151
148152
#### 转存储到文件 (DumpToFile)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy