chore: lint code

This commit is contained in:
inotia00 2024-08-07 13:53:32 +09:00
parent 6b891d9737
commit ba693530d2

View File

@ -202,16 +202,20 @@ object VideoInformationPatch : BytecodePatch(
playerConstructorMethod = playerConstructorMethod =
it.mutableClass.methods.first { method -> MethodUtil.isConstructor(method) } it.mutableClass.methods.first { method -> MethodUtil.isConstructor(method) }
playerConstructorInsertIndex = playerConstructorMethod.indexOfFirstInstructionOrThrow { playerConstructorInsertIndex =
opcode == Opcode.INVOKE_DIRECT && getReference<MethodReference>()?.name == "<init>" playerConstructorMethod.indexOfFirstInstructionOrThrow {
} + 1 opcode == Opcode.INVOKE_DIRECT && getReference<MethodReference>()?.name == "<init>"
} + 1
// hook the player controller for use through integrations // hook the player controller for use through integrations
onCreateHook(INTEGRATIONS_CLASS_DESCRIPTOR, "initialize") onCreateHook(INTEGRATIONS_CLASS_DESCRIPTOR, "initialize")
seekSourceEnumType = parameterTypes[1].toString() seekSourceEnumType = parameterTypes[1].toString()
seekSourceMethodName = name seekSourceMethodName = name
seekRelativeSourceMethodName = SeekRelativeFingerprint.alsoResolve(context, VideoEndFingerprint).mutableMethod.name seekRelativeSourceMethodName = SeekRelativeFingerprint.alsoResolve(
context,
VideoEndFingerprint
).mutableMethod.name
// Create integrations interface methods. // Create integrations interface methods.
addSeekInterfaceMethods( addSeekInterfaceMethods(