Skip to content

Commit

Permalink
change launcher log dir
Browse files Browse the repository at this point in the history
  • Loading branch information
ShirosakiMio committed Mar 10, 2024
1 parent ec6acfb commit 9379aaa
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
renderer = getIntent().getExtras().getString("renderer");
java = getIntent().getExtras().getString("java");

title.setText(game ? getString(R.string.game_crash_title) : getString(R.string.jar_executor_crash_title));
title.setText(game ? getString(R.string.game_crash_title) + getString(R.string.game_crash_title_add): getString(R.string.jar_executor_crash_title));
setLoading(true);
try {
init();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private void recheckPermission() {
private void init() {
FCLPath.loadPaths(this);
transFile();
Logging.start(new File(FCLPath.FILES_DIR, "logs").toPath());
Logging.start(Paths.get(FCLPath.LOG_DIR));
initFragments();
start();
}
Expand Down
1 change: 1 addition & 0 deletions FCL/src/main/res/values-zh/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@
<string name="game_crash_reason_unknown">原因未知,请参考日志。\n如果你要求助他人,请你导出游戏崩溃信息后将导出的文件发送给他人以供分析。</string>
<string name="game_crash_reason_unsatisfied_link_error">当前游戏因为缺少本地库,无法继续运行。</string>
<string name="game_crash_title">游戏意外退出</string>
<string name="game_crash_title_add">(你应该将完整的日志文件发送出来,而不是在这个界面截图)</string>

<string name="help">帮助</string>
<string name="help_category">类别</string>
Expand Down
1 change: 1 addition & 0 deletions FCL/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@
<string name="game_crash_reason_unknown">We are not able to figure out why the game crashed, please refer to the game logs.\n\nWhen asking someone else for help, please share the full game log and related crash report file with them!</string>
<string name="game_crash_reason_unsatisfied_link_error">Unable to launch Minecraft due to missing libraries: %1$s.</string>
<string name="game_crash_title">Game Crashed</string>
<string name="game_crash_title_add">You should send the full crash log file instead of taking a screenshot</string>

<string name="help">Help</string>
<string name="help_category">Category</string>
Expand Down

0 comments on commit 9379aaa

Please sign in to comment.