From 23be631cac2a5e0f78b83c7b3a75521f1cf84d71 Mon Sep 17 00:00:00 2001 From: periwinkle Date: Sat, 7 Mar 2020 21:11:54 -0500 Subject: [PATCH] Make sharecodes platform-independent MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Resolves the issue of sharecodes generated with the 32-bit version of LÖVE being incompatible with the 64-bit version, and vice versa. This also happens to shorten the sharecodes by removing all of the "A"s at the beginning. :) --- src/randomizer.lua | 2 +- src/ui/draw.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/randomizer.lua b/src/randomizer.lua index a404f4c..be715be 100644 --- a/src/randomizer.lua +++ b/src/randomizer.lua @@ -399,7 +399,7 @@ function C:_updateSharecode(seed) seed = seed .. (" "):rep(20-#seed) end - local packed = love.data.pack("data", "sBB", seed, settings, seq) + local packed = love.data.pack("data", "