mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 04:42:07 -08:00
Autosave limited decks on submit (#11147)
* Autosave limited decks in gamelogs folder * differentiate LIMITED_SIDEBOARD_BUILDING from LIMITED_BUILDING
This commit is contained in:
parent
0a3fa8c25a
commit
b62b089659
9 changed files with 101 additions and 33 deletions
|
|
@ -15,6 +15,14 @@ public abstract class DeckExporter {
|
|||
DeckFormats.writeDeck(file, deck, this);
|
||||
}
|
||||
|
||||
public void writeDeck(File directory, String filename, DeckCardLists deck) throws IOException {
|
||||
if (!directory.exists()) {
|
||||
directory.mkdirs();
|
||||
}
|
||||
String path = new File(directory, filename).getPath();
|
||||
DeckFormats.writeDeck(path, deck, this);
|
||||
}
|
||||
|
||||
public void writeDeck(File file, DeckCardLists deck) throws IOException {
|
||||
DeckFormats.writeDeck(file, deck, this);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue