Changed crash report location

This commit is contained in:
Anuken
2018-07-12 19:00:02 -04:00
parent 3d536aa28d
commit a3bda3a941

View File

@@ -54,7 +54,7 @@ public class CrashHandler {
//try to write it //try to write it
try{ try{
filename = "crash-report-" + new SimpleDateFormat("dd-MM-yy h.mm.ss").format(new Date()) + ".txt"; filename = "crash-report-" + new SimpleDateFormat("dd-MM-yy h.mm.ss").format(new Date()) + ".txt";
Files.write(Paths.get(filename), result.getBytes()); Files.write(Paths.get(System.getProperty("user.home"), "mindustry-crash-reports", filename), result.getBytes());
}catch (Throwable i){ }catch (Throwable i){
i.printStackTrace(); i.printStackTrace();
failed = true; failed = true;