PhoenicisOrg/scripts

Replace "var" with "const" in Age of Empires 2

madoar opened this issue · 4 comments

// skip broken launcher by replacing it with "AoK HD.exe"
var installPath = wine.prefixDirectory() + "drive_c/" + wine.programFiles() + "/Steam/steamapps/common/Age2HD/";
var launcher = installPath + "Launcher.exe";
cp(launcher, launcher + ".bak");
remove(launcher);
var aoe = installPath + "AoK HD.exe";
lns(aoe, launcher);

plata commented

Is AoE II the only script which uses var?

No I guess not I stumbled over it when searching for postInstall occurrences

plata commented

Fixed in #1180.