From 7b53c1289d62da3fb94d3f8eac3108278ececc83 Mon Sep 17 00:00:00 2001 From: Misa Date: Fri, 25 Mar 2022 10:58:12 -0700 Subject: [PATCH] Remove `.data.zip` assets This WOULD be a huge breaking change, if it weren't for the fact that no one uses them. Which is why I'm removing them, to simplify the code. I asked on the VVVVVV Discord whether anyone used them or was even aware of them and basically the answer was no. I go on Distractionware and no one uses them. And why would they, when they'd have to distribute the level .vvvvvv file separately? Better to just distribute everything in one zip. And it's quite a bit obscure that you have to suffix the file with .data.zip anyway. --- desktop_version/src/FileSystemUtils.cpp | 37 ++++++------------------- 1 file changed, 8 insertions(+), 29 deletions(-) diff --git a/desktop_version/src/FileSystemUtils.cpp b/desktop_version/src/FileSystemUtils.cpp index 8dd31bcc..88f39d57 100644 --- a/desktop_version/src/FileSystemUtils.cpp +++ b/desktop_version/src/FileSystemUtils.cpp @@ -522,16 +522,16 @@ bool FILESYSTEM_mountAssets(const char* path) VVV_between(path, "levels/", filename, ".vvvvvv"); - /* Check for a zipped up pack only containing assets first */ SDL_snprintf( virtual_path, sizeof(virtual_path), - "levels/%s.data.zip", + "levels/%s.zip", filename ); if (FILESYSTEM_exists(virtual_path)) { - vlog_info("Asset directory is .data.zip at %s", virtual_path); + /* This is a full zipped-up level including assets */ + vlog_info("Asset directory is .zip at %s", virtual_path); if (!FILESYSTEM_mountAssetsFrom(virtual_path)) { @@ -542,16 +542,16 @@ bool FILESYSTEM_mountAssets(const char* path) } else { + /* If it's not a level, look for a level folder */ SDL_snprintf( virtual_path, sizeof(virtual_path), - "levels/%s.zip", + "levels/%s/", filename ); if (FILESYSTEM_exists(virtual_path)) { - /* This is a full zipped-up level including assets */ - vlog_info("Asset directory is .zip at %s", virtual_path); + vlog_info("Asset directory exists at %s", virtual_path); if (!FILESYSTEM_mountAssetsFrom(virtual_path)) { @@ -562,29 +562,8 @@ bool FILESYSTEM_mountAssets(const char* path) } else { - /* If it's not a level or base zip, look for a level folder */ - SDL_snprintf( - virtual_path, - sizeof(virtual_path), - "levels/%s/", - filename - ); - if (FILESYSTEM_exists(virtual_path)) - { - vlog_info("Asset directory exists at %s", virtual_path); - - if (!FILESYSTEM_mountAssetsFrom(virtual_path)) - { - return false; - } - - MAYBE_FAIL(graphics.reloadresources()); - } - else - { - /* Wasn't a level zip, base zip, or folder! */ - vlog_debug("Asset directory does not exist"); - } + /* Wasn't a level zip or folder! */ + vlog_debug("Asset directory does not exist"); } }