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()) }