Moved pref saving to specific locations
This commit is contained in:
@@ -18,6 +18,7 @@ import java.io.*;
|
||||
import java.text.*;
|
||||
import java.util.*;
|
||||
|
||||
import static arc.Core.*;
|
||||
import static mindustry.Vars.net;
|
||||
|
||||
public class CrashSender{
|
||||
@@ -39,6 +40,11 @@ public class CrashSender{
|
||||
try{
|
||||
exception.printStackTrace();
|
||||
|
||||
//try saving game data
|
||||
try{
|
||||
settings.manualSave();
|
||||
}catch(Throwable ignored){}
|
||||
|
||||
//don't create crash logs for custom builds, as it's expected
|
||||
if(Version.build == -1 || (System.getProperty("user.name").equals("anuke") && "release".equals(Version.modifier))){
|
||||
ret();
|
||||
|
||||
Reference in New Issue
Block a user