Fixed temporary file creation for windows

This commit is contained in:
Obique PSWG
2018-02-04 09:29:04 -06:00
parent 2b53dc260a
commit 58e46d129b

View File

@@ -18,7 +18,7 @@ import java.text.SimpleDateFormat;
public class GameLauncher extends PrimaryManager {
public static void main(String [] args) throws IOException {
String dateTime = new SimpleDateFormat("YYYYMMdd-HH:mm:ss").format(System.currentTimeMillis());
String dateTime = new SimpleDateFormat("YYYYMMdd-HHmmss").format(System.currentTimeMillis());
File tmp = Files.createTempFile("pswg-game-"+dateTime+"-", ".log").toFile();
Log.addWrapper(new FileLogWrapper(tmp));
int port = parsePortArgument(args);