mirror of
https://bitbucket.org/projectswg/launchergame.git
synced 2026-01-16 23:04:22 -05:00
Fixed temporary file creation for windows
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user