Skip to content

Commit

Permalink
feat: platform in crash handler
Browse files Browse the repository at this point in the history
  • Loading branch information
WilsontheWolf committed Jan 10, 2025
1 parent b6133e9 commit aa4cb52
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/crash_handler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ function getDebugInfoForCrash()
local versionFile = love.filesystem.read("version.jkr")
if versionFile then
version = versionFile:match("[^\n]*") .. " (best guess)"
else
else
version = "???"
end
end
Expand All @@ -509,18 +509,18 @@ function getDebugInfoForCrash()
modded_version = reqVersion
else
modded_version = "???"
end
end
end

local info = "Additional Context:\nBalatro Version: " .. version .. "\nModded Version: " ..
(modded_version)
local major, minor, revision, codename = love.getVersion()
info = info .. string.format("\nLÖVE Version: %d.%d.%d", major, minor, revision)

local lovely_success, lovely = pcall(require, "lovely")
if lovely_success then
info = info .. "\nLovely Version: " .. lovely.version
end
info = info .. "\nPlatform: " .. (love.system.getOS() or "???")
if SMODS and SMODS.Mods then
local mod_strings = ""
local lovely_strings = ""
Expand Down

0 comments on commit aa4cb52

Please sign in to comment.