From fa561d51b70e9eb69148c3e062bb2618948c3c9d Mon Sep 17 00:00:00 2001 From: Bradley Date: Thu, 5 Jan 2023 17:43:33 -0500 Subject: [PATCH] move VERSION.txt --- love/VERSION.txt => VERSION.txt | 0 love/main.lua | 1 - love/modules/loveFuncs.lua | 4 ++-- 3 files changed, 2 insertions(+), 3 deletions(-) rename love/VERSION.txt => VERSION.txt (100%) diff --git a/love/VERSION.txt b/VERSION.txt similarity index 100% rename from love/VERSION.txt rename to VERSION.txt diff --git a/love/main.lua b/love/main.lua index 6824c8ab..aa90cdcf 100644 --- a/love/main.lua +++ b/love/main.lua @@ -29,7 +29,6 @@ if love.filesystem.isFused() and (love.system.getOS() == "Windows" or love.syste nextPresenceUpdate = 0 end function love.load() - __VERSION__ = love.filesystem.read("version.txt") require "modules.loveFuncs" inputMod = require "modules.input" input = inputMod:_load_config( diff --git a/love/modules/loveFuncs.lua b/love/modules/loveFuncs.lua index 5c1f5cd1..828240a2 100644 --- a/love/modules/loveFuncs.lua +++ b/love/modules/loveFuncs.lua @@ -55,10 +55,10 @@ Edition: %s if selected == 1 then -- Surround traceback in ``` to get a Markdown code block full_error = table.concat({"```",full_error,"```"}, "\n") - issuebody = string.format(issuebody, full_error, __VERSION__, love.system.getOS()) + issuebody = string.format(issuebody, full_error, love.system.getOS()) issuebody = url_encode(issuebody) - local subject = string.format("Crash for Rit %s", __VERSION__) + local subject = "Crash for Rit" local url = string.format("https://github.com/GuglioIsStupid/Rit/issues/new?title=%s&body=%s", subject, issuebody) love.system.openURL(url) end