mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-15 15:48:26 -04:00
Create a new latestlog.txt file on the java side
This commit is contained in:
parent
96c021eecc
commit
7c8fa642bd
@ -131,7 +131,10 @@ public class MainActivity extends BaseActivity implements ControlButtonMenuListe
|
||||
drawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED);
|
||||
|
||||
try {
|
||||
Logger.begin(new File(Tools.DIR_GAME_HOME, "latestlog.txt").getAbsolutePath());
|
||||
File latestLogFile = new File(Tools.DIR_GAME_HOME, "latestlog.txt");
|
||||
if(!latestLogFile.exists() && !latestLogFile.createNewFile())
|
||||
throw new IOException("Failed to create a new log file");
|
||||
Logger.begin(latestLogFile.getAbsolutePath());
|
||||
// FIXME: is it safe for multi thread?
|
||||
GLOBAL_CLIPBOARD = (ClipboardManager) getSystemService(CLIPBOARD_SERVICE);
|
||||
touchCharInput.setCharacterSender(new LwjglCharSender());
|
||||
|
Loading…
x
Reference in New Issue
Block a user