diff --git a/.eslintrc.yml b/.eslintrc.yml index 6fc6059e41..0820baeaa9 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -31,6 +31,7 @@ rules: linebreak-style: - 2 - unix + prefer-arrow-callback: 2 globals: include: false diff --git a/Applications/Accessories/Soundplant/Online/script.js b/Applications/Accessories/Soundplant/Online/script.js index dc012be9d3..f745919ac3 100644 --- a/Applications/Accessories/Soundplant/Online/script.js +++ b/Applications/Accessories/Soundplant/Online/script.js @@ -11,6 +11,6 @@ new OnlineInstallerScript() .checksum("df17f942189618219cd504beee1be0712f4e4e4e") .category("Accessories") .executable("Soundplant45.exe") - .preInstall(function (wine) { + .preInstall((wine) => { new WindowsVersion(wine).withWindowsVersion("win7").go(); }); diff --git a/Applications/Custom/LocalInstaller/Local/script.js b/Applications/Custom/LocalInstaller/Local/script.js index dfda638d51..b80044b402 100644 --- a/Applications/Custom/LocalInstaller/Local/script.js +++ b/Applications/Custom/LocalInstaller/Local/script.js @@ -8,7 +8,7 @@ new LocalInstallerScript() .author("Plata") .category("Custom") .wineUserSettings(true) - .preInstall(function (wine) { + .preInstall((wine) => { const wizard = wine.wizard(); const versions = ["win7", "vista", "win2003", "winxp", "win2k", "winnt", "winme", "win98", "win95", "win31"]; diff --git a/Applications/Custom/OnlineInstaller/Online/script.js b/Applications/Custom/OnlineInstaller/Online/script.js index 8721306b21..3c1541a42c 100644 --- a/Applications/Custom/OnlineInstaller/Online/script.js +++ b/Applications/Custom/OnlineInstaller/Online/script.js @@ -8,7 +8,7 @@ new OnlineInstallerScript() .author("Plata") .category("Custom") .wineUserSettings(true) - .preInstall(function (wine) { + .preInstall((wine) => { const wizard = wine.wizard(); const versions = ["win7", "vista", "win2003", "winxp", "win2k", "winnt", "winme", "win98", "win95", "win31"]; diff --git a/Applications/Games/Age of Empires II HD/Steam/script.js b/Applications/Games/Age of Empires II HD/Steam/script.js index 503a54059c..ef3392a350 100644 --- a/Applications/Games/Age of Empires II HD/Steam/script.js +++ b/Applications/Games/Age of Empires II HD/Steam/script.js @@ -6,7 +6,7 @@ new SteamScript() .editor("Skybox Labs, Hidden Path Entertainment, Ensemble Studios") .author("Plata") .appId(221380) - .postInstall(function (wine /*, wizard*/) { + .postInstall((wine /*, wizard*/) => { // 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"; diff --git a/Applications/Games/Age of Empires III: Complete Collection/Steam/script.js b/Applications/Games/Age of Empires III: Complete Collection/Steam/script.js index d9802d192d..902c88cab2 100644 --- a/Applications/Games/Age of Empires III: Complete Collection/Steam/script.js +++ b/Applications/Games/Age of Empires III: Complete Collection/Steam/script.js @@ -9,7 +9,7 @@ new SteamScript() .editor("Microsoft Studios") .author("Quentin PARIS") .appId(105450) - .postInstall(function (wine) { + .postInstall((wine) => { new Mfc42(wine).go(); new OverrideDLL(wine).withMode("native, builtin", ["pidgen"]).go(); diff --git a/Applications/Games/Anno 2070/Local/script.js b/Applications/Games/Anno 2070/Local/script.js index 8b78462908..db3f5eb65a 100644 --- a/Applications/Games/Anno 2070/Local/script.js +++ b/Applications/Games/Anno 2070/Local/script.js @@ -18,7 +18,7 @@ new LocalInstallerScript() .executable("Anno5.exe") .wineVersion("3.16") .wineDistribution("upstream") - .preInstall(function (wine) { + .preInstall((wine) => { new VirtualDesktop(wine).go(); new Crypt32(wine).go(); @@ -27,7 +27,7 @@ new LocalInstallerScript() new OverrideDLL(wine).withMode("native, builtin", ["winhttp", "msvcrt40", "msvcr100", "crypt32"]).go(); }) - .postInstall(function (wine) { + .postInstall((wine) => { var versionFile = wine.prefixDirectory() + "/drive_c/Ubisoft/Related Designs/ANNO 2070/update/version.txt"; touch(versionFile); writeToFile( diff --git a/Applications/Games/Anno 2070/Uplay/script.js b/Applications/Games/Anno 2070/Uplay/script.js index def4eba07e..e727361f60 100644 --- a/Applications/Games/Anno 2070/Uplay/script.js +++ b/Applications/Games/Anno 2070/Uplay/script.js @@ -11,7 +11,7 @@ new UplayScript() .wineVersion("4.0-rc3") .wineDistribution("upstream") .appId(22) - .preInstall(function (wine) { + .preInstall((wine) => { new VirtualDesktop(wine).go(); new Corefonts(wine).go(); }); diff --git a/Applications/Games/Assassin's Creed IV Black Flag/Steam/script.js b/Applications/Games/Assassin's Creed IV Black Flag/Steam/script.js index 471046a549..b23dcbc0e9 100644 --- a/Applications/Games/Assassin's Creed IV Black Flag/Steam/script.js +++ b/Applications/Games/Assassin's Creed IV Black Flag/Steam/script.js @@ -10,7 +10,7 @@ new SteamScript() .appId(242050) .wineVersion(getLatestStagingVersion) .wineDistribution("staging") - .postInstall(function (wine /*, wizard*/) { + .postInstall((wine /*, wizard*/) => { // the automatically installed Uplay version does not update properly new Uplay(wine).go(); }); diff --git a/Applications/Games/Assassin's Creed Revelations/Steam/script.js b/Applications/Games/Assassin's Creed Revelations/Steam/script.js index 9938597c9f..1706d080aa 100644 --- a/Applications/Games/Assassin's Creed Revelations/Steam/script.js +++ b/Applications/Games/Assassin's Creed Revelations/Steam/script.js @@ -10,6 +10,6 @@ new SteamScript() .appId(201870) .wineVersion(getLatestStagingVersion) .wineDistribution("staging") - .postInstall(function (wine /*, wizard*/) { + .postInstall((wine /*, wizard*/) => { new Uplay(wine).go(); }); diff --git a/Applications/Games/Assassin's Creed: Brotherhood/Steam/script.js b/Applications/Games/Assassin's Creed: Brotherhood/Steam/script.js index e4b351ba1a..3d72866c56 100644 --- a/Applications/Games/Assassin's Creed: Brotherhood/Steam/script.js +++ b/Applications/Games/Assassin's Creed: Brotherhood/Steam/script.js @@ -10,6 +10,6 @@ new SteamScript() .appId(48190) .wineVersion(getLatestStagingVersion) .wineDistribution("staging") - .postInstall(function (wine /*, wizard*/) { + .postInstall((wine /*, wizard*/) => { new Uplay(wine).go(); }); diff --git a/Applications/Games/Audiosurf/Steam/script.js b/Applications/Games/Audiosurf/Steam/script.js index f6dc7c2a25..f37da12ed6 100644 --- a/Applications/Games/Audiosurf/Steam/script.js +++ b/Applications/Games/Audiosurf/Steam/script.js @@ -9,7 +9,7 @@ new SteamScript() .editor("Dylan Fitterer") .author("Brainzyy") .appId(12900) - .preInstall(function (wine /*, wizard*/) { + .preInstall((wine /*, wizard*/) => { new QuickTime76(wine).go(); new Corefonts(wine).go(); new Tahoma(wine).go(); diff --git "a/Applications/Games/Batman\342\204\242: Arkham Asylum/Steam/script.js" "b/Applications/Games/Batman\342\204\242: Arkham Asylum/Steam/script.js" index db8fbbfe72..71d85bafb7 100644 --- "a/Applications/Games/Batman\342\204\242: Arkham Asylum/Steam/script.js" +++ "b/Applications/Games/Batman\342\204\242: Arkham Asylum/Steam/script.js" @@ -11,7 +11,7 @@ new SteamScript() .wineVersion(getLatestStagingVersion) .wineDistribution("staging") .appId(35140) - .postInstall(function (wine) { + .postInstall((wine) => { new GLSL(wine).withMode("disabled").go(); new CSMT(wine).go(); }); diff --git "a/Applications/Games/Batman\342\204\242: Arkham City/Steam/script.js" "b/Applications/Games/Batman\342\204\242: Arkham City/Steam/script.js" index 218fdd3231..0b0a3d47e1 100644 --- "a/Applications/Games/Batman\342\204\242: Arkham City/Steam/script.js" +++ "b/Applications/Games/Batman\342\204\242: Arkham City/Steam/script.js" @@ -10,6 +10,6 @@ new SteamScript() .wineVersion(getLatestStagingVersion) .wineDistribution("staging") .appId(200260) - .postInstall(function (wine/*, wizard*/) { + .postInstall((wine/*, wizard*/) => { new CSMT(wine).go(); }); diff --git "a/Applications/Games/Batman\342\204\242: Arkham Origins/Steam/script.js" "b/Applications/Games/Batman\342\204\242: Arkham Origins/Steam/script.js" index 73e399cce7..9b83d4574f 100644 --- "a/Applications/Games/Batman\342\204\242: Arkham Origins/Steam/script.js" +++ "b/Applications/Games/Batman\342\204\242: Arkham Origins/Steam/script.js" @@ -9,7 +9,7 @@ new SteamScript() .author("ImperatorS79") .wineVersion(getLatestStagingVersion) .wineDistribution("staging") - .postInstall(function (wine/*, wizard*/) { + .postInstall((wine/*, wizard*/) => { new CSMT(wine).go(); //maybe needs xact }) diff --git a/Applications/Games/Blizzard app/Online/script.js b/Applications/Games/Blizzard app/Online/script.js index 2c50620cf2..4027382228 100644 --- a/Applications/Games/Blizzard app/Online/script.js +++ b/Applications/Games/Blizzard app/Online/script.js @@ -15,7 +15,7 @@ new OnlineInstallerScript() .executable("Battle.net.exe") .wineVersion("3.19") .wineDistribution("staging") - .preInstall(function (wine /*, wizard*/) { + .preInstall((wine /*, wizard*/) => { new Vcrun2015(wine).go(); new Corefonts(wine).go(); }); diff --git a/Applications/Games/Caesar III/Local/script.js b/Applications/Games/Caesar III/Local/script.js index 4e41d3a399..b94e5f8c43 100644 --- a/Applications/Games/Caesar III/Local/script.js +++ b/Applications/Games/Caesar III/Local/script.js @@ -7,6 +7,6 @@ new LocalInstallerScript() .author("ImperatorS79") .category("Games") .executable("c3.exe") - .postInstall(function (wine) { + .postInstall((wine) => { new VirtualDesktop(wine).withDimensions(1280, 1024).go(); }); diff --git a/Applications/Games/Caesar III/Steam/script.js b/Applications/Games/Caesar III/Steam/script.js index c0ccb60844..5383cf6abf 100644 --- a/Applications/Games/Caesar III/Steam/script.js +++ b/Applications/Games/Caesar III/Steam/script.js @@ -6,6 +6,6 @@ new SteamScript() .editor("Impressions Games") .author("ImperatorS79") .appId(517790) - .postInstall(function (wine) { + .postInstall((wine) => { new VirtualDesktop(wine).withDimensions(1280, 1024).go(); }); diff --git a/Applications/Games/Command and Conquer - Tiberium Wars/Local/script.js b/Applications/Games/Command and Conquer - Tiberium Wars/Local/script.js index 4d4fe165af..f9ec723a57 100644 --- a/Applications/Games/Command and Conquer - Tiberium Wars/Local/script.js +++ b/Applications/Games/Command and Conquer - Tiberium Wars/Local/script.js @@ -14,7 +14,7 @@ new LocalInstallerScript() .executable("CNC3.exe") .wineVersion(getLatestStagingVersion) .wineDistribution("staging") - .preInstall(function (wine) { + .preInstall((wine) => { new WindowsVersion(wine).withWindowsVersion("winxp").go(); new D3DX9(wine).go(); diff --git a/Applications/Games/DC Universe Online/Online/script.js b/Applications/Games/DC Universe Online/Online/script.js index f3d14e1dab..a6fe9e054f 100644 --- a/Applications/Games/DC Universe Online/Online/script.js +++ b/Applications/Games/DC Universe Online/Online/script.js @@ -11,7 +11,7 @@ new OnlineInstallerScript() .url("https://launch.daybreakgames.com/installer/DCUO_setup.exe") .category("Games") .executable("LaunchPad.exe") - .preInstall(function (wine /*, wizard*/) { + .preInstall((wine /*, wizard*/) => { new Vcrun2012(wine).go(); new D3DX9(wine).go(); }); diff --git a/Applications/Games/Dragon Ball Xenoverse 2/Steam/script.js b/Applications/Games/Dragon Ball Xenoverse 2/Steam/script.js index cde78ca95d..815568bf69 100644 --- a/Applications/Games/Dragon Ball Xenoverse 2/Steam/script.js +++ b/Applications/Games/Dragon Ball Xenoverse 2/Steam/script.js @@ -11,7 +11,7 @@ new SteamScript() .wineDistribution("staging") .wineArchitecture("amd64") .appId(454650) - .preInstall(function (wine /*, wizard*/) { + .preInstall((wine /*, wizard*/) => { new CSMT(wine).go(); //might need dxfullsetup d3d11 and d3d_43 compiler, but test result is old (2.10) }); diff --git a/Applications/Games/Earth Eternal - Valkal's Shadow/Online/script.js b/Applications/Games/Earth Eternal - Valkal's Shadow/Online/script.js index a1b001071f..da53eb3082 100644 --- a/Applications/Games/Earth Eternal - Valkal's Shadow/Online/script.js +++ b/Applications/Games/Earth Eternal - Valkal's Shadow/Online/script.js @@ -17,7 +17,7 @@ new OnlineInstallerScript() .executable("Spark.exe", ["http://live.theanubianwar.com/Release/Current/EarthEternal.car"]) .wineVersion(getLatestStagingVersion) .wineDistribution("staging") - .preInstall(function (wine) { + .preInstall((wine) => { new WindowsVersion(wine).withWindowsVersion("winxp").go(); new Corefonts(wine).go(); new D3DX9(wine).go(); diff --git a/Applications/Games/Elite:Dangerous/Steam/script.js b/Applications/Games/Elite:Dangerous/Steam/script.js index a246f38f40..f284a2c1a9 100644 --- a/Applications/Games/Elite:Dangerous/Steam/script.js +++ b/Applications/Games/Elite:Dangerous/Steam/script.js @@ -10,7 +10,7 @@ new SteamScript() .editor("Frontier Developments") .author("ImperatorS79") .wineArchitecture("amd64") - .preInstall(function (wine /*, wizard*/) { + .preInstall((wine /*, wizard*/) => { new DotNET45(wine).go(); new Corefonts(wine).go(); new Vcrun2015(wine).go(); diff --git a/Applications/Games/Enderal/Steam/script.js b/Applications/Games/Enderal/Steam/script.js index 76645596f6..8daec8b93b 100644 --- a/Applications/Games/Enderal/Steam/script.js +++ b/Applications/Games/Enderal/Steam/script.js @@ -7,7 +7,7 @@ new SteamScript() .author("Plata") .appId(72850) // Skyrim appId .applicationHomepage("http://sureai.net/games/enderal/") - .postInstall(function (wine, wizard) { + .postInstall((wine, wizard) => { // the SteamScript has installed Skyrim, now install Enderal var launcher = wine.prefixDirectory() + "drive_c/" + wine.programFiles() + "/Steam/steamapps/common/Skyrim/Enderal Launcher.exe"; diff --git a/Applications/Games/Ether One Redux/Steam/script.js b/Applications/Games/Ether One Redux/Steam/script.js index d86f5890a4..fc885dae78 100644 --- a/Applications/Games/Ether One Redux/Steam/script.js +++ b/Applications/Games/Ether One Redux/Steam/script.js @@ -10,6 +10,6 @@ new SteamScript() .wineArchitecture("amd64") .executable("Steam.exe", ["-silent", "-applaunch", 391920, "-nosplash", "-opengl4"]) .gameOverlay(false) - .postInstall(function (wine) { + .postInstall((wine) => { new WindowsVersion(wine).withApplicationWindowsVersion("EtherOne-Win32-Shipping.exe", "win7").go(); }); diff --git a/Applications/Games/Far Cry 2/Steam/script.js b/Applications/Games/Far Cry 2/Steam/script.js index e25632d779..7f53d5a097 100644 --- a/Applications/Games/Far Cry 2/Steam/script.js +++ b/Applications/Games/Far Cry 2/Steam/script.js @@ -11,7 +11,7 @@ new SteamScript() .wineVersion(getLatestStagingVersion) .wineDistribution("staging") .appId(19900) - .preInstall(function (wine /*, wizard*/) { + .preInstall((wine /*, wizard*/) => { new Secur32(wine).go(); new CSMT(wine).go(); }); diff --git a/Applications/Games/GOG Galaxy/Online/script.js b/Applications/Games/GOG Galaxy/Online/script.js index ceed651855..ba6800b03c 100644 --- a/Applications/Games/GOG Galaxy/Online/script.js +++ b/Applications/Games/GOG Galaxy/Online/script.js @@ -18,7 +18,7 @@ new OnlineInstallerScript() .wineArchitecture("amd64") .wineVersion(getLatestStagingVersion) .wineDistribution("staging") - .preInstall(function (wine /*, wizard*/) { + .preInstall((wine /*, wizard*/) => { new Corefonts(wine).go(); // Probably needed for self-updater new Vcrun2017(wine).go(); diff --git a/Applications/Games/Guild Wars 2/Local/script.js b/Applications/Games/Guild Wars 2/Local/script.js index 4a005f6d8d..8cd07649c9 100644 --- a/Applications/Games/Guild Wars 2/Local/script.js +++ b/Applications/Games/Guild Wars 2/Local/script.js @@ -13,7 +13,7 @@ new LocalInstallerScript() .executable("Gw2.exe") .wineVersion(getLatestStagingVersion) .wineDistribution("staging") - .preInstall(function (wine) { + .preInstall((wine) => { // avoid that launcher freezes the complete system new VirtualDesktop(wine).withDimensions(1280, 1024).go(); new CSMT(wine).go(); diff --git a/Applications/Games/Guild Wars 2/Online/script.js b/Applications/Games/Guild Wars 2/Online/script.js index a6579ea4fa..c4f4caecf2 100644 --- a/Applications/Games/Guild Wars 2/Online/script.js +++ b/Applications/Games/Guild Wars 2/Online/script.js @@ -15,7 +15,7 @@ new OnlineInstallerScript() .executable("Gw2.exe") .wineVersion(getLatestStagingVersion) .wineDistribution("staging") - .preInstall(function (wine) { + .preInstall((wine) => { // avoid that launcher freezes the complete system new VirtualDesktop(wine).withDimensions(1280, 1024).go(); new CSMT(wine).go(); diff --git a/Applications/Games/Hearthstone/Online/script.js b/Applications/Games/Hearthstone/Online/script.js index cbc5a8403d..99e3be0574 100644 --- a/Applications/Games/Hearthstone/Online/script.js +++ b/Applications/Games/Hearthstone/Online/script.js @@ -14,7 +14,7 @@ new OnlineInstallerScript() .executable("Battle.net.exe") .wineVersion(getLatestStagingVersion) .wineDistribution("staging") - .preInstall(function (wine /*, wizard*/) { + .preInstall((wine /*, wizard*/) => { new Vcrun2015(wine).go(); new Corefonts(wine).go(); }); diff --git a/Applications/Games/Heroes of the Storm/Online/script.js b/Applications/Games/Heroes of the Storm/Online/script.js index b8ddc402a2..be05ac9699 100644 --- a/Applications/Games/Heroes of the Storm/Online/script.js +++ b/Applications/Games/Heroes of the Storm/Online/script.js @@ -16,7 +16,7 @@ new OnlineInstallerScript() //The checksum is different each time you download .wineVersion(getLatestStagingVersion) .wineDistribution("staging") - .preInstall(function (wine) { + .preInstall((wine) => { new WindowsVersion(wine).withWindowsVersion("winxp").go(); new Vcrun2015(wine).go(); diff --git a/Applications/Games/It came from space and ate our brains/Steam/script.js b/Applications/Games/It came from space and ate our brains/Steam/script.js index 4e34bbdccb..6ea4da1a63 100644 --- a/Applications/Games/It came from space and ate our brains/Steam/script.js +++ b/Applications/Games/It came from space and ate our brains/Steam/script.js @@ -7,6 +7,6 @@ new SteamScript() .editor("Triangle Studios") .author("madoar") .appId(342620) - .preInstall(function (wine /*, wizard*/) { + .preInstall((wine /*, wizard*/) => { new D3DX10(wine).go(); }); diff --git a/Applications/Games/League of Legends/Online/script.js b/Applications/Games/League of Legends/Online/script.js index 403128a0bd..115e098221 100644 --- a/Applications/Games/League of Legends/Online/script.js +++ b/Applications/Games/League of Legends/Online/script.js @@ -16,7 +16,7 @@ new CustomInstallerScript() .editor("Riot Games") .applicationHomepage("http://leagueoflegends.com/") .author("Plata, feanor12, Thog") - .installationCommand(function (wizard) { + .installationCommand((wizard) => { // Select the region and download the setup file //////////////////////////////////////////////// var regions = [ @@ -98,7 +98,7 @@ new CustomInstallerScript() .category("Games") .wineDistribution("staging") .wineVersion(getLatestStagingVersion) - .preInstall(function (wine) { + .preInstall((wine) => { new WindowsVersion(wine).withWindowsVersion("winxp").go(); new D3DX9(wine).go(); diff --git a/Applications/Games/Lego Rock Raiders/Local/script.js b/Applications/Games/Lego Rock Raiders/Local/script.js index 86bd86fe0b..cfa8eef58b 100644 --- a/Applications/Games/Lego Rock Raiders/Local/script.js +++ b/Applications/Games/Lego Rock Raiders/Local/script.js @@ -15,7 +15,7 @@ new LocalInstallerScript() .executable("LegoRR.exe") .wineVersion("3.0.3") .wineDistribution("upstream") - .preInstall(function (wine, wizard) { + .preInstall((wine, wizard) => { new Amstream(wine).go(); new Quartz(wine).go(); new Devenum(wine).go(); @@ -23,7 +23,7 @@ new LocalInstallerScript() wizard.message(tr("When the game ask to install DirectX Media click yes. Click no when it ask for DirectX 6.")); }) - .postInstall(function (wine, wizard) { + .postInstall((wine, wizard) => { wizard.message( tr( "This game needs a copy protection patch to work. It may be illegal in your country to patch copy protection. You must patch the game yourself." diff --git a/Applications/Games/Magic The Gathering Arena/Online/script.js b/Applications/Games/Magic The Gathering Arena/Online/script.js index e0ec33c587..74af09ad12 100644 --- a/Applications/Games/Magic The Gathering Arena/Online/script.js +++ b/Applications/Games/Magic The Gathering Arena/Online/script.js @@ -12,7 +12,7 @@ new OnlineInstallerScript() .category("Games") .wineDistribution("staging") .wineVersion(getLatestStagingVersion) - .preInstall(function (wine) { + .preInstall((wine) => { new DXVK(wine).go(); new TakeFocus(wine).withMode("N").go(); }) diff --git a/Applications/Games/Mass Effect 2/Origin/script.js b/Applications/Games/Mass Effect 2/Origin/script.js index 3f8a9fe9aa..5d2808359f 100644 --- a/Applications/Games/Mass Effect 2/Origin/script.js +++ b/Applications/Games/Mass Effect 2/Origin/script.js @@ -10,7 +10,7 @@ new OriginScript() .appId( "1003291,1005288,1003290,mass_effect_2_de,mass_effect_2_dd,mass_effect_2_fr,mass_effect_2_it,mass_effect_2_pl,mass_effect_2_ce" ) - .postInstall(function (wine, wizard) { + .postInstall((wine, wizard) => { //this must be done while Origin is on, otherwise Origin will simply redownload the .cab files wizard.message( tr( diff --git a/Applications/Games/Mass Effect/Steam/script.js b/Applications/Games/Mass Effect/Steam/script.js index 369c38a733..6d644c77c1 100644 --- a/Applications/Games/Mass Effect/Steam/script.js +++ b/Applications/Games/Mass Effect/Steam/script.js @@ -5,7 +5,7 @@ new SteamScript() .editor("BioWare") .author("ImperatorS79") .appId(17460) - .postInstall(function (wine, wizard) { + .postInstall((wine, wizard) => { wizard.message( tr( "If you have sound issues, please edit the BIOEngine.ini and/or BaseEngine.ini file in {0}/drive_c/Program Files/Steam/steamapps/common/Mass Effect/Engine/Config/\n\nAnd add the following under [ISACTAudio.ISACTAudioDevice] :\n\nDeviceName=Generic Software\nUseEffectsProcessing=False\n\n", diff --git a/Applications/Games/Mirror's Edge/Steam/script.js b/Applications/Games/Mirror's Edge/Steam/script.js index 859ec56684..19bab368b1 100644 --- a/Applications/Games/Mirror's Edge/Steam/script.js +++ b/Applications/Games/Mirror's Edge/Steam/script.js @@ -9,7 +9,7 @@ new SteamScript() .editor("DICE") .author("Plata") .appId(17410) - .preInstall(function (wine) { + .preInstall((wine) => { new PhysX(wine).go(); new Managed(wine).withManagedApplication("MirrorsEdge.exe", false).go(); diff --git a/Applications/Games/Niko: Through The Dream/Steam/script.js b/Applications/Games/Niko: Through The Dream/Steam/script.js index a770a1d7a1..ce993e7782 100644 --- a/Applications/Games/Niko: Through The Dream/Steam/script.js +++ b/Applications/Games/Niko: Through The Dream/Steam/script.js @@ -9,7 +9,7 @@ new SteamScript() .editor("Studio Paint") .author("Plata") .appId(296550) - .postInstall(function (wine) { + .postInstall((wine) => { new DotNET40(wine).go(); new Managed(wine).withManagedApplication("NIKO.exe", false).go(); diff --git a/Applications/Games/Origin/Local (Legacy)/script.js b/Applications/Games/Origin/Local (Legacy)/script.js index c62946c805..f0be5f1348 100644 --- a/Applications/Games/Origin/Local (Legacy)/script.js +++ b/Applications/Games/Origin/Local (Legacy)/script.js @@ -11,14 +11,14 @@ new LocalInstallerScript() .category("Games") .executable("Origin.exe") .wineVersion(getLatestDevelopmentVersion) - .preInstall(function (wine, wizard) { + .preInstall((wine, wizard) => { wizard.message( tr( 'When Origin launches, you will get an error message ("Your update could not be completed."). This is ok. Just close the popup.' ) ); }) - .postInstall(function (wine, wizard) { + .postInstall((wine, wizard) => { var originDir = wine.prefixDirectory() + "drive_c/" + wine.programFiles() + "/Origin/"; new Downloader() diff --git a/Applications/Games/Origin/Online (Legacy)/script.js b/Applications/Games/Origin/Online (Legacy)/script.js index 6c3ef737a2..979236f5e3 100644 --- a/Applications/Games/Origin/Online (Legacy)/script.js +++ b/Applications/Games/Origin/Online (Legacy)/script.js @@ -12,14 +12,14 @@ new OnlineInstallerScript() .category("Games") .executable("Origin.exe") .wineVersion(getLatestDevelopmentVersion) - .preInstall(function (wine, wizard) { + .preInstall((wine, wizard) => { wizard.message( tr( 'When Origin launches, you will get an error message ("Your update could not be completed."). This is ok. Just close the popup.' ) ); }) - .postInstall(function (wine, wizard) { + .postInstall((wine, wizard) => { var originDir = wine.prefixDirectory() + "drive_c/" + wine.programFiles() + "/Origin/"; new Downloader() diff --git a/Applications/Games/Overwatch/Online/script.js b/Applications/Games/Overwatch/Online/script.js index 888c59c05f..a6ca184086 100644 --- a/Applications/Games/Overwatch/Online/script.js +++ b/Applications/Games/Overwatch/Online/script.js @@ -21,7 +21,7 @@ new OnlineInstallerScript() .wineArchitecture("amd64") .category("Games") .executable("Battle.net.exe") - .preInstall(function (wine) { + .preInstall((wine) => { new WindowsVersion(wine).withWindowsVersion("win7").go(); new Vcrun2015(wine).go(); diff --git a/Applications/Games/PC Building Simulator/Steam/script.js b/Applications/Games/PC Building Simulator/Steam/script.js index efffddc11e..c38609aa72 100644 --- a/Applications/Games/PC Building Simulator/Steam/script.js +++ b/Applications/Games/PC Building Simulator/Steam/script.js @@ -13,7 +13,7 @@ new SteamScript() .wineVersion(getLatestDevelopmentVersion) .wineArchitecture("amd64") .appId(621060) - .preInstall(function (wine, wizard) { + .preInstall((wine, wizard) => { wizard.message( tr( "The game is functional but benchmark animations on the monitors are not displayed. Feel free to drop a feedback if you know how to fix this issue." diff --git a/Applications/Games/Q.U.B.E: Director's Cut/Steam/script.js b/Applications/Games/Q.U.B.E: Director's Cut/Steam/script.js index 0206194f73..c5ebb8cc06 100644 --- a/Applications/Games/Q.U.B.E: Director's Cut/Steam/script.js +++ b/Applications/Games/Q.U.B.E: Director's Cut/Steam/script.js @@ -6,6 +6,6 @@ new SteamScript() .editor("Toxic Games") .author("Plata") .appId(239430) - .preInstall(function (wine /*, wizard*/) { + .preInstall((wine /*, wizard*/) => { new DotNET40(wine).go(); }); diff --git a/Applications/Games/Quantum Conundrum/Steam/script.js b/Applications/Games/Quantum Conundrum/Steam/script.js index 11805b14aa..593f2ce7df 100644 --- a/Applications/Games/Quantum Conundrum/Steam/script.js +++ b/Applications/Games/Quantum Conundrum/Steam/script.js @@ -7,6 +7,6 @@ new SteamScript() .editor("Square Enix") .author("Plata") .appId(200010) - .preInstall(function (wine /*, wizard*/) { + .preInstall((wine /*, wizard*/) => { new Vcrun2008(wine).go(); }); diff --git a/Applications/Games/Rayman Legends/Steam (Demo)/script.js b/Applications/Games/Rayman Legends/Steam (Demo)/script.js index 4f0c5811f4..716864cdbb 100644 --- a/Applications/Games/Rayman Legends/Steam (Demo)/script.js +++ b/Applications/Games/Rayman Legends/Steam (Demo)/script.js @@ -10,6 +10,6 @@ new SteamScript() .appId(243340) .wineVersion(getLatestStagingVersion) .wineDistribution("staging") - .postInstall(function (wine /*, wizard*/) { + .postInstall((wine /*, wizard*/) => { new Uplay(wine).go(); }); diff --git a/Applications/Games/Rayman Legends/Steam/script.js b/Applications/Games/Rayman Legends/Steam/script.js index 4c2e6f3e77..884a329f3a 100644 --- a/Applications/Games/Rayman Legends/Steam/script.js +++ b/Applications/Games/Rayman Legends/Steam/script.js @@ -10,6 +10,6 @@ new SteamScript() .appId(242550) .wineVersion(getLatestStagingVersion) .wineDistribution("staging") - .postInstall(function (wine /*, wizard*/) { + .postInstall((wine /*, wizard*/) => { new Uplay(wine).go(); }); diff --git a/Applications/Games/RimWorld/Local/script.js b/Applications/Games/RimWorld/Local/script.js index 59706c713d..3e2c1f41f4 100644 --- a/Applications/Games/RimWorld/Local/script.js +++ b/Applications/Games/RimWorld/Local/script.js @@ -11,7 +11,7 @@ new LocalInstallerScript() .applicationHomepage("https://rimworldgame.com/") .wineArchitecture("amd64") .executable("RimWorld.exe") - .preInstall(function (wine) { + .preInstall((wine) => { new Vcrun2017(wine).go(); new D3DX9(wine).go(); new Corefonts(wine).go(); diff --git a/Applications/Games/RimWorld/Steam/script.js b/Applications/Games/RimWorld/Steam/script.js index a862281515..e8dd082b62 100644 --- a/Applications/Games/RimWorld/Steam/script.js +++ b/Applications/Games/RimWorld/Steam/script.js @@ -11,7 +11,7 @@ new SteamScript() .applicationHomepage("https://rimworldgame.com/") .wineArchitecture("amd64") .appId(294100) - .preInstall(function (wine) { + .preInstall((wine) => { new Corefonts(wine).go(); new Vcrun2017(wine).go(); new D3DX9(wine).go(); diff --git a/Applications/Games/Road Rash/Online/script.js b/Applications/Games/Road Rash/Online/script.js index a9c102a22e..1f4649024e 100644 --- a/Applications/Games/Road Rash/Online/script.js +++ b/Applications/Games/Road Rash/Online/script.js @@ -10,7 +10,7 @@ new ZipScript() .checksum("82f99038b86bbd267c64f2d34f30b3209bbe4daa") .category("Games") .executable("RASHME.EXE") - .postInstall(function (wine) { + .postInstall((wine) => { const registryFile = Bean("fileSearcher").search(wine.prefixDirectory(), "RASH.REG"); new Regedit(wine).open(registryFile[0]); diff --git a/Applications/Games/Rocksmith 2014/Steam/script.js b/Applications/Games/Rocksmith 2014/Steam/script.js index 4b9c309991..7dc6943c08 100644 --- a/Applications/Games/Rocksmith 2014/Steam/script.js +++ b/Applications/Games/Rocksmith 2014/Steam/script.js @@ -47,7 +47,7 @@ new SteamScript() .editor("Ubisoft - San Francisco") .author("Plata") .appId(221680) - .postInstall(function (wine) { + .postInstall((wine) => { new SoundDriver(wine).withDriver("alsa").go(); new WindowsVersion(wine).withApplicationWindowsVersion("Rocksmith2014.exe", "win7").go(); diff --git a/Applications/Games/Rocksmith/Steam/script.js b/Applications/Games/Rocksmith/Steam/script.js index b9817f28e4..7f4f1d1e22 100644 --- a/Applications/Games/Rocksmith/Steam/script.js +++ b/Applications/Games/Rocksmith/Steam/script.js @@ -35,7 +35,7 @@ new SteamScript() .editor("Ubisoft - San Francisco") .author("Plata") .appId(205190) - .postInstall(function (wine) { + .postInstall((wine) => { new SoundDriver(wine).withDriver("alsa").go(); new WindowsVersion(wine).withApplicationWindowsVersion("Rocksmith.exe", "win7").go(); diff --git a/Applications/Games/STAR WARS - Empire at War - Gold Pack/Local/script.js b/Applications/Games/STAR WARS - Empire at War - Gold Pack/Local/script.js index 37682923cb..187a6ee79e 100644 --- a/Applications/Games/STAR WARS - Empire at War - Gold Pack/Local/script.js +++ b/Applications/Games/STAR WARS - Empire at War - Gold Pack/Local/script.js @@ -9,10 +9,10 @@ new LocalInstallerScript() .author("ImperatorS79") .category("Games") .executable("LaunchEAW.exe") - .preInstall(function (wine/*, wizard */) { + .preInstall((wine/*, wizard */) => { new D3DX9(wine).go(); }) - .postInstall(function (wine, wizard) { + .postInstall((wine, wizard) => { new Downloader() .wizard(wizard) .url("http://static.dolimg.com/mh_netstorage/lucasfilm/patches/pc/EAW_RAM_MPLobby_update.exe") diff --git a/Applications/Games/STAR WARS - Empire at War - Gold Pack/Steam/script.js b/Applications/Games/STAR WARS - Empire at War - Gold Pack/Steam/script.js index 11a2dade4c..401ab38df8 100644 --- a/Applications/Games/STAR WARS - Empire at War - Gold Pack/Steam/script.js +++ b/Applications/Games/STAR WARS - Empire at War - Gold Pack/Steam/script.js @@ -6,6 +6,6 @@ new SteamScript() .editor("Petroglyph") .author("ImperatorS79") .appId(32470) - .preInstall(function (wine /*, wizard*/) { + .preInstall((wine /*, wizard*/) => { new D3DX9(wine).go(); }); diff --git a/Applications/Games/STAR WARS Battlefront II/Local/script.js b/Applications/Games/STAR WARS Battlefront II/Local/script.js index 1619ee0887..cabdd15d1b 100644 --- a/Applications/Games/STAR WARS Battlefront II/Local/script.js +++ b/Applications/Games/STAR WARS Battlefront II/Local/script.js @@ -7,7 +7,7 @@ new LocalInstallerScript() .author("ImperatorS79") .category("Games") .executable("LaunchBFII.exe") - .postInstall(function (wine, wizard) { + .postInstall((wine, wizard) => { // Install the 1.1 update of the game new Downloader() .wizard(wizard) diff --git a/Applications/Games/STAR WARS: The Old Republic/Online/script.js b/Applications/Games/STAR WARS: The Old Republic/Online/script.js index 7b43c418e9..1723bc60f2 100644 --- a/Applications/Games/STAR WARS: The Old Republic/Online/script.js +++ b/Applications/Games/STAR WARS: The Old Republic/Online/script.js @@ -15,11 +15,11 @@ new OnlineInstallerScript() .checksum("c538935eff4ec90ce2e48dc7e515a8dec2f15f58") .category("Games") .executable("launcher.exe") - .preInstall(function (wine /*, wizard*/) { + .preInstall((wine /*, wizard*/) => { //it seems it brings better performance new D3DX9(wine).go(); }) - .postInstall(function (wine /*, wizard*/) { + .postInstall((wine /*, wizard*/) => { //without that the launcher is unable to download the game var path = wine.prefixDirectory() + diff --git a/Applications/Games/Space Colony/Steam/script.js b/Applications/Games/Space Colony/Steam/script.js index 6a4b866c65..6295ce3f9f 100644 --- a/Applications/Games/Space Colony/Steam/script.js +++ b/Applications/Games/Space Colony/Steam/script.js @@ -12,7 +12,7 @@ new SteamScript() .wineDistribution("upstream") .wineVersion(getLatestDevelopmentVersion) .appId(297920) - .preInstall(function (wine) { + .preInstall((wine) => { new Vcrun2010(wine).go(); new DotNET40(wine).go(); new D3DX9(wine).go(); diff --git a/Applications/Games/Space Engineers/Steam/script.js b/Applications/Games/Space Engineers/Steam/script.js index a43a0f1ad2..8cd6e4fcf2 100644 --- a/Applications/Games/Space Engineers/Steam/script.js +++ b/Applications/Games/Space Engineers/Steam/script.js @@ -15,7 +15,7 @@ new SteamScript() .wineVersion("4.14") .wineDistribution("upstream") .wineArchitecture("amd64") - .preInstall(function (wine) { + .preInstall((wine) => { new DotNET472(wine).go(); new Vcrun2017(wine).go(); new DXVK(wine).go(); diff --git a/Applications/Games/Sprouts Adventure/Local/script.js b/Applications/Games/Sprouts Adventure/Local/script.js index 4860a3a656..bd1bb5f8f2 100644 --- a/Applications/Games/Sprouts Adventure/Local/script.js +++ b/Applications/Games/Sprouts Adventure/Local/script.js @@ -8,7 +8,7 @@ new LocalInstallerScript() .author("Zemogiter") .category("Games") .executable("Sprouts Adventure.CRC") - .preInstall(function (wine, wizard) { + .preInstall((wine, wizard) => { wizard.message( tr("This game requires winebind (for Ubuntu) or samba and libwbclient/lib32-libwbclient (for Arch Linux).") ); diff --git a/Applications/Games/Star Craft II/Online/script.js b/Applications/Games/Star Craft II/Online/script.js index 24d33e1c0f..f861af3c4f 100644 --- a/Applications/Games/Star Craft II/Online/script.js +++ b/Applications/Games/Star Craft II/Online/script.js @@ -12,7 +12,7 @@ new OnlineInstallerScript() // The checksum changes each time you download .category("Games") .executable("Battle.net.exe") - .preInstall(function (wine /*, wizard*/) { + .preInstall((wine /*, wizard*/) => { new Vcrun2015(wine).go(); new Corefonts(wine).go(); }); diff --git a/Applications/Games/Steam/Online/script.js b/Applications/Games/Steam/Online/script.js index af48535f24..5f4fb9506e 100644 --- a/Applications/Games/Steam/Online/script.js +++ b/Applications/Games/Steam/Online/script.js @@ -13,7 +13,7 @@ new OnlineInstallerScript() .category("Games") .wineVersion(getLatestStagingVersion) .wineDistribution("staging") - .preInstall(function (wine) { + .preInstall((wine) => { new Corefonts(wine).go(); }) .executable("Steam.exe", ["-no-cef-sandbox"]); diff --git a/Applications/Games/Subnautica Below Zero/Steam/script.js b/Applications/Games/Subnautica Below Zero/Steam/script.js index a1a73e64a4..a4cd3e5b4a 100644 --- a/Applications/Games/Subnautica Below Zero/Steam/script.js +++ b/Applications/Games/Subnautica Below Zero/Steam/script.js @@ -15,7 +15,7 @@ new SteamScript() .wineVersion(getLatestStableVersion) .wineArchitecture("amd64") .appId(848450) - .preInstall(function (wine, wizard) { + .preInstall((wine, wizard) => { wizard.message( tr("You can make the game smoother by using this: https://github.com/lutris/lutris/wiki/How-to:-Esync") ); diff --git a/Applications/Games/Subnautica/Steam/script.js b/Applications/Games/Subnautica/Steam/script.js index 3af6718ddd..aa24b10be1 100644 --- a/Applications/Games/Subnautica/Steam/script.js +++ b/Applications/Games/Subnautica/Steam/script.js @@ -15,7 +15,7 @@ new SteamScript() .wineVersion(getLatestStableVersion) .wineArchitecture("amd64") .appId(264710) - .preInstall(function (wine) { + .preInstall((wine) => { const wizard = wine.wizard(); wizard.message( @@ -28,7 +28,7 @@ new SteamScript() new VirtualDesktop(wine).go(); }) - .postInstall(function (wine) { + .postInstall((wine) => { const wizard = wine.wizard(); wizard.message( diff --git a/Applications/Games/The Elder Scrolls I: Arena/Online/script.js b/Applications/Games/The Elder Scrolls I: Arena/Online/script.js index 4cb6b6531e..743d11121e 100644 --- a/Applications/Games/The Elder Scrolls I: Arena/Online/script.js +++ b/Applications/Games/The Elder Scrolls I: Arena/Online/script.js @@ -14,7 +14,7 @@ new ZipScript() .category("Games") .wineVersion(getLatestDosSupportVersion) .wineDistribution("dos_support") - .postInstall(function (wine) { + .postInstall((wine) => { wine.run( wine.prefixDirectory() + "/drive_c/The Elder Scroll 1: Arena/Arena106.exe", [], diff --git a/Applications/Games/The Sims 3/Local/script.js b/Applications/Games/The Sims 3/Local/script.js index 8bac5668b7..ca2b96fbd3 100644 --- a/Applications/Games/The Sims 3/Local/script.js +++ b/Applications/Games/The Sims 3/Local/script.js @@ -12,7 +12,7 @@ new LocalInstallerScript() .author("Zemogiter") .category("Games") .executable("Sims3Launcher.exe", ["xgamma -gamma 1"]) - .preInstall(function (wine) { + .preInstall((wine) => { new Mfc42(wine).go(); new Tahoma(wine).go(); new Vcrun2010(wine).go(); diff --git a/Applications/Games/The Sims 3/Steam/script.js b/Applications/Games/The Sims 3/Steam/script.js index 20382e416d..f6ba4cbb32 100644 --- a/Applications/Games/The Sims 3/Steam/script.js +++ b/Applications/Games/The Sims 3/Steam/script.js @@ -13,7 +13,7 @@ new SteamScript() .wineDistribution("upstream") .wineVersion("4.0-rc2") .appId(47890) - .preInstall(function (wine /*, wizard*/) { + .preInstall((wine /*, wizard*/) => { new DotNET20(wine).go(); new Mfc42(wine).go(); new Tahoma(wine).go(); diff --git a/Applications/Games/The Witcher 3: Wild Hunt/Steam/script.js b/Applications/Games/The Witcher 3: Wild Hunt/Steam/script.js index 2085b06e48..68df692faa 100644 --- a/Applications/Games/The Witcher 3: Wild Hunt/Steam/script.js +++ b/Applications/Games/The Witcher 3: Wild Hunt/Steam/script.js @@ -11,7 +11,7 @@ new SteamScript() .wineDistribution("staging") .wineArchitecture("amd64") .appId(292030) - .preInstall(function (wine, wizard) { + .preInstall((wine, wizard) => { wizard.message( tr( "Please ensure you have the latest drivers (415.25 minimum for NVIDIA and mesa 19 for AMD) or else this game will not work." diff --git a/Applications/Games/Tom Clancy's Rainbow Six 3 : Raven Shield/Local (1.0->1.6)/script.js b/Applications/Games/Tom Clancy's Rainbow Six 3 : Raven Shield/Local (1.0->1.6)/script.js index 1a9ceb6c40..82f7e86ab3 100644 --- a/Applications/Games/Tom Clancy's Rainbow Six 3 : Raven Shield/Local (1.0->1.6)/script.js +++ b/Applications/Games/Tom Clancy's Rainbow Six 3 : Raven Shield/Local (1.0->1.6)/script.js @@ -9,7 +9,7 @@ new LocalInstallerScript() .author("ImperatorS79") .category("Games") .executable("ravenshield.exe") - .postInstall(function (wine) { + .postInstall((wine) => { const wizard = wine.wizard(); var regions = ["France", "England"]; diff --git a/Applications/Games/Tom Clancy's Rainbow Six 3 : Raven Shield/Steam (Gold)/script.js b/Applications/Games/Tom Clancy's Rainbow Six 3 : Raven Shield/Steam (Gold)/script.js index a2b72a3294..dcf5d0446f 100644 --- a/Applications/Games/Tom Clancy's Rainbow Six 3 : Raven Shield/Steam (Gold)/script.js +++ b/Applications/Games/Tom Clancy's Rainbow Six 3 : Raven Shield/Steam (Gold)/script.js @@ -7,6 +7,6 @@ new SteamScript() .editor("Red Storm Entertainment") .author("ImperatorS79") .appId(19830) - .postInstall(function (wine) { + .postInstall((wine) => { new VirtualDesktop(wine).withDimensions(1280, 1024).go(); }); diff --git a/Applications/Games/Tom Clancy's The Division/Steam (Demo)/script.js b/Applications/Games/Tom Clancy's The Division/Steam (Demo)/script.js index d8d62ecd6b..f293b933c1 100644 --- a/Applications/Games/Tom Clancy's The Division/Steam (Demo)/script.js +++ b/Applications/Games/Tom Clancy's The Division/Steam (Demo)/script.js @@ -11,6 +11,6 @@ new SteamScript() .wineVersion(getLatestStagingVersion) .wineDistribution("staging") .wineArchitecture("amd64") - .postInstall(function (wine /*, wizard*/) { + .postInstall((wine /*, wizard*/) => { new Uplay(wine).go(); }); diff --git a/Applications/Games/Tom Clancy's The Division/Steam/script.js b/Applications/Games/Tom Clancy's The Division/Steam/script.js index 5f8a8d8f89..49fb5b04b2 100644 --- a/Applications/Games/Tom Clancy's The Division/Steam/script.js +++ b/Applications/Games/Tom Clancy's The Division/Steam/script.js @@ -11,6 +11,6 @@ new SteamScript() .wineVersion(getLatestStagingVersion) .wineDistribution("staging") .wineArchitecture("amd64") - .postInstall(function (wine /*, wizard*/) { + .postInstall((wine /*, wizard*/) => { new Uplay(wine).go(); }); diff --git a/Applications/Games/Total War Rome II/Steam/script.js b/Applications/Games/Total War Rome II/Steam/script.js index 9167d16daa..c543a6bd9d 100644 --- a/Applications/Games/Total War Rome II/Steam/script.js +++ b/Applications/Games/Total War Rome II/Steam/script.js @@ -13,7 +13,7 @@ new SteamScript() .appId(214950) .wineVersion(getLatestStagingVersion) .wineDistribution("staging") - .postInstall(function (wine, wizard) { + .postInstall((wine, wizard) => { new D3DX9(wine).go(); new Vcrun2005(wine).go(); new Vcrun2008(wine).go(); diff --git a/Applications/Games/Trackmania Turbo/Steam (Demo)/script.js b/Applications/Games/Trackmania Turbo/Steam (Demo)/script.js index 96197463dc..498c20bd53 100644 --- a/Applications/Games/Trackmania Turbo/Steam (Demo)/script.js +++ b/Applications/Games/Trackmania Turbo/Steam (Demo)/script.js @@ -10,6 +10,6 @@ new SteamScript() .appId(456400) .wineVersion(getLatestStagingVersion) .wineDistribution("staging") - .postInstall(function (wine /*, wizard*/) { + .postInstall((wine /*, wizard*/) => { new Uplay(wine).go(); }); diff --git a/Applications/Games/Trackmania Turbo/Steam/script.js b/Applications/Games/Trackmania Turbo/Steam/script.js index 6a2aed271b..d6f891edf4 100644 --- a/Applications/Games/Trackmania Turbo/Steam/script.js +++ b/Applications/Games/Trackmania Turbo/Steam/script.js @@ -10,6 +10,6 @@ new SteamScript() .appId(375900) .wineVersion(getLatestStagingVersion) .wineDistribution("staging") - .postInstall(function (wine /*, wizard*/) { + .postInstall((wine /*, wizard*/) => { new Uplay(wine).go(); }); diff --git a/Applications/Games/Unholy Heights/Steam/script.js b/Applications/Games/Unholy Heights/Steam/script.js index 1d1a4e4511..6d10b20dc0 100644 --- a/Applications/Games/Unholy Heights/Steam/script.js +++ b/Applications/Games/Unholy Heights/Steam/script.js @@ -10,6 +10,6 @@ new SteamScript() .appId(249330) .wineVersion(getLatestStagingVersion) .wineDistribution("staging") - .preInstall(function (wine /*, wizard*/) { + .preInstall((wine /*, wizard*/) => { new DotNET40(wine).go(); }); diff --git a/Applications/Games/Uplay/Online/script.js b/Applications/Games/Uplay/Online/script.js index 7ec88885ec..a1143c2367 100644 --- a/Applications/Games/Uplay/Online/script.js +++ b/Applications/Games/Uplay/Online/script.js @@ -14,7 +14,7 @@ new OnlineInstallerScript() .executable("UbisoftGameLauncher.exe") .wineVersion(getLatestStagingVersion) .wineDistribution("staging") - .preInstall(function (wine) { + .preInstall((wine) => { new Corefonts(wine).go(); new WindowsVersion(wine) diff --git a/Applications/Games/Warcraft III Expansion Set/Online/script.js b/Applications/Games/Warcraft III Expansion Set/Online/script.js index ddd7d15472..a4e8c69f2b 100644 --- a/Applications/Games/Warcraft III Expansion Set/Online/script.js +++ b/Applications/Games/Warcraft III Expansion Set/Online/script.js @@ -16,7 +16,7 @@ new OnlineInstallerScript() .executable("Warcraft III.exe") .wineVersion(getLatestStagingVersion) .wineDistribution("staging") - .preInstall(function (wine) { + .preInstall((wine) => { new WindowsVersion(wine).withWindowsVersion("winxp").go(); new Corefonts(wine).go(); diff --git a/Applications/Games/Warface/Steam/script.js b/Applications/Games/Warface/Steam/script.js index 1fdd897c1c..faace76839 100644 --- a/Applications/Games/Warface/Steam/script.js +++ b/Applications/Games/Warface/Steam/script.js @@ -10,6 +10,6 @@ new SteamScript() .appId(291480) .wineVersion(getLatestStagingVersion) .wineDistribution("staging") - .postInstall(function (wine /*, wizard*/) { + .postInstall((wine /*, wizard*/) => { new CSMT(wine).go(); }); diff --git a/Applications/Games/Warlock - Master of the Arcane/Steam/script.js b/Applications/Games/Warlock - Master of the Arcane/Steam/script.js index 8f903bfc4a..77c26effd2 100644 --- a/Applications/Games/Warlock - Master of the Arcane/Steam/script.js +++ b/Applications/Games/Warlock - Master of the Arcane/Steam/script.js @@ -14,7 +14,7 @@ new SteamScript() .appId(203630) .wineVersion(getLatestStagingVersion) .wineDistribution("staging") - .preInstall(function (wine /*, wizard*/) { + .preInstall((wine /*, wizard*/) => { new Corefonts(wine).go(); new D3DX9(wine).go(); new Tahoma(wine).go(); diff --git a/Applications/Games/Wildlife Park 2/Local/script.js b/Applications/Games/Wildlife Park 2/Local/script.js index 6afe2f7cd9..cf6fc2d126 100644 --- a/Applications/Games/Wildlife Park 2/Local/script.js +++ b/Applications/Games/Wildlife Park 2/Local/script.js @@ -10,7 +10,7 @@ new LocalInstallerScript() .author("Zemogiter") .category("Games") .executable("WLP2.exe") - .preInstall(function (wine, wizard) { + .preInstall((wine, wizard) => { wizard.message( tr( "On first run the game might not go into full screen. If that happens go to options and set the resolution to 1280x960. You will be asked to close the game in order to apply the new settings. Click Yes. Once you start the game again you should see a window where you can set your game resolution to match your screen." diff --git a/Applications/Games/Wildlife Park 2/Steam/script.js b/Applications/Games/Wildlife Park 2/Steam/script.js index 0481ec4fa8..ebfa363123 100644 --- a/Applications/Games/Wildlife Park 2/Steam/script.js +++ b/Applications/Games/Wildlife Park 2/Steam/script.js @@ -9,7 +9,7 @@ new SteamScript() .applicationHomepage("www.wildlifepark2.com") .author("Zemogiter") .appId(264710) - .preInstall(function (wine) { + .preInstall((wine) => { const wizard = wine.wizard(); wizard.message( diff --git a/Applications/Games/osu!/Online/script.js b/Applications/Games/osu!/Online/script.js index 651abb4b58..d9ae78f6e6 100644 --- a/Applications/Games/osu!/Online/script.js +++ b/Applications/Games/osu!/Online/script.js @@ -13,7 +13,7 @@ new OnlineInstallerScript() .executable("osu!.exe") .wineVersion(getLatestDevelopmentVersion) .url("https://m1.ppy.sh/r/osu!install.exe") - .preInstall(function (wine /*, wizard*/) { + .preInstall((wine /*, wizard*/) => { //maybe needs cjkfonts or set sound driver to alsa new Corefonts(wine).go(); new DotNET45(wine).go(); diff --git a/Applications/Internet/Internet Explorer 6.0/Online/script.js b/Applications/Internet/Internet Explorer 6.0/Online/script.js index b466b89a5f..1e10ae3b48 100644 --- a/Applications/Internet/Internet Explorer 6.0/Online/script.js +++ b/Applications/Internet/Internet Explorer 6.0/Online/script.js @@ -55,7 +55,7 @@ new PlainInstaller().withScript(() => { "browseui", "iseng", "inetcpl" - ].forEach(function (dll) { + ].forEach((dll) => { remove(wine.prefixDirectory() + "/drive_c/windows/system32/" + dll + ".dll"); }); diff --git a/Applications/Internet/Internet Explorer 7.0/Online/script.js b/Applications/Internet/Internet Explorer 7.0/Online/script.js index 9e2e5f6df6..021dd54c0b 100644 --- a/Applications/Internet/Internet Explorer 7.0/Online/script.js +++ b/Applications/Internet/Internet Explorer 7.0/Online/script.js @@ -48,7 +48,7 @@ new PlainInstaller().withScript(() => { // delete existing IE, otherwise installer will abort with "newer IE installed" remove(wine.prefixDirectory() + "/drive_c/" + wine.programFiles() + "/Internet Explorer/iexplore.exe"); ["itircl", "itss", "jscript", "mlang", "mshtml", "msimtf", "shdoclc", "shdocvw", "shlwapi", "urlmon"].forEach( - function (dll) { + (dll) => { remove(wine.prefixDirectory() + "/drive_c/windows/system32/" + dll + ".dll"); } ); diff --git a/Applications/Office/Adobe Acrobat Reader DC/Online/script.js b/Applications/Office/Adobe Acrobat Reader DC/Online/script.js index 4a593dfbc2..787e32b1a5 100644 --- a/Applications/Office/Adobe Acrobat Reader DC/Online/script.js +++ b/Applications/Office/Adobe Acrobat Reader DC/Online/script.js @@ -15,10 +15,10 @@ new OnlineInstallerScript() .checksum("98b2b838e6c4663fefdfd341dfdc596b1eff355c") .category("Office") .executable("AcroRd32.exe") - .preInstall(function (wine) { + .preInstall((wine) => { new Mspatcha(wine).go(); }) - .postInstall(function (wine) { + .postInstall((wine) => { // fix broken dialogs (e.g. preferences) new WindowsVersion(wine).withWindowsVersion("winxp").go(); }); diff --git a/Applications/Office/ElsterFormular/Online/script.js b/Applications/Office/ElsterFormular/Online/script.js index 28f3705dff..601893de8f 100644 --- a/Applications/Office/ElsterFormular/Online/script.js +++ b/Applications/Office/ElsterFormular/Online/script.js @@ -14,7 +14,7 @@ new LocalInstallerScript() .author("Plata") .category("Office") .executable("pica.exe") - .preInstall(function (wine /*, wizard*/) { + .preInstall((wine /*, wizard*/) => { new Vcrun2017(wine).go(); new NativeApplication(wine).withExtension("pdf").go(); diff --git a/Applications/Office/Microsoft Office 2010/Local/script.js b/Applications/Office/Microsoft Office 2010/Local/script.js index 27602d4c97..7f1286424f 100644 --- a/Applications/Office/Microsoft Office 2010/Local/script.js +++ b/Applications/Office/Microsoft Office 2010/Local/script.js @@ -10,7 +10,7 @@ new LocalInstallerScript() .author("ImperatorS79") .category("Office") // exe set with WineShorcut - .postInstall(function (wine) { + .postInstall((wine) => { new OverrideDLL(wine).withMode("native, builtin", ["riched20"]).go(); new WineShortcut() diff --git a/Applications/Office/Microsoft Office 2013/Local/script.js b/Applications/Office/Microsoft Office 2013/Local/script.js index f2f7da8cb6..65c75c82f5 100644 --- a/Applications/Office/Microsoft Office 2013/Local/script.js +++ b/Applications/Office/Microsoft Office 2013/Local/script.js @@ -14,7 +14,7 @@ new LocalInstallerScript() .author("ImperatorS79") .category("Office") // exe set with WineShorcut - .postInstall(function (wine) { + .postInstall((wine) => { new OverrideDLL(wine).withMode("native, builtin", ["riched20"]).go(); new WineShortcut() diff --git a/Engines/Wine/Shortcuts/Wine/script.js b/Engines/Wine/Shortcuts/Wine/script.js index 50fc8a2620..3bb097380f 100644 --- a/Engines/Wine/Shortcuts/Wine/script.js +++ b/Engines/Wine/Shortcuts/Wine/script.js @@ -162,7 +162,7 @@ module.default = class WineShortcut { const myEnv = { WINEDEBUG: "-all" }; if (typeof this._environment !== "undefined") { var envJSON = JSON.parse(this._environment); - Object.keys(envJSON).forEach(function (key) { + Object.keys(envJSON).forEach((key) => { myEnv[key] = envJSON[key]; }); }