Skip to content

Commit 93d34bd

Browse files
KreyrenImperatorS79
authored andcommitted
Update Uplay: fix rendering issue (#978)
1 parent 3622d13 commit 93d34bd

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

Applications/Games/Uplay/Online/script.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,24 @@
11
include("engines.wine.quick_script.online_installer_script");
2+
include("engines.wine.plugins.windows_version");
3+
include("engines.wine.verbs.corefonts");
24

35
var installerImplementation = {
46
run: function () {
57
new OnlineInstallerScript()
68
.name("Uplay")
79
.editor("Ubisoft")
810
.applicationHomepage("https://uplay.ubi.com/")
9-
.author("Plata")
11+
.author("Plata, KREYREN")
1012
.url("https://ubistatic3-a.akamaihd.net/orbit/launcher_installer/UplayInstaller.exe")
1113
.category("Games")
1214
.executable("UbisoftGameLauncher.exe")
1315
.wineVersion(LATEST_STAGING_VERSION)
1416
.wineDistribution("staging")
17+
.preInstall(function (wine/*, wizard*/) {
18+
wine.corefonts();
19+
wine.setOsForApplication().set("upc.exe", "winvista").do();
20+
wine.setOsForApplication().set("UbisoftGameLauncher.exe", "winvista").do();
21+
})
1522
.go();
1623
}
1724
};

Engines/Wine/QuickScript/Uplay Script/script.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ include("engines.wine.engine.object");
44
include("utils.functions.filesystem.extract");
55
include("utils.functions.filesystem.files");
66
include("engines.wine.verbs.luna");
7+
include("engines.wine.verbs.corefonts");
78
include("engines.wine.plugins.windows_version");
89

910
function UplayScript() {
@@ -54,11 +55,14 @@ UplayScript.prototype.go = function () {
5455
.prefix(this._name, this._wineDistribution, this._wineArchitecture, this._wineVersion)
5556
.luna();
5657

58+
wine.corefonts();
59+
5760
setupWizard.message(tr("Please ensure that winbind is installed before you continue."));
5861
setupWizard.wait(tr("Please follow the steps of the Uplay setup.\n\nUncheck \"Run Uplay\" or close Uplay completely after the setup so that the installation of \"{0}\" can continue.", this._name));
5962
wine.run(tempFile, [], null, false, true);
6063

61-
wine.setOsForApplication().set("upc.exe", "winxp").do();
64+
wine.setOsForApplication().set("upc.exe", "winvista").do();
65+
wine.setOsForApplication().set("UbisoftGameLauncher.exe", "winvista").do();
6266

6367
// Uplay installation has finished
6468
setupWizard.wait(tr("Please wait..."));

0 commit comments

Comments
 (0)