Hi there.
The settings.xml file is created when someone hits the "X" button on its window,
but not when someone normal File->Exit(s).
I run on FreeBSD and I have not tested it on linux/windows, however i bet
the situation will be identical there as well.
The problem lies in that EcuEditorMenuBar just calls System.exit(0); on exit
instead of calling DOMSettingsBuilder.buildSettings.
Changes in ECUEditor.java
==========================
Code:
public void handleExit() {
getSettings().setSplitPaneLocation(splitPane.getDividerLocation());
if (getExtendedState() == JFrame.MAXIMIZED_BOTH)
getSettings().setWindowMaximized(true);
else {
getSettings().setWindowMaximized(false);
getSettings().setWindowSize(getSize());
getSettings().setWindowLocation(getLocation());
}
DOMSettingsBuilder builder = new DOMSettingsBuilder();
try {
JProgressPane progress = new JProgressPane(this, "Saving settings...", "Saving settings...");
builder.buildSettings(settings, new File("./settings.xml"), progress, version);
} catch (IOException ex) { }
}
public void windowClosing(WindowEvent e) {
handleExit();
}
Changes in ECUEditorMenuBar.java
==================================
Code:
} else if (e.getSource() == exit) {
parent.handleExit();
System.exit(0);
}
(I coud also send a little patch in diff format).
Kudos to the RomRaider staff!!!!