Fix broken auto-updater path, sync readme with updator.bat filename
CheckSoundpackVersion's auto-launch of updator.bat was resolving to worlds\updator.bat (dir + one "..") instead of the repo root where the file actually lives (dir + three ".."), so the automatic update prompt silently failed to launch anything. Verified the corrected path resolves to the real file. Also fixed readme.md referring to "updater.bat" when the actual shipped file is "updator.bat".
This commit is contained in:
@@ -116,7 +116,9 @@ Note("You are currently running version " .. tostring(CURRENT_SP_VERSION).." of
|
||||
ColourNote("yellow", "", "Warning: Your soundpack is " .. version_diff .. " version(s) out of date. We are now on version " .. user_version .. " of the soundpack.")
|
||||
ColourNote("yellow", "", "Launching the updater...")
|
||||
ppi.play(dir.."sounds/ogg/general/comms/announcement.ogg", 0, 0, 100)
|
||||
local bat_path = dir .. "..\\updator.bat"
|
||||
-- dir is the world's own folder (cosmic rage\worlds\Cosmic Rage\);
|
||||
-- updator.bat lives at the repo root, three levels up from there.
|
||||
local bat_path = dir .. "..\\..\\..\\updator.bat"
|
||||
-- Signature is (filename, params, defdir, operation, show) - this was
|
||||
-- previously passing "open" as the filename, so it never actually
|
||||
-- launched cmd.exe/updator.bat at all.
|
||||
|
||||
Reference in New Issue
Block a user