diff --git a/src/modules/love/boot.lua b/src/modules/love/boot.lua index cf119032a..57622cfff 100644 --- a/src/modules/love/boot.lua +++ b/src/modules/love/boot.lua @@ -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) diff --git a/src/scripts/nogame.lua b/src/scripts/nogame.lua index 106832a84..476526236 100644 --- a/src/scripts/nogame.lua +++ b/src/scripts/nogame.lua @@ -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) diff --git a/src/scripts/nogame.lua.h b/src/scripts/nogame.lua.h index 6e2a002b5..5aadbd68e 100644 --- a/src/scripts/nogame.lua.h +++ b/src/scripts/nogame.lua.h @@ -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,