Refactor var name to show its used internally

This commit is contained in:
John Doe
2025-11-22 22:34:24 +00:00
parent c7de1fef35
commit 062c5e8e2a
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -48,10 +48,10 @@ function love.boot()
-- Having love.system loaded before conf.lua is run can be useful for accessing love.system.getOS.
require("love.system")
-- nogame.lua returns noGameRestartInfo when
-- nogame.lua returns _noGameRestartInfo when
-- dropping a file or directory on to its window.
if love.restart and type(love.restart) == "table" then
local was_no_game = love.restart.noGameRestartInfo
local was_no_game = love.restart._noGameRestartInfo
if was_no_game and type(was_no_game) == "table" then
if was_no_game.gamepath and type(was_no_game.gamepath) == "string" then
table.insert(arg, 1, was_no_game.gamepath)
+1 -1
View File
@@ -3287,7 +3287,7 @@ function love.nogame()
end
function restartWithNewGame(path)
love.event.quit("restart", {noGameRestartInfo = {gamepath = path}})
love.event.quit("restart", {_noGameRestartInfo = {gamepath = path}})
end
function love.filedropped(file)
+3 -3
View File
@@ -12133,9 +12133,9 @@ const unsigned char nogame_lua[] =
0x09, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x57,
0x69, 0x74, 0x68, 0x4e, 0x65, 0x77, 0x47, 0x61, 0x6d, 0x65, 0x28, 0x70, 0x61, 0x74, 0x68, 0x29, 0x0a,
0x09, 0x09, 0x6c, 0x6f, 0x76, 0x65, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x71, 0x75, 0x69, 0x74, 0x28,
0x22, 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x22, 0x2c, 0x20, 0x7b, 0x6e, 0x6f, 0x47, 0x61, 0x6d, 0x65,
0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x20, 0x3d, 0x20, 0x7b, 0x67, 0x61, 0x6d,
0x65, 0x70, 0x61, 0x74, 0x68, 0x20, 0x3d, 0x20, 0x70, 0x61, 0x74, 0x68, 0x7d, 0x7d, 0x29, 0x0a,
0x22, 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x22, 0x2c, 0x20, 0x7b, 0x5f, 0x6e, 0x6f, 0x47, 0x61, 0x6d,
0x65, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x20, 0x3d, 0x20, 0x7b, 0x67, 0x61,
0x6d, 0x65, 0x70, 0x61, 0x74, 0x68, 0x20, 0x3d, 0x20, 0x70, 0x61, 0x74, 0x68, 0x7d, 0x7d, 0x29, 0x0a,
0x09, 0x65, 0x6e, 0x64, 0x0a,
0x0a,
0x09, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6c, 0x6f, 0x76, 0x65, 0x2e, 0x66, 0x69, 0x6c,