conf.lua 554 B

1234567891011121314151617181920
  1. function love.conf(t)
  2. print("love.conf")
  3. t.console = true
  4. t.window.name = 'love.test'
  5. t.window.width = 360
  6. t.window.height = 240
  7. t.window.resizable = true
  8. t.window.depth = true
  9. t.window.stencil = true
  10. end
  11. -- custom crash message here to catch anything that might occur with modules
  12. -- loading before we hit main.lua
  13. local function error_printer(msg, layer)
  14. print((debug.traceback("Error: " .. tostring(msg), 1+(layer or 1)):gsub("\n[^\n]+$", "")))
  15. end
  16. function love.errorhandler(msg)
  17. msg = tostring(msg)
  18. error_printer(msg, 2)
  19. end