mirror of
https://github.com/xiaozhou233/JuiceAgent.git
synced 2026-12-05 13:05:53 +08:00
Docs: Fix doc path
This commit is contained in:
1 parent
396ec1a96f
commit
41049f1852
3 files changed
+2
-20
No files matched your search
@@ -170,7 +170,7 @@ You can also pass arguments directly: `injector.exe <pid> <libloader.dll path> [
|
||||
|
||||
#### Method B: Use JNI to call `inject`
|
||||
|
||||
See [Inject](doc/Inject.md)
|
||||
See [Inject](docs/Inject.md)
|
||||
|
||||
### 5. Done
|
||||
|
||||
|
||||
+1
-19
@@ -171,25 +171,7 @@ Input PID:
|
||||
|
||||
#### 方法 B:通过 JNI 调用 `inject`
|
||||
|
||||
在你的项目中创建 `cn/xiaozhou233/juiceagent/injector/InjectorNative.java`:
|
||||
|
||||
```java
|
||||
package cn.xiaozhou233.juiceagent.injector;
|
||||
|
||||
public class InjectorNative {
|
||||
public native boolean inject(int pid, String path);
|
||||
public native boolean inject(int pid, String path, String configDir);
|
||||
}
|
||||
```
|
||||
|
||||
示例:
|
||||
|
||||
```java
|
||||
System.load("<libinject.dll 的路径>");
|
||||
InjectorNative injectorNative = new InjectorNative();
|
||||
|
||||
injectorNative.inject(<pid>, "<libloader.dll 的路径>", "<配置文件所在目录>");
|
||||
```
|
||||
看 [Inject](docs/Inject.md)
|
||||
|
||||
### 5. 完成
|
||||
|
||||
|
||||
File renamed without changes.
Reference in new issue
Block a user