Skip to content

Commit

Permalink
add check if debugger were used
Browse files Browse the repository at this point in the history
  • Loading branch information
AGulev committed Nov 17, 2023
1 parent 797fb20 commit c03d360
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lmprof/scripts/lmprof.script
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ local lmprof_helper = require("lmprof.scripts.lmprof_helper")
function init(self)
msg.post(".", "acquire_input_focus")
lmprof_helper.init()
if debug.gethook() ~= nil then
error("Run game without debugger using cmd/ctrl+B instead of F5")
end
end

function update(self, dt)
Expand Down

0 comments on commit c03d360

Please sign in to comment.