From 51925d053c5e326ecadbe1d1db460cfeb131d718 Mon Sep 17 00:00:00 2001 From: GuglioIsStupid Date: Wed, 29 May 2024 01:39:21 -0400 Subject: [PATCH] for some reason, removing the print function, broke some mod folder related things????? --- src/love/main.lua | 6 ++---- src/love/modules/deprecated.lua | 1 + 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/love/main.lua b/src/love/main.lua index 945bd2b1..ef0297b3 100644 --- a/src/love/main.lua +++ b/src/love/main.lua @@ -17,11 +17,11 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . ------------------------------------------------------------------------------]] __VERSION__ = love.filesystem.read("version.txt") -if love.filesystem.isFused() then +--[[ if love.filesystem.isFused() then function print() end else _debug = true -end -- print functions tend the make the game lag when in update functions, so we do this to prevent that +end ]]debug=true -- print functions tend the make the game lag when in update functions, so we do this to prevent that function uitextflarge(text,x,y,limit,align,hovered,r,sx,sy,ox,oy,kx,ky) local x = x or 0 local y = y or 0 @@ -470,8 +470,6 @@ function love.load() importMods.loadAllMods() end - love.audio.setVolume(0) - Gamestate.switch(menu) love.setFpsCap(settings.fpsCap) diff --git a/src/love/modules/deprecated.lua b/src/love/modules/deprecated.lua index 5a25d25e..ab7e2d90 100644 --- a/src/love/modules/deprecated.lua +++ b/src/love/modules/deprecated.lua @@ -7,6 +7,7 @@ function weeks.legacyGenerateNotes(self, chart) self.overrideHealthbarText = importMods.uiHealthbarTextMod or nil self.overrideDrawHealthbar = importMods.uiHealthbarMod or nil local chart = getFilePath(chart) + print(chart chart = json.decode(love.filesystem.read(chart)).song for i = 1, #chart.notes do