perhaps a windows fix

This commit is contained in:
bryanthaboi
2026-09-29 20:01:49 -04:00
parent bf45bb51d6
commit afc5e30d80
4 changed files with 43 additions and 3 deletions
+12
View File
@@ -295,6 +295,18 @@ function HostShell.restart()
return
end
if osName == "Windows" then
local exe = love.filesystem.isFused and love.filesystem.isFused()
and love.filesystem.getSource()
if exe and exe ~= "" then
local cmd = 'start "" "' .. exe:gsub("/", "\\") .. '"'
if os.execute(cmd) then
love.event.quit()
return
end
end
end
love.event.quit("restart")
end