fix: Add hooks to existing hook set

Previously, the hooks were just combined to a new set and returned, without adding them to original mutable set.
This commit is contained in:
oSumAtrIX 2023-10-02 15:34:14 +02:00
parent 848c40f7da
commit 5655067f28
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ object SpoofSignaturePatch : BytecodePatch(
)
// Hook the player parameters.
PlayerResponseMethodHookPatch + PlayerResponseMethodHookPatch.Hook.ProtoBufferParameter(
PlayerResponseMethodHookPatch += PlayerResponseMethodHookPatch.Hook.ProtoBufferParameter(
"$INTEGRATIONS_CLASS_DESCRIPTOR->spoofParameter(Ljava/lang/String;)Ljava/lang/String;"
)

View File

@ -120,7 +120,7 @@ object VideoIdPatch : BytecodePatch(
* @param methodDescriptor which method to call. Params have to be `Ljava/lang/String;`
*/
fun hookPlayerResponseVideoId(methodDescriptor: String) {
PlayerResponseMethodHookPatch + PlayerResponseMethodHookPatch.Hook.VideoId(
PlayerResponseMethodHookPatch += PlayerResponseMethodHookPatch.Hook.VideoId(
methodDescriptor
)
}