conf.lua 581 B

123456789101112131415161718192021
  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. t.renderers = {"opengl"}
  11. end
  12. -- custom crash message here to catch anything that might occur with modules
  13. -- loading before we hit main.lua
  14. local function error_printer(msg, layer)
  15. print((debug.traceback("Error: " .. tostring(msg), 1+(layer or 1)):gsub("\n[^\n]+$", "")))
  16. end
  17. function love.errorhandler(msg)
  18. msg = tostring(msg)
  19. error_printer(msg, 2)
  20. end