mirror of
https://github.com/bryanthaboi/gen1recomp
synced 2026-10-04 16:28:01 -04:00
perhaps a windows fix
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user