Skip to content

Commit

Permalink
optimize: vlc加载
Browse files Browse the repository at this point in the history
  • Loading branch information
Greatwallcorner committed Feb 8, 2025
1 parent 11b4e6f commit b54b57b
Show file tree
Hide file tree
Showing 373 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class CustomDirectoryDiscovery:DiscoveryDirectoryProvider {
val arrayOf = mutableListOf<String>()
System.getProperty(Constants.resPathKey)?.run {
log.debug("resPath: $this")
arrayOf.add(this.trimBlankChar())
arrayOf.add(this.trimBlankChar() + "/lib")
}
val debugPath = File(System.getProperty("user.dir")).resolve("src/desktopMain/resources/res/${getOsArchName()}/lib")
if(StringUtils.isNotBlank(debugPath.toString())){
Expand All @@ -48,9 +48,9 @@ class CustomDirectoryDiscovery:DiscoveryDirectoryProvider {
private fun getArchName():String {
System.getProperty("os.arch").lowercase().let {
return when {
"x86" in it || "x64" in it || "amd64" in it -> "x86"
"x86" in it || "x64" in it || "amd64" in it -> "x64"
"arm" in it || "aarch" in it -> "arm64"
else -> "x86"
else -> "x64"
}
}
}
Expand Down
Loading

0 comments on commit b54b57b

Please sign in to comment.