mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2026-08-28 05:45:03 -06:00
Create a new latestlog.txt file on the java side
This commit is contained in:
parent
96c021eecc
commit
7c8fa642bd
1 changed files with 4 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue