From 5eb4a9edb7a2ea313dae9946317e2dd306aa7a92 Mon Sep 17 00:00:00 2001 From: MCorange Date: Sun, 18 Aug 2024 15:03:36 +0300 Subject: [PATCH] :3 --- keypadOS.lua | 4 ++-- src/updater.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/keypadOS.lua b/keypadOS.lua index 240db62..7e9c9a8 100644 --- a/keypadOS.lua +++ b/keypadOS.lua @@ -1,4 +1,4 @@ -local __UPDATE_HASH = "399a256a8643d08b369cb0171b5a609324a79303" +local __UPDATE_HASH = "33e691170d24b5e81fd7624e5ab2ad9e8c1aeb72" local __BUNDLER_FILES = {} local __DEFAULT_IMPORT = require local require = function(path) @@ -25,7 +25,7 @@ rawset(__BUNDLER_FILES, "updater.lua", function () if update_code_request then local update_code_text = update_code_request.readAll() if update_code_text then - if string.find(update_code_text, "^local __BUNDLER_FILES = {}") then + if string.find(update_code_text, "^local __UPDATE_HASH") then if fs.exists("backup.lua") then fs.delete("backup.lua") end diff --git a/src/updater.lua b/src/updater.lua index 57ef886..3d74129 100644 --- a/src/updater.lua +++ b/src/updater.lua @@ -21,7 +21,7 @@ local function checkForUpdate() if update_code_request then local update_code_text = update_code_request.readAll() if update_code_text then - if string.find(update_code_text, "^local __BUNDLER_FILES = {}") then + if string.find(update_code_text, "^local __UPDATE_HASH") then -- Make backup if fs.exists("backup.lua") then fs.delete("backup.lua")