change logdir

This commit is contained in:
ShirosakiMio 2023-08-26 14:48:45 +08:00
parent f62661f8cb
commit 6bbe8795cc
2 changed files with 2 additions and 2 deletions

View File

@ -233,7 +233,7 @@ public class FCLauncher {
// initialize FCLBridge
FCLBridge bridge = new FCLBridge();
bridge.setLogPath(new File(FCLPath.SHARED_COMMON_DIR).getParent() + "/latest_game.log");
bridge.setLogPath(config.getLogDir() + "/latest_game.log");
Thread gameThread = new Thread(() -> {
try {
logStartInfo(bridge, "Minecraft");

View File

@ -39,7 +39,7 @@ public class FCLPath {
NATIVE_LIB_DIR = context.getApplicationInfo().nativeLibraryDir;
LOG_DIR = context.getExternalFilesDir("log").getAbsolutePath();
LOG_DIR = Environment.getExternalStorageDirectory().getAbsolutePath() + "/FCL/log";
CACHE_DIR = context.getCacheDir() + "/fclauncher";
RUNTIME_DIR = context.getDir("runtime", 0).getAbsolutePath();