Skip to content

Commit

Permalink
fix: Add hooks to existing hook set
Browse files Browse the repository at this point in the history
Previously, the hooks were just combined to a new set and returned, without adding them to original mutable set.
  • Loading branch information
oSumAtrIX committed Oct 2, 2023
1 parent 848c40f commit 5655067
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
}
Expand Down

0 comments on commit 5655067

Please sign in to comment.