在 Windows 的启动脚本里增加一行 cd %appdata%
这样可以避免一些文件如 logs 生成在脚本所在目录,而不是 .minecraft 目录
This commit is contained in:
@@ -174,6 +174,8 @@ public class GameLauncher {
|
|||||||
if (appdata != null) {
|
if (appdata != null) {
|
||||||
writer.write("set appdata=" + appdata);
|
writer.write("set appdata=" + appdata);
|
||||||
writer.newLine();
|
writer.newLine();
|
||||||
|
writer.write("cd %appdata%");
|
||||||
|
writer.newLine();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (StrUtils.isNotBlank(options.getPrecalledCommand())) {
|
if (StrUtils.isNotBlank(options.getPrecalledCommand())) {
|
||||||
|
|||||||
Reference in New Issue
Block a user