Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
Save log when the game crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubg1 authored and ShamblesSM committed Feb 7, 2023
1 parent ac3483f commit 5757470
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crash.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ function love.errorhandler(msg)
msg = tostring(msg)

error_printer(msg, 2)

if _Log then
_Log:save(true)
end

if not love.window or not love.graphics or not love.event then
return
Expand Down

0 comments on commit 5757470

Please sign in to comment.