Giter Club home page Giter Club logo

Comments (10)

pardeike avatar pardeike commented on June 4, 2024

Are you using Harmony or HarmonyX ?

from harmony.

yangboyd avatar yangboyd commented on June 4, 2024

It's Harmony.dll 2.2.2.0

Are you using Harmony or HarmonyX ?

from harmony.

pardeike avatar pardeike commented on June 4, 2024

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.

yangboyd avatar yangboyd commented on June 4, 2024

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.

pardeike avatar pardeike commented on June 4, 2024

Here is the documentation build from the actual source code: https://harmony.pardeike.net/api/HarmonyLib.HarmonyArgument.html

from harmony.

yangboyd avatar yangboyd commented on June 4, 2024

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.

pardeike avatar pardeike commented on June 4, 2024

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.

yangboyd avatar yangboyd commented on June 4, 2024

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.

yangboyd avatar yangboyd commented on June 4, 2024

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.

pardeike avatar pardeike commented on June 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.