forked from PhoenicisOrg/scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
56 lines (54 loc) · 1.61 KB
/
script.js
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
include("engines.wine.quick_script.steam_script");
include("engines.wine.plugins.sound_driver");
const {ls, mkdir, fileExists, cat, cp, getFileSize, fileName, lns, remove, touch, writeToFile, createTempFile, createTempDir, chmod, Checksum} = include("utils.functions.filesystem.files");
function fixIni(ini) {
var screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
var content =
"[Audio]\n" +
"EnableMicrophone=1\n" +
"ExclusiveMode=0\n" +
"LatencyBuffer=4\n" +
"ForceDefaultPlaybackDevice=\n" +
"ForceWDM=0\n" +
"ForceDirectXSink=0\n" +
"Win32UltraLowLatencyMode=0\n" +
"DumpAudioLog=0\n" +
"MaxOutputBufferSize=0\n" +
"[Renderer.Win32]\n" +
"ShowGamepadUI=0\n" +
"ScreenWidth=" +
screenSize.width +
"\n" +
"ScreenHeight=" +
screenSize.height +
"\n" +
"Fullscreen=2\n" +
"VisualQuality=1\n" +
"RenderingWidth=0\n" +
"RenderingHeight=0\n" +
"EnablePostEffects=1\n" +
"EnableShadows=1\n" +
"EnableHighResScope=1\n" +
"EnableDepthOfField=1\n" +
"EnablePerPixelLighting=1\n" +
"MsaaSamples=4\n" +
"DisableBrowser=0\n" +
"[Net]\n" +
"UseProxy=1";
writeToFile(ini, content);
}
new SteamScript()
.name("Rocksmith® 2014")
.editor("Ubisoft - San Francisco")
.author("Plata")
.appId(221680)
.postInstall(function (wine /*, wizard*/) {
wine.setSoundDriver("alsa");
wine
.setOsForApplication()
.set("Rocksmith2014.exe", "win7")
.do();
fixIni(
wine.prefixDirectory() + "drive_c/" + wine.programFiles() + "/Steam/steamapps/common/Rocksmith2014/Rocksmith.ini"
);
});