mirror of
https://github.com/love2d/love.git
synced 2026-08-14 10:13:46 +02:00
Add the ability to have formally deprecated functions.
Functions which are deprecated will print out a message and show up in a small dialog on-screen, when they're first called. Deprecation output is disabled in fused mode by default, and can be modified with love.setDeprecationOutput(enable). --HG-- branch : minor
This commit is contained in:
@@ -315,6 +315,8 @@ function love.boot()
|
||||
|
||||
love.filesystem.setFused(is_fused_game)
|
||||
|
||||
love.setDeprecationOutput(not love.filesystem.isFused())
|
||||
|
||||
local identity = ""
|
||||
if not can_has_game and o.game.set and o.game.arg[1] then
|
||||
local nouri = o.game.arg[1]
|
||||
|
||||
Reference in New Issue
Block a user