Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
skiko
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liuqiang
skiko
Commits
624ca789
Commit
624ca789
authored
Nov 23, 2020
by
Nikolay Igotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplification.
parent
875ff2dd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
CustomLoader.kt
skiko/src/jvmMain/kotlin/org/jetbrains/skija/CustomLoader.kt
+1
-1
Library.kt
skiko/src/jvmMain/kotlin/org/jetbrains/skiko/Library.kt
+2
-6
No files found.
skiko/src/jvmMain/kotlin/org/jetbrains/skija/CustomLoader.kt
View file @
624ca789
...
@@ -2,6 +2,6 @@ package org.jetbrains.skija
...
@@ -2,6 +2,6 @@ package org.jetbrains.skija
class
CustomLoader
:
Runnable
{
class
CustomLoader
:
Runnable
{
override
fun
run
()
{
override
fun
run
()
{
org
.
jetbrains
.
skiko
.
Library
.
run
()
org
.
jetbrains
.
skiko
.
Library
.
load
()
}
}
}
}
\ No newline at end of file
skiko/src/jvmMain/kotlin/org/jetbrains/skiko/Library.kt
View file @
624ca789
...
@@ -7,7 +7,7 @@ import java.nio.file.Files
...
@@ -7,7 +7,7 @@ import java.nio.file.Files
import
java.nio.file.StandardCopyOption
import
java.nio.file.StandardCopyOption
import
javax.swing.UIManager
import
javax.swing.UIManager
object
Library
:
Runnable
{
object
Library
{
private
var
loaded
=
false
private
var
loaded
=
false
private
val
cacheRoot
=
"${System.getProperty("
user
.
home
")}/.skiko/"
private
val
cacheRoot
=
"${System.getProperty("
user
.
home
")}/.skiko/"
...
@@ -31,7 +31,7 @@ object Library : Runnable {
...
@@ -31,7 +31,7 @@ object Library : Runnable {
// in Skiko's home, and if not - unpacks it. Also, it could load additional
// in Skiko's home, and if not - unpacks it. Also, it could load additional
// localization resource on platforms wher it is needed.
// localization resource on platforms wher it is needed.
@Synchronized
@Synchronized
private
fun
load
()
{
fun
load
()
{
if
(
loaded
)
return
if
(
loaded
)
return
val
resourcePath
=
"/"
val
resourcePath
=
"/"
...
@@ -74,8 +74,4 @@ object Library : Runnable {
...
@@ -74,8 +74,4 @@ object Library : Runnable {
// Not all platforms allow this.
// Not all platforms allow this.
}
}
}
}
override
fun
run
()
{
load
()
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment