@@ -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