mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
Ability to import draft logs as decks.
This commit is contained in:
parent
35f705e07b
commit
61d40902ab
6 changed files with 593 additions and 3 deletions
|
|
@ -1414,14 +1414,15 @@ class ImportFilter extends FileFilter {
|
|||
|| ext.equalsIgnoreCase("txt")
|
||||
|| ext.equalsIgnoreCase("dek")
|
||||
|| ext.equalsIgnoreCase("cod")
|
||||
|| ext.equalsIgnoreCase("o8d");
|
||||
|| ext.equalsIgnoreCase("o8d")
|
||||
|| ext.equalsIgnoreCase("draft");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDescription() {
|
||||
return "All formats (*.dec; *.mwDeck; *.txt; *.dek; *.cod; *.o8d)";
|
||||
return "All formats (*.dec; *.mwDeck; *.txt; *.dek; *.cod; *.o8d; *.draft)";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ public class DraftPanel extends javax.swing.JPanel {
|
|||
|
||||
if (isLogging()) {
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd_HHmmss");
|
||||
String logFilename = "Draft_" + sdf.format(new Date()) + '_' + draftId + ".txt";
|
||||
String logFilename = "Draft_" + sdf.format(new Date()) + '_' + draftId + ".draft";
|
||||
draftLogger = new DraftPickLogger(new File("gamelogs"), logFilename);
|
||||
} else {
|
||||
draftLogger = new DraftPickLogger();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue