From 33b4f7b63af57825c49948d62b905de0482f9ebc Mon Sep 17 00:00:00 2001 From: inotia00 <108592928+inotia00@users.noreply.github.com> Date: Fri, 13 Oct 2023 01:38:51 +0900 Subject: [PATCH] fix(YouTube/Enable new splash animation): integrations sometimes return invalid values --- .../youtube/misc/splashanimation/NewSplashAnimationPatch.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/splashanimation/NewSplashAnimationPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/splashanimation/NewSplashAnimationPatch.kt index 5219b4abe..da5aa9552 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/splashanimation/NewSplashAnimationPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/splashanimation/NewSplashAnimationPatch.kt @@ -131,7 +131,7 @@ object NewSplashAnimationPatch : BytecodePatch( addInstructions( index, """ - invoke-static {}, $MISC_PATH/SplashAnimationPatch;->enableNewSplashAnimationBoolean()Z + invoke-static {v$register}, $MISC_PATH/SplashAnimationPatch;->enableNewSplashAnimationBoolean(Z)Z move-result v$register """ ) @@ -142,7 +142,7 @@ object NewSplashAnimationPatch : BytecodePatch( addInstructions( index, """ - invoke-static {}, $MISC_PATH/SplashAnimationPatch;->enableNewSplashAnimationInt()I + invoke-static {v$register}, $MISC_PATH/SplashAnimationPatch;->enableNewSplashAnimationInt(I)I move-result v$register """ )