-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain
More file actions
27 lines (25 loc) · 828 Bytes
/
Copy pathmain
File metadata and controls
27 lines (25 loc) · 828 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import java.io.File;
import java.io.PrintStream;
import java.util.*;
public class GroundZeroes
{
public static final boolean CAN_SAVE = false;
public static final String FILE_EXTENSION = ".gz";
public static void main(String[] args) throws InterruptedException
{
System.out.println("Game saving has been disabled in this version.\n");
Game newGame = new Game();
newGame.play();
}
private static void listFiles()
{
System.out.println("\nExisting Game Saves:");
File f = new File(System.getProperty("user.dir"));
File[] fileArray = f.listFiles();
for (File file : fileArray) {
if ((file != null) && (file.getName().endsWith(".sfsilentstorm"))) {
System.out.println(file.getName().substring(0, file.getName().length() - ".sfsilentstorm".length()));
}
}
}
}