-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathscript.js
More file actions
36 lines (35 loc) · 1.55 KB
/
Copy pathscript.js
File metadata and controls
36 lines (35 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
const LocalInstallerScript = include("engines.wine.quick_script.local_installer_script");
const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions");
const AppResource = include("utils.functions.apps.resources");
const vcrun6sp6 = include("engines.wine.verbs.vcrun6sp6");
const MFC42 = include("engines.wine.verbs.mfc42");
const dotnet20sp2 = include("engines.wine.verbs.dotnet20sp2");
const vcrun2010 = include("engines.wine.verbs.vcrun2010");
const vcrun2013 = include("engines.wine.verbs.vcrun2013");
const D9VK = include("engines.wine.verbs.d9vk");
include("engines.wine.plugins.regedit");
include("engines.wine.plugins.override_dll");
new LocalInstallerScript()
.name("The Sims 4")
.editor("Electronic Arts")
.applicationHomepage("https://www.ea.com/games/the-sims/the-sims-4/pc")
.author("ZemoScripter")
.category("Games")
.executable("TS4_x64.exe")
.wineArchitecture("amd64")
.wineVersion(LATEST_STAGING_VERSION)
.wineDistribution("staging")
.preInstall(function (wine) {
new dotnet20sp2(wine).go();
new vcrun6sp6(wine).go();
new MFC42(wine).go();
new vcrun2010(wine).go();
new vcrun2013(wine).go();
new D9VK(wine).go();
const registrySettings = new AppResource().application([TYPE_ID, CATEGORY_ID, APPLICATION_ID]).get("registry.reg");
wine.regedit().patch(registrySettings);
wine.overrideDLL()
.set("disabled", ["nvapi", "nvapi64"])
.do();
})
.environment('{ "STAGING_SHARED_MEMORY": "0", "__GL_SHADER_DISK_CACHE": "1"}')