diff --git a/src/main/xerus/monstercat/MonsterUtilities.kt b/src/main/xerus/monstercat/MonsterUtilities.kt index 8e86dcb..23f8624 100644 --- a/src/main/xerus/monstercat/MonsterUtilities.kt +++ b/src/main/xerus/monstercat/MonsterUtilities.kt @@ -223,9 +223,12 @@ class MonsterUtilities(checkForUpdate: Boolean): VBox(), JFXMessageDisplay { fun showChangelog() { val c = Changelog().apply { - version("dev123", "Revamp Release fetching", + version("dev138", "Revamp Release fetching", "The Release fetching now works with the new pagination of the Monstercat API", - "Added a little cover art in the Player") + "Added a little cover art in the Player", + "Fixed naming patterns in Downloader", + "Improved caching", + "Squashed many small bugs") version("dev116", "Bugfixes & Downloader aftercare", "Updated & Expanded connect.sid instructions", diff --git a/src/main/xerus/monstercat/tabs/TabSettings.kt b/src/main/xerus/monstercat/tabs/TabSettings.kt index 4e15bf3..baa8f4f 100644 --- a/src/main/xerus/monstercat/tabs/TabSettings.kt +++ b/src/main/xerus/monstercat/tabs/TabSettings.kt @@ -203,9 +203,9 @@ class TabSettings: VTab() { val files = cacheDir.listFiles() + logDir.listFiles() ZipOutputStream(zipFile.outputStream()).use { zip -> files.filter { it.isFile && it != zipFile }.forEach { file -> - zip.putNextEntry(ZipEntry(file.toString().removePrefix(cacheDir.toString()).replace('\\', '/').trim('/')).apply { - this.lastModifiedTime = FileTime.from(file.lastModified(), TimeUnit.MILLISECONDS) - }) + val entry = ZipEntry(file.toString().removePrefix(dataDir.toString()).replace('\\', '/').trim('/')) + entry.lastModifiedTime = FileTime.from(file.lastModified(), TimeUnit.MILLISECONDS) + zip.putNextEntry(entry) file.inputStream().use { it.copyTo(zip) } } }