mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Renamed method for clarity.
This commit is contained in:
2
.gitattributes
vendored
2
.gitattributes
vendored
@@ -8520,7 +8520,7 @@ src/forge/EndOfCombat.java -text svneol=native#text/plain
|
||||
src/forge/EndOfTurn.java svneol=native#text/plain
|
||||
src/forge/ExternalPanel.java svneol=native#text/plain
|
||||
src/forge/FileFinder.java -text svneol=native#text/plain
|
||||
src/forge/FileUtil.java -text svneol=native#text/plain
|
||||
src/forge/FileUtil.java svneol=native#text/plain
|
||||
src/forge/GUI_DeckAnalysis.java -text svneol=native#text/plain
|
||||
src/forge/GUI_Filter.java -text svneol=native#text/plain
|
||||
src/forge/GUI_ImportPicture.java -text svneol=native#text/plain
|
||||
|
||||
@@ -1,15 +1,12 @@
|
||||
package forge;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.BufferedWriter;
|
||||
import java.io.File;
|
||||
import java.io.FileReader;
|
||||
import java.io.FileWriter;
|
||||
|
||||
import forge.error.ErrorViewer;
|
||||
|
||||
import java.io.*;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import forge.error.ErrorViewer;
|
||||
|
||||
|
||||
public class FileUtil {
|
||||
public static boolean doesFileExist(String filename) {
|
||||
@@ -39,7 +36,7 @@ public class FileUtil {
|
||||
ErrorViewer.showError(ex);
|
||||
throw new RuntimeException("FileUtil : writeFile() error, problem writing file - " + file + " : " + ex);
|
||||
}
|
||||
}//writeFile()
|
||||
}//writeAllDecks()
|
||||
|
||||
public static ArrayList<String> readFile(String filename) {
|
||||
return readFile(new File(filename));
|
||||
|
||||
@@ -122,7 +122,7 @@ public class DeckManager {
|
||||
}
|
||||
|
||||
public void close() {
|
||||
writeFile();
|
||||
writeAllDecks();
|
||||
}
|
||||
|
||||
|
||||
@@ -262,7 +262,7 @@ public class DeckManager {
|
||||
return deckName.replaceAll("[^-_$#@.{[()]} a-zA-Z0-9]", "");
|
||||
}
|
||||
|
||||
public void writeFile() {
|
||||
public void writeAllDecks() {
|
||||
try {
|
||||
//store the files that do exist
|
||||
List<File> files = new ArrayList<File>();
|
||||
|
||||
Reference in New Issue
Block a user