Skip to content

Commit eeb96b1

Browse files
committed
fix: path
1 parent 5f0f8b9 commit eeb96b1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/kotlin/xyz/cssxsh/mirai/plugin/MiraiDevicePlugin.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,21 @@ public object MiraiDevicePlugin : KotlinPlugin(
3333

3434
with(dataFolder.resolve("models.json")) {
3535
if (exists().not()) {
36-
writeText(getResource("models.json") ?: throw NoSuchElementException("models.json"))
36+
writeText(getResource("xyz/cssxsh/mirai/plugin/models.json") ?: throw NoSuchElementException("models.json"))
3737
}
3838
generator.models = json.decodeFromString(readText())
3939
}
4040

4141
with(dataFolder.resolve("sdks.json")) {
4242
if (exists().not()) {
43-
writeText(getResource("sdks.json") ?: throw NoSuchElementException("sdks.json"))
43+
writeText(getResource("xyz/cssxsh/mirai/plugin/sdks.json") ?: throw NoSuchElementException("sdks.json"))
4444
}
4545
generator.sdks = json.decodeFromString(readText())
4646
}
4747

4848
with(dataFolder.resolve("mac.json")) {
4949
if (exists().not()) {
50-
writeText(getResource("mac.json") ?: throw NoSuchElementException("mac.json"))
50+
writeText(getResource("xyz/cssxsh/mirai/plugin/mac.json") ?: throw NoSuchElementException("mac.json"))
5151
}
5252
generator.addr = json.decodeFromString(readText())
5353
}

0 commit comments

Comments
 (0)