From 8d05a8893b76383330e6bfeff992546fb46e4ead Mon Sep 17 00:00:00 2001 From: yugecin Date: Wed, 18 Jan 2017 19:41:27 +0100 Subject: [PATCH] save options and delete temp dir on close --- src/yugecin/opsudance/OpsuDance.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/yugecin/opsudance/OpsuDance.java b/src/yugecin/opsudance/OpsuDance.java index 06a2f206..e8b5b28a 100644 --- a/src/yugecin/opsudance/OpsuDance.java +++ b/src/yugecin/opsudance/OpsuDance.java @@ -71,9 +71,11 @@ public class OpsuDance { while (rungame()); container.teardownAL(); + Options.saveOptions(); closeSingleInstanceSocket(); DBController.closeConnections(); DownloadList.get().cancelAllDownloads(); + Utils.deleteDirectory(Options.TEMP_DIR); } private boolean rungame() {