Comments (10)
Are you using Harmony or HarmonyX ?
from harmony.
It's Harmony.dll 2.2.2.0
Are you using Harmony or HarmonyX ?
from harmony.
The parameter name is of course dependent on your source code’s file encoding. You are responsible to use the right string or use the relative parameter position instead. You can also use an annotation that uses a custom name or you can use a parameter array and use the relative position in that array. Many possibilities.
from harmony.
The parameter name is of course dependent on your source code’s file encoding. You are responsible to use the right string or use the relative parameter position instead. You can also use an annotation that uses a custom name or you can use a parameter array and use the relative position in that array. Many possibilities.
Thanks, It seems that HarmonyParameter do the work, but it's removed. Would you please show some example?
from harmony.
Here is the documentation build from the actual source code: https://harmony.pardeike.net/api/HarmonyLib.HarmonyArgument.html
from harmony.
Here is the documentation build from the actual source code: https://harmony.pardeike.net/api/HarmonyLib.HarmonyArgument.html
It's an great annotation. How to manually use this HarmonyArgument? As I call the harmony.patch directly, I need patch the dll manually as it's loaded later sometime.
from harmony.
It’s part of HarmonyMethod which you are using if you are doing manual patching.
Edit: what I meant is that it’s part of the patch method which you are using anyway even with manual patching.
from harmony.
It’s part of HarmonyMethod which you are using if you are doing manual patching. Edit: what I meant is that it’s part of the patch method which you are using anyway even with manual patching.
Great!
from harmony.
It’s part of HarmonyMethod which you are using if you are doing manual patching. Edit: what I meant is that it’s part of the patch method which you are using anyway even with manual patching.
It does not work this way:
[HarmonyArgument("\u0004\u000F\u0007\u0005\u0006\u0003\u0008\u000C", "obj")]
public static bool ObfuscateMethod1Prefix(ref object __result, object obj, MethodBase mb, byte[] param1, byte[] param2, byte[] param3, byte[] param4, int[] param5, int param6)
{
What's the proper usage?
from harmony.
You put it on a parameter or the class depending on its function: https://harmony.pardeike.net/api/HarmonyLib.HarmonyArgument.htm - note the annotation usage that are itself annotations. If this version does not work then try one that uses the index for example.
from harmony.
Related Issues (20)
- A crash after hook:The object's current state invalidates the operation HOT 2
- Harmony fails to patch method and throws exception in exported Godot build HOT 14
- NuGet Package reference assembly conflict HOT 8
- ModuleInitializerAttribute HOT 1
- RtDynamicMethod get MetadataToken throws InvalidOperationException HOT 2
- Patch on .net 7&8 throw TypeLoadException while debugging HOT 18
- Harmony 3.0: Utility Epic
- Investigate Testing the NuGet Package Directly HOT 3
- Add a Release Pipeline
- Hook exception: System.Exception: Cannot get result from void method System.Void HOT 2
- How to patch method of base class? HOT 1
- When applying a patch fails, the replacement's IL is not printed to the debug log HOT 2
- SymbolExtensions does not resolve overriden method HOT 3
- can lib work in arm64? HOT 2
- Companion project promotion: Harmony Tools HOT 3
- PatchFunctions.UpdateWrapper NotImplementedException on MacOS HOT 11
- Harmony.Patch() is a bit slow. HOT 2
- 'CORINFO_METHOD_INFO' from assembly 'System.Text.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. HOT 4
- I try to hook DateTime.UtcNow but it throw exception HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from harmony.