From eeb96b1a728cdbc743a4bc84ab45584048e6cc4d Mon Sep 17 00:00:00 2001 From: cssxsh Date: Thu, 27 Jan 2022 17:06:54 +0800 Subject: [PATCH] fix: path --- .../kotlin/xyz/cssxsh/mirai/plugin/MiraiDevicePlugin.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/xyz/cssxsh/mirai/plugin/MiraiDevicePlugin.kt b/src/main/kotlin/xyz/cssxsh/mirai/plugin/MiraiDevicePlugin.kt index 6b92a9d..cd9981b 100644 --- a/src/main/kotlin/xyz/cssxsh/mirai/plugin/MiraiDevicePlugin.kt +++ b/src/main/kotlin/xyz/cssxsh/mirai/plugin/MiraiDevicePlugin.kt @@ -33,21 +33,21 @@ public object MiraiDevicePlugin : KotlinPlugin( with(dataFolder.resolve("models.json")) { if (exists().not()) { - writeText(getResource("models.json") ?: throw NoSuchElementException("models.json")) + writeText(getResource("xyz/cssxsh/mirai/plugin/models.json") ?: throw NoSuchElementException("models.json")) } generator.models = json.decodeFromString(readText()) } with(dataFolder.resolve("sdks.json")) { if (exists().not()) { - writeText(getResource("sdks.json") ?: throw NoSuchElementException("sdks.json")) + writeText(getResource("xyz/cssxsh/mirai/plugin/sdks.json") ?: throw NoSuchElementException("sdks.json")) } generator.sdks = json.decodeFromString(readText()) } with(dataFolder.resolve("mac.json")) { if (exists().not()) { - writeText(getResource("mac.json") ?: throw NoSuchElementException("mac.json")) + writeText(getResource("xyz/cssxsh/mirai/plugin/mac.json") ?: throw NoSuchElementException("mac.json")) } generator.addr = json.decodeFromString(readText()) }