Skip to content

Commit

Permalink
fix: native
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Aug 4, 2023
1 parent c2269ab commit c7f7094
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/kotlin/xyz/cssxsh/mirai/tool/TLV544Provider.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class TLV544Provider : EncryptService {
internal val LIBRARY_PATH_PROPERTY: String = "xyz.cssxsh.mirai.tool.t544"

@JvmStatic
@PublishedApi
internal external fun sign(payload: ByteArray): ByteArray

@JvmStatic
Expand All @@ -49,8 +50,9 @@ public class TLV544Provider : EncryptService {
}

@JvmStatic
@PublishedApi
internal fun native() {
if (load.get().not()) return
if (load.get()) return
val filename = library()
val file = File(System.getProperty(LIBRARY_PATH_PROPERTY, filename))
if (file.isFile.not()) {
Expand Down

0 comments on commit c7f7094

Please sign in to comment.