Skip to content

Commit 0a1ae06

Browse files
committed
Didn't realize that Save As had a file type dropdown
1 parent 25321e7 commit 0a1ae06

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

src/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ OpenBLCMM Changelog
2020
- Game launch button
2121
- Hex Multitool launch
2222
- "Invert Mod" functionality
23+
- Saving to FilterTool-formatted and structureless files
2324
- Object Explorer tweaks:
2425
- Combined all data into a single data package, and included dumps of all
2526
classes historically omitted from the OE data set (with the exceptions of
@@ -105,7 +106,6 @@ OpenBLCMM Changelog
105106
- Improved Changelog rendering
106107
- Some tightening-up of mod-name detection when the mod category and filename
107108
don't exactly match.
108-
- Removed hidden ability to save in legacy FilterTool mod format
109109
- Changed behavior when encountering invalid strings in map/level merge
110110
statements -- should possibly be more accepting now.
111111
- Replaced icon resources with known-free-to-use versions, and updated the

src/blcmm/gui/components/BLCMM_FileChooser.java

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
import javax.swing.JOptionPane;
4747
import javax.swing.JPanel;
4848
import javax.swing.SwingConstants;
49-
import javax.swing.filechooser.FileFilter;
5049

5150
/**
5251
*
@@ -71,23 +70,29 @@ public BLCMM_FileChooser(String path, String currentFileName, boolean appendBlcm
7170
this.appendBlcmExtension = appendBlcmExtension;
7271
super.setPreferredSize(new Dimension(750, 400));
7372
super.setSelectedFile(new File(currentFileName));
73+
/*
7474
if (saveAs) {
7575
super.addChoosableFileFilter(new FilterToolFileFilter());
7676
super.addChoosableFileFilter(new StructurelessFileFilter());
7777
}
78+
*/
7879
}
7980

8081
public PatchIO.SaveFormat getFormat() {
82+
/*
8183
if (this.getFileFilter() instanceof StructurelessFileFilter) {
8284
return PatchIO.SaveFormat.STRUCTURELESS;
8385
} else if (this.getFileFilter() instanceof FilterToolFileFilter) {
8486
return PatchIO.SaveFormat.FT;
8587
}
88+
*/
8689
return PatchIO.SaveFormat.BLCMM;
8790
}
8891

8992
@Override
9093
public void approveSelection() {
94+
95+
/*
9196
if (getFormat() == PatchIO.SaveFormat.STRUCTURELESS) {
9297
if (!Options.INSTANCE.getHasSeenExportWarning()) {
9398
Options.INSTANCE.setHasSeenExportWarning(true);
@@ -97,6 +102,8 @@ public void approveSelection() {
97102
);
98103
}
99104
}
105+
*/
106+
100107
if (getDialogType() == SAVE_DIALOG) {
101108
File f = getSelectedFile();
102109

@@ -261,6 +268,8 @@ private static JButton directoryShortcutButton(JFileChooser fc, String label, St
261268
return button;
262269
}
263270

271+
/*
272+
264273
public final static class FilterToolFileFilter extends FileFilter {
265274
266275
@Override
@@ -286,4 +295,6 @@ public String getDescription() {
286295
return "Structureless File - saves only checked codes and hotfixes (All Files)";
287296
}
288297
}
298+
299+
*/
289300
}

0 commit comments

Comments
 (0)