save options and delete temp dir on close

This commit is contained in:
yugecin 2017-01-18 19:41:27 +01:00
parent 0eac32505b
commit 8d05a8893b

View File

@ -71,9 +71,11 @@ public class OpsuDance {
while (rungame()); while (rungame());
container.teardownAL(); container.teardownAL();
Options.saveOptions();
closeSingleInstanceSocket(); closeSingleInstanceSocket();
DBController.closeConnections(); DBController.closeConnections();
DownloadList.get().cancelAllDownloads(); DownloadList.get().cancelAllDownloads();
Utils.deleteDirectory(Options.TEMP_DIR);
} }
private boolean rungame() { private boolean rungame() {