Skip to content

Commit f27f74e

Browse files
committed
fix plugin path
1 parent b3fa557 commit f27f74e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/src/main/java/cn/lliiooll/gmc/BotService.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@
1414
import net.lz1998.gomiraiclient.MainActivity;
1515
import org.jetbrains.annotations.NotNull;
1616

17+
import java.io.File;
18+
1719
public class BotService extends Service {
1820
private static boolean active = false;
1921

2022
@Override
2123
public void onCreate() {
22-
24+
Gmc_android.setPluginPath(new File(getFilesDir(),"plugins").getAbsolutePath());
2325
new Thread(Gmc_android::start).start();
2426
Toast.makeText(this, "Start Service", Toast.LENGTH_SHORT).show();
2527
active = true;

0 commit comments

Comments
 (0)