mirror of
https://github.com/love2d/love.git
synced 2026-08-12 16:40:57 +02:00
990259edf9
- added custom error handler so that love is closed if a crash occurs rather than hang on the graphic screen (for runner crashes mainly)
- updated missing functions left todo in todo.md and removed list from readme.md to make it easier to keep track of
- added love.audio.getPlaybackDevice(), love.audio.getPlaybackDevices(), love.audio.setPlaybackDevice()
- added love.data.ByteData:setString()
- added love.filesystem.getFullCommonPath(), love.filesystem.mountFullPath(), love.filesystem.unmountFullPath(), love.filesystem.moundCommonPath(), plus optional b/t/bt params to love.filesystem.load()
- added love.keyboard.isModifierActive()
- added love.sound.SoundData:copy() and love.sound.SoundData:slice()
- added love.graphics.Texture:isCanvas() and love.graphics.Texture:isComputeWritable()
- added love.image.ImageData:isLinear(), love.image.ImageData:setLinear(), and love.image.ImageData:encode("*.exr")
- added love.image.CompressedImageData:isLinear() and love.image.CompressedImageData:setLinear()
- added love.system.getPreferredLocales()
- added love.window.focus() and removed love.window.close() (now deprecated)
25 lines
610 B
Lua
25 lines
610 B
Lua
print("conf.lua")
|
|
|
|
function love.conf(t)
|
|
print("love.conf")
|
|
t.console = true
|
|
t.window.name = 'love.test'
|
|
t.window.width = 360
|
|
t.window.height = 240
|
|
t.window.resizable = true
|
|
t.window.depth = true
|
|
t.window.stencil = true
|
|
t.renderers = {"opengl"}
|
|
end
|
|
|
|
-- custom crash message here to catch anything that might occur with modules
|
|
-- loading before we hit main.lua
|
|
local function error_printer(msg, layer)
|
|
print((debug.traceback("Error: " .. tostring(msg), 1+(layer or 1)):gsub("\n[^\n]+$", "")))
|
|
end
|
|
function love.errorhandler(msg)
|
|
msg = tostring(msg)
|
|
error_printer(msg, 2)
|
|
os.exit(1)
|
|
end
|