From c23204b692ec516d90730c1e3454127b26b1e244 Mon Sep 17 00:00:00 2001 From: ImperatorS79 Date: Mon, 7 May 2018 13:08:06 +0200 Subject: [PATCH 01/11] Update DXVK to version 0.50 (#616) --- Engines/Wine/Verbs/DXVK/script.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Engines/Wine/Verbs/DXVK/script.js b/Engines/Wine/Verbs/DXVK/script.js index 0557566693..02c46490cc 100644 --- a/Engines/Wine/Verbs/DXVK/script.js +++ b/Engines/Wine/Verbs/DXVK/script.js @@ -8,14 +8,16 @@ include(["utils", "functions", "filesystem", "files"]); * @returns {Wine} Wine object */ Wine.prototype.DXVK = function () { - print("NOTE: you need a driver that support Vulkan enough to run DXVK"); + print("NOTE: you need a driver that supports Vulkan enough to run DXVK"); print("NOTE: wine version should be greater or equal to 3.5"); + var dxvkVersion = "0.50"; + var setupFile = new Resource() .wizard(this.wizard()) - .url("https://github.com/doitsujin/dxvk/releases/download/v0.42/dxvk-0.42.tar.gz") + .url("https://github.com/doitsujin/dxvk/releases/download/v" + dxvkVersion + "/dxvk-" + dxvkVersion + ".tar.gz") .checksum("4bbcb3020ba12a5a0cb7c388264579068b307bc6") - .name("dxvk-0.42.tar.gz") + .name("dxvk-" + dxvkVersion + ".tar.gz") .get(); new Extractor() @@ -24,7 +26,7 @@ Wine.prototype.DXVK = function () { .to(this.prefixDirectory() + "/TMP/") .extract(); - var dxvkTmpDir = this.prefixDirectory() + "/TMP/dxvk-0.42"; + var dxvkTmpDir = this.prefixDirectory() + "/TMP/dxvk-" + dxvkVersion; if (this.architecture() == "x86") { cp(dxvkTmpDir + "/x32/d3d11.dll", this.system32directory()); From 148c71d8a264ea03deb26ed68a5b23c1255778bf Mon Sep 17 00:00:00 2001 From: plata Date: Mon, 7 May 2018 18:46:55 +0200 Subject: [PATCH 02/11] Add delete functions for regedit (#617) --- Engines/Wine/Plugins/regedit/script.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Engines/Wine/Plugins/regedit/script.js b/Engines/Wine/Plugins/regedit/script.js index 32643074c9..265599bc56 100644 --- a/Engines/Wine/Plugins/regedit/script.js +++ b/Engines/Wine/Plugins/regedit/script.js @@ -22,6 +22,16 @@ Wine.prototype.regedit = function () { return _wine; }; + this.deleteKey = function (keyPath) { + _wine.run("reg", ["delete", keyPath, "/f"], this.prefixDirectory(), false, true); + return _wine; + }; + + this.deleteValue = function (keyPath, value) { + _wine.run("reg", ["delete", keyPath, "/v", value, "/f"], this.prefixDirectory(), false, true); + return _wine; + }; + this.fetchValue = function (keyPath) { var root = keyPath[0]; var registryFile; From 782e1e12d28eb379a68855612662174e00bfc1de Mon Sep 17 00:00:00 2001 From: plata Date: Mon, 7 May 2018 19:14:34 +0200 Subject: [PATCH 03/11] Implement engine settings (#611) --- .../Settings/DirectDraw renderer/script.js | 48 +++++++++++++++++++ .../Settings/DirectDraw renderer/script.json | 11 +++++ Engines/Wine/Settings/GLSL/script.js | 48 +++++++++++++++++++ Engines/Wine/Settings/GLSL/script.json | 11 +++++ .../Wine/Settings/always offscreen/script.js | 48 +++++++++++++++++++ .../Settings/always offscreen/script.json | 11 +++++ Engines/Wine/Settings/application.json | 5 ++ .../Settings/mouse warp override/script.js | 48 +++++++++++++++++++ .../Settings/mouse warp override/script.json | 11 +++++ Engines/Wine/Settings/multisampling/script.js | 48 +++++++++++++++++++ .../Wine/Settings/multisampling/script.json | 11 +++++ .../offscreen rendering mode/script.js | 48 +++++++++++++++++++ .../offscreen rendering mode/script.json | 11 +++++ .../render target lock mode/script.js | 48 +++++++++++++++++++ .../render target lock mode/script.json | 11 +++++ .../Settings/strict draw ordering/script.js | 48 +++++++++++++++++++ .../Settings/strict draw ordering/script.json | 11 +++++ .../Wine/Settings/video memory size/script.js | 47 ++++++++++++++++++ .../Settings/video memory size/script.json | 11 +++++ 19 files changed, 535 insertions(+) create mode 100644 Engines/Wine/Settings/DirectDraw renderer/script.js create mode 100644 Engines/Wine/Settings/DirectDraw renderer/script.json create mode 100644 Engines/Wine/Settings/GLSL/script.js create mode 100644 Engines/Wine/Settings/GLSL/script.json create mode 100644 Engines/Wine/Settings/always offscreen/script.js create mode 100644 Engines/Wine/Settings/always offscreen/script.json create mode 100644 Engines/Wine/Settings/application.json create mode 100644 Engines/Wine/Settings/mouse warp override/script.js create mode 100644 Engines/Wine/Settings/mouse warp override/script.json create mode 100644 Engines/Wine/Settings/multisampling/script.js create mode 100644 Engines/Wine/Settings/multisampling/script.json create mode 100644 Engines/Wine/Settings/offscreen rendering mode/script.js create mode 100644 Engines/Wine/Settings/offscreen rendering mode/script.json create mode 100644 Engines/Wine/Settings/render target lock mode/script.js create mode 100644 Engines/Wine/Settings/render target lock mode/script.json create mode 100644 Engines/Wine/Settings/strict draw ordering/script.js create mode 100644 Engines/Wine/Settings/strict draw ordering/script.json create mode 100644 Engines/Wine/Settings/video memory size/script.js create mode 100644 Engines/Wine/Settings/video memory size/script.json diff --git a/Engines/Wine/Settings/DirectDraw renderer/script.js b/Engines/Wine/Settings/DirectDraw renderer/script.js new file mode 100644 index 0000000000..0bc0c0d038 --- /dev/null +++ b/Engines/Wine/Settings/DirectDraw renderer/script.js @@ -0,0 +1,48 @@ +include(["engines", "wine", "engine", "object"]); +include(["engines", "wine", "plugins", "regedit"]); + +/** + * setting to set the DirectDraw renderer +*/ +var settingImplementation = { + _options: [tr("Default"), tr("GDI"), tr("OpenGL")], + // values which are written into the registry, do not translate! + _registryValues: ["", "gdi", "opengl"], + getText: function () { + return tr("DirectDraw renderer"); + }, + getOptions: function () { + return this._options; + }, + getCurrentOption: function (container) { + var currentValue = new Wine() + .prefix(container) + .regedit() + .fetchValue(["HKEY_CURRENT_USER", "Software", "Wine", "Direct3D", "DirectDrawRenderer"]); + // find matching option (use default if not found) + var index = Math.max(this._registryValues.indexOf(currentValue), 0); + return this._options[index]; + }, + setOption: function (container, optionIndex) { + if (0 == optionIndex) { + new Wine() + .prefix(container) + .regedit() + .deleteValue("HKEY_CURRENT_USER\\Software\\Wine\\Direct3D", "DirectDrawRenderer"); + } + else { + var regeditFileContent = + "REGEDIT4\n" + + "\n" + + "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]\n" + + "\"DirectDrawRenderer\"=\"" + this._registryValues[optionIndex] + "\"\n"; + new Wine() + .prefix(container) + .regedit() + .patch(regeditFileContent); + } + } +}; + +/* exported Setting */ +var Setting = Java.extend(org.phoenicis.engines.EngineSetting, settingImplementation); diff --git a/Engines/Wine/Settings/DirectDraw renderer/script.json b/Engines/Wine/Settings/DirectDraw renderer/script.json new file mode 100644 index 0000000000..68c9074fd9 --- /dev/null +++ b/Engines/Wine/Settings/DirectDraw renderer/script.json @@ -0,0 +1,11 @@ +{ + "scriptName" : "DirectDraw renderer", + "id" : "directdraw_renderer", + "compatibleOperatingSystems" : [ + "MACOSX", + "LINUX" + ], + "testingOperatingSystems" : [], + "free" : true, + "requiresPatch" : false +} diff --git a/Engines/Wine/Settings/GLSL/script.js b/Engines/Wine/Settings/GLSL/script.js new file mode 100644 index 0000000000..cf233c275f --- /dev/null +++ b/Engines/Wine/Settings/GLSL/script.js @@ -0,0 +1,48 @@ +include(["engines", "wine", "engine", "object"]); +include(["engines", "wine", "plugins", "regedit"]); + +/** + * setting to enable/disable GLSL +*/ +var settingImplementation = { + _options: [tr("Default"), tr("Disabled"), tr("Enabled")], + // values which are written into the registry, do not translate! + _registryValues: ["", "disabled", "enabled"], + getText: function () { + return tr("GLSL support"); + }, + getOptions: function () { + return this._options; + }, + getCurrentOption: function (container) { + var currentValue = new Wine() + .prefix(container) + .regedit() + .fetchValue(["HKEY_CURRENT_USER", "Software", "Wine", "Direct3D", "UseGLSL"]); + // find matching option (use default if not found) + var index = Math.max(this._registryValues.indexOf(currentValue), 0); + return this._options[index]; + }, + setOption: function (container, optionIndex) { + if (0 == optionIndex) { + new Wine() + .prefix(container) + .regedit() + .deleteValue("HKEY_CURRENT_USER\\Software\\Wine\\Direct3D", "UseGLSL"); + } + else { + var regeditFileContent = + "REGEDIT4\n" + + "\n" + + "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]\n" + + "\"UseGLSL\"=\"" + this._registryValues[optionIndex] + "\"\n"; + new Wine() + .prefix(container) + .regedit() + .patch(regeditFileContent); + } + } +}; + +/* exported Setting */ +var Setting = Java.extend(org.phoenicis.engines.EngineSetting, settingImplementation); diff --git a/Engines/Wine/Settings/GLSL/script.json b/Engines/Wine/Settings/GLSL/script.json new file mode 100644 index 0000000000..a927461f26 --- /dev/null +++ b/Engines/Wine/Settings/GLSL/script.json @@ -0,0 +1,11 @@ +{ + "scriptName" : "GLSL", + "id" : "glsl", + "compatibleOperatingSystems" : [ + "MACOSX", + "LINUX" + ], + "testingOperatingSystems" : [], + "free" : true, + "requiresPatch" : false +} diff --git a/Engines/Wine/Settings/always offscreen/script.js b/Engines/Wine/Settings/always offscreen/script.js new file mode 100644 index 0000000000..07e9822bd6 --- /dev/null +++ b/Engines/Wine/Settings/always offscreen/script.js @@ -0,0 +1,48 @@ +include(["engines", "wine", "engine", "object"]); +include(["engines", "wine", "plugins", "regedit"]); + +/** + * setting to set always offscreen +*/ +var settingImplementation = { + _options: [tr("Default"), tr("Disabled"), tr("Enabled")], + // values which are written into the registry, do not translate! + _registryValues: ["", "disabled", "enabled"], + getText: function () { + return tr("Always offscreen"); + }, + getOptions: function () { + return this._options; + }, + getCurrentOption: function (container) { + var currentValue = new Wine() + .prefix(container) + .regedit() + .fetchValue(["HKEY_CURRENT_USER", "Software", "Wine", "Direct3D", "AlwaysOffscreen"]); + // find matching option (use default if not found) + var index = Math.max(this._registryValues.indexOf(currentValue), 0); + return this._options[index]; + }, + setOption: function (container, optionIndex) { + if (0 == optionIndex) { + new Wine() + .prefix(container) + .regedit() + .deleteValue("HKEY_CURRENT_USER\\Software\\Wine\\Direct3D", "AlwaysOffscreen"); + } + else { + var regeditFileContent = + "REGEDIT4\n" + + "\n" + + "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]\n" + + "\"AlwaysOffscreen\"=\"" + this._registryValues[optionIndex] + "\"\n"; + new Wine() + .prefix(container) + .regedit() + .patch(regeditFileContent); + } + } +}; + +/* exported Setting */ +var Setting = Java.extend(org.phoenicis.engines.EngineSetting, settingImplementation); diff --git a/Engines/Wine/Settings/always offscreen/script.json b/Engines/Wine/Settings/always offscreen/script.json new file mode 100644 index 0000000000..a0684c8c25 --- /dev/null +++ b/Engines/Wine/Settings/always offscreen/script.json @@ -0,0 +1,11 @@ +{ + "scriptName" : "always offscreen", + "id" : "always_offscreen", + "compatibleOperatingSystems" : [ + "MACOSX", + "LINUX" + ], + "testingOperatingSystems" : [], + "free" : true, + "requiresPatch" : false +} diff --git a/Engines/Wine/Settings/application.json b/Engines/Wine/Settings/application.json new file mode 100644 index 0000000000..3c1571cbda --- /dev/null +++ b/Engines/Wine/Settings/application.json @@ -0,0 +1,5 @@ +{ + "name" : "Wine Settings", + "id" : "settings", + "description" : "Settings for Wine." +} diff --git a/Engines/Wine/Settings/mouse warp override/script.js b/Engines/Wine/Settings/mouse warp override/script.js new file mode 100644 index 0000000000..1e4cbcba5d --- /dev/null +++ b/Engines/Wine/Settings/mouse warp override/script.js @@ -0,0 +1,48 @@ +include(["engines", "wine", "engine", "object"]); +include(["engines", "wine", "plugins", "regedit"]); + +/** + * setting to configure mouse warp override +*/ +var settingImplementation = { + _options: [tr("Default"), tr("Disabled"), tr("Enabled"), tr("Force")], + // values which are written into the registry, do not translate! + _registryValues: ["", "disabled", "enabled", "force"], + getText: function () { + return tr("Mouse warp override"); + }, + getOptions: function () { + return this._options; + }, + getCurrentOption: function (container) { + var currentValue = new Wine() + .prefix(container) + .regedit() + .fetchValue(["HKEY_CURRENT_USER", "Software", "Wine", "DirectInput", "MouseWarpOverride"]); + // find matching option (use default if not found) + var index = Math.max(this._registryValues.indexOf(currentValue), 0); + return this._options[index]; + }, + setOption: function (container, optionIndex) { + if (0 == optionIndex) { + new Wine() + .prefix(container) + .regedit() + .deleteValue("HKEY_CURRENT_USER\\Software\\Wine\\DirectInput", "MouseWarpOverride"); + } + else { + var regeditFileContent = + "REGEDIT4\n" + + "\n" + + "[HKEY_CURRENT_USER\\Software\\Wine\\DirectInput]\n" + + "\"MouseWarpOverride\"=\"" + this._registryValues[optionIndex] + "\"\n"; + new Wine() + .prefix(container) + .regedit() + .patch(regeditFileContent); + } + } +}; + +/* exported Setting */ +var Setting = Java.extend(org.phoenicis.engines.EngineSetting, settingImplementation); diff --git a/Engines/Wine/Settings/mouse warp override/script.json b/Engines/Wine/Settings/mouse warp override/script.json new file mode 100644 index 0000000000..7283ef967b --- /dev/null +++ b/Engines/Wine/Settings/mouse warp override/script.json @@ -0,0 +1,11 @@ +{ + "scriptName" : "mouse warp override", + "id" : "mouse_warp_override", + "compatibleOperatingSystems" : [ + "MACOSX", + "LINUX" + ], + "testingOperatingSystems" : [], + "free" : true, + "requiresPatch" : false +} diff --git a/Engines/Wine/Settings/multisampling/script.js b/Engines/Wine/Settings/multisampling/script.js new file mode 100644 index 0000000000..4259f0cafa --- /dev/null +++ b/Engines/Wine/Settings/multisampling/script.js @@ -0,0 +1,48 @@ +include(["engines", "wine", "engine", "object"]); +include(["engines", "wine", "plugins", "regedit"]); + +/** + * setting to configure multisampling +*/ +var settingImplementation = { + _options: [tr("Default"), tr("Disabled"), tr("Enabled")], + // values which are written into the registry, do not translate! + _registryValues: ["", "disabled", "enabled"], + getText: function () { + return tr("Multisampling"); + }, + getOptions: function () { + return this._options; + }, + getCurrentOption: function (container) { + var currentValue = new Wine() + .prefix(container) + .regedit() + .fetchValue(["HKEY_CURRENT_USER", "Software", "Wine", "Direct3D", "Multisampling"]); + // find matching option (use default if not found) + var index = Math.max(this._registryValues.indexOf(currentValue), 0); + return this._options[index]; + }, + setOption: function (container, optionIndex) { + if (0 == optionIndex) { + new Wine() + .prefix(container) + .regedit() + .deleteValue("HKEY_CURRENT_USER\\Software\\Wine\\Direct3D", "Multisampling"); + } + else { + var regeditFileContent = + "REGEDIT4\n" + + "\n" + + "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]\n" + + "\"Multisampling\"=\"" + this._registryValues[optionIndex] + "\"\n"; + new Wine() + .prefix(container) + .regedit() + .patch(regeditFileContent); + } + } +}; + +/* exported Setting */ +var Setting = Java.extend(org.phoenicis.engines.EngineSetting, settingImplementation); diff --git a/Engines/Wine/Settings/multisampling/script.json b/Engines/Wine/Settings/multisampling/script.json new file mode 100644 index 0000000000..a4df2ca2e2 --- /dev/null +++ b/Engines/Wine/Settings/multisampling/script.json @@ -0,0 +1,11 @@ +{ + "scriptName" : "multisampling", + "id" : "multisampling", + "compatibleOperatingSystems" : [ + "MACOSX", + "LINUX" + ], + "testingOperatingSystems" : [], + "free" : true, + "requiresPatch" : false +} diff --git a/Engines/Wine/Settings/offscreen rendering mode/script.js b/Engines/Wine/Settings/offscreen rendering mode/script.js new file mode 100644 index 0000000000..7a886946bf --- /dev/null +++ b/Engines/Wine/Settings/offscreen rendering mode/script.js @@ -0,0 +1,48 @@ +include(["engines", "wine", "engine", "object"]); +include(["engines", "wine", "plugins", "regedit"]); + +/** + * setting to set the offscreen rendering mode +*/ +var settingImplementation = { + _options: [tr("Default"), tr("FBO"), tr("Backbuffer")], + // values which are written into the registry, do not translate! + _registryValues: ["", "fbo", "backbuffer"], + getText: function () { + return tr("Offscreen rendering mode"); + }, + getOptions: function () { + return this._options; + }, + getCurrentOption: function (container) { + var currentValue = new Wine() + .prefix(container) + .regedit() + .fetchValue(["HKEY_CURRENT_USER", "Software", "Wine", "Direct3D", "OffscreenRenderingMode"]); + // find matching option (use default if not found) + var index = Math.max(this._registryValues.indexOf(currentValue), 0); + return this._options[index]; + }, + setOption: function (container, optionIndex) { + if (0 == optionIndex) { + new Wine() + .prefix(container) + .regedit() + .deleteValue("HKEY_CURRENT_USER\\Software\\Wine\\Direct3D", "OffscreenRenderingMode"); + } + else { + var regeditFileContent = + "REGEDIT4\n" + + "\n" + + "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]\n" + + "\"OffscreenRenderingMode\"=\"" + this._registryValues[optionIndex] + "\"\n"; + new Wine() + .prefix(container) + .regedit() + .patch(regeditFileContent); + } + } +}; + +/* exported Setting */ +var Setting = Java.extend(org.phoenicis.engines.EngineSetting, settingImplementation); diff --git a/Engines/Wine/Settings/offscreen rendering mode/script.json b/Engines/Wine/Settings/offscreen rendering mode/script.json new file mode 100644 index 0000000000..520e38b9bf --- /dev/null +++ b/Engines/Wine/Settings/offscreen rendering mode/script.json @@ -0,0 +1,11 @@ +{ + "scriptName" : "offscreen rendering mode", + "id" : "offscreen_rendering_mode", + "compatibleOperatingSystems" : [ + "MACOSX", + "LINUX" + ], + "testingOperatingSystems" : [], + "free" : true, + "requiresPatch" : false +} diff --git a/Engines/Wine/Settings/render target lock mode/script.js b/Engines/Wine/Settings/render target lock mode/script.js new file mode 100644 index 0000000000..0878cffbc9 --- /dev/null +++ b/Engines/Wine/Settings/render target lock mode/script.js @@ -0,0 +1,48 @@ +include(["engines", "wine", "engine", "object"]); +include(["engines", "wine", "plugins", "regedit"]); + +/** + * setting to set the render target lock mode +*/ +var settingImplementation = { + _options: [tr("Default"), tr("Disabled"), tr("readdraw"), tr("readtext")], + // values which are written into the registry, do not translate! + _registryValues: ["", "disabled", "readdraw", "readtext"], + getText: function () { + return tr("Render target lock mode"); + }, + getOptions: function () { + return this._options; + }, + getCurrentOption: function (container) { + var currentValue = new Wine() + .prefix(container) + .regedit() + .fetchValue(["HKEY_CURRENT_USER", "Software", "Wine", "Direct3D", "RenderTargetModeLock"]); + // find matching option (use default if not found) + var index = Math.max(this._registryValues.indexOf(currentValue), 0); + return this._options[index]; + }, + setOption: function (container, optionIndex) { + if (0 == optionIndex) { + new Wine() + .prefix(container) + .regedit() + .deleteValue("HKEY_CURRENT_USER\\Software\\Wine\\Direct3D", "RenderTargetModeLock"); + } + else { + var regeditFileContent = + "REGEDIT4\n" + + "\n" + + "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]\n" + + "\"RenderTargetModeLock\"=\"" + this._registryValues[optionIndex] + "\"\n"; + new Wine() + .prefix(container) + .regedit() + .patch(regeditFileContent); + } + } +}; + +/* exported Setting */ +var Setting = Java.extend(org.phoenicis.engines.EngineSetting, settingImplementation); diff --git a/Engines/Wine/Settings/render target lock mode/script.json b/Engines/Wine/Settings/render target lock mode/script.json new file mode 100644 index 0000000000..676c0333f5 --- /dev/null +++ b/Engines/Wine/Settings/render target lock mode/script.json @@ -0,0 +1,11 @@ +{ + "scriptName" : "render target lock mode", + "id" : "render_target_lock_mode", + "compatibleOperatingSystems" : [ + "MACOSX", + "LINUX" + ], + "testingOperatingSystems" : [], + "free" : true, + "requiresPatch" : false +} diff --git a/Engines/Wine/Settings/strict draw ordering/script.js b/Engines/Wine/Settings/strict draw ordering/script.js new file mode 100644 index 0000000000..b291ccd060 --- /dev/null +++ b/Engines/Wine/Settings/strict draw ordering/script.js @@ -0,0 +1,48 @@ +include(["engines", "wine", "engine", "object"]); +include(["engines", "wine", "plugins", "regedit"]); + +/** + * setting to configure strict draw ordering +*/ +var settingImplementation = { + _options: [tr("Default"), tr("Disabled"), tr("Enabled")], + // values which are written into the registry, do not translate! + _registryValues: ["", "disabled", "enabled"], + getText: function () { + return tr("Strict Draw Ordering"); + }, + getOptions: function () { + return this._options; + }, + getCurrentOption: function (container) { + var currentValue = new Wine() + .prefix(container) + .regedit() + .fetchValue(["HKEY_CURRENT_USER", "Software", "Wine", "Direct3D", "StrictDrawOrdering"]); + // find matching option (use default if not found) + var index = Math.max(this._registryValues.indexOf(currentValue), 0); + return this._options[index]; + }, + setOption: function (container, optionIndex) { + if (0 == optionIndex) { + new Wine() + .prefix(container) + .regedit() + .deleteValue("HKEY_CURRENT_USER\\Software\\Wine\\Direct3D", "StrictDrawOrdering"); + } + else { + var regeditFileContent = + "REGEDIT4\n" + + "\n" + + "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]\n" + + "\"StrictDrawOrdering\"=\"" + this._registryValues[optionIndex] + "\"\n"; + new Wine() + .prefix(container) + .regedit() + .patch(regeditFileContent); + } + } +}; + +/* exported Setting */ +var Setting = Java.extend(org.phoenicis.engines.EngineSetting, settingImplementation); diff --git a/Engines/Wine/Settings/strict draw ordering/script.json b/Engines/Wine/Settings/strict draw ordering/script.json new file mode 100644 index 0000000000..f24791ea71 --- /dev/null +++ b/Engines/Wine/Settings/strict draw ordering/script.json @@ -0,0 +1,11 @@ +{ + "scriptName" : "strict draw ordering", + "id" : "strict_draw_ordering", + "compatibleOperatingSystems" : [ + "MACOSX", + "LINUX" + ], + "testingOperatingSystems" : [], + "free" : true, + "requiresPatch" : false +} diff --git a/Engines/Wine/Settings/video memory size/script.js b/Engines/Wine/Settings/video memory size/script.js new file mode 100644 index 0000000000..b0dd575d60 --- /dev/null +++ b/Engines/Wine/Settings/video memory size/script.js @@ -0,0 +1,47 @@ +include(["engines", "wine", "engine", "object"]); +include(["engines", "wine", "plugins", "regedit"]); + +/** + * setting to set the video memory size +*/ +var settingImplementation = { + _options: [tr("Default"), "64", "384", "1024", "4096", "7168"], + // values which are written into the registry, do not translate! + _registryValues: ["", "64", "384", "1024", "4096", "7168"], + getText: function () { + return tr("Video memory size"); + }, + getOptions: function () { + return this._options; + }, + getCurrentOption: function (container) { + var currentValue = new Wine() + .prefix(container) + .regedit() + .fetchValue(["HKEY_CURRENT_USER", "Software", "Wine", "Direct3D", "VideoMemorySize"]); + // find matching option (use default if not found) + var index = Math.max(this._registryValues.indexOf(currentValue), 0); + return this._options[index]; + }, + setOption: function (container, optionIndex) { + if (0 == optionIndex) { + new Wine() + .prefix(container) + .regedit() + .deleteValue("HKEY_CURRENT_USER\\Software\\Wine\\Direct3D", "VideoMemorySize"); + } else { + var regeditFileContent = + "REGEDIT4\n" + + "\n" + + "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]\n" + + "\"VideoMemorySize\"=\"" + this._registryValues[optionIndex] + "\"\n"; + new Wine() + .prefix(container) + .regedit() + .patch(regeditFileContent); + } + } +}; + +/* exported Setting */ +var Setting = Java.extend(org.phoenicis.engines.EngineSetting, settingImplementation); diff --git a/Engines/Wine/Settings/video memory size/script.json b/Engines/Wine/Settings/video memory size/script.json new file mode 100644 index 0000000000..02aba8bdc5 --- /dev/null +++ b/Engines/Wine/Settings/video memory size/script.json @@ -0,0 +1,11 @@ +{ + "scriptName" : "video memory size", + "id" : "video_memory_size", + "compatibleOperatingSystems" : [ + "MACOSX", + "LINUX" + ], + "testingOperatingSystems" : [], + "free" : true, + "requiresPatch" : false +} From effb87cea7af022f689e2749b7efa00013578d6e Mon Sep 17 00:00:00 2001 From: plata Date: Tue, 8 May 2018 10:11:12 +0200 Subject: [PATCH 04/11] Update Travis CI badge (#618) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9dd457795d..d4c127a835 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build Status](https://travis-ci.org/PhoenicisOrg/scripts.svg?branch=master)](https://travis-ci.org/PhoenicisOrg/scripts) +[![Build Status](https://travis-ci.com/PhoenicisOrg/scripts.svg?branch=master)](https://travis-ci.com/PhoenicisOrg/scripts) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/ff0c41daa31549e4a9bb3998ca0c87ae)](https://www.codacy.com/app/PhoenicisOrg/scripts?utm_source=github.com&utm_medium=referral&utm_content=PhoenicisOrg/scripts&utm_campaign=Badge_Grade) [![Crowdin Badge](https://d322cqt584bo4o.cloudfront.net/phoenicis-scripts/localized.svg)](https://crowdin.com/project/phoenicis-scripts) From dc6d05aa851d0792dbce17436c9adb86e722b441 Mon Sep 17 00:00:00 2001 From: plata Date: Tue, 8 May 2018 10:46:00 +0200 Subject: [PATCH 05/11] Travis CI: install JSDoc --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 57d2bceda3..742ff0f101 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,6 +26,7 @@ matrix: # Update JSDoc - stage: Update JSDoc + before_install: npm install -g jsdoc script: # push JSDoc updates only for master (PR changes must be committed to master before they are taken into account) - if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./push_jsdoc.sh; fi From 873cfa47c596c2b850fb25f19bffbc226841796b Mon Sep 17 00:00:00 2001 From: plata Date: Tue, 8 May 2018 11:34:21 +0200 Subject: [PATCH 06/11] Update Travis CI secure --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 742ff0f101..e36028a3a6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -44,4 +44,4 @@ matrix: env: global: - - secure: "G4stg+1ko5gyBf7q4d3BPmpHKKNkNjEFJOjE83JAe+3aJFYUSh+bwQKizc6+0BaekhyQcQB2CxtknkVGk/xnio2fNNuahxYV1QJmEDxNeBmwF4LS8rQcidoxOPfCVHQ/DXCqtJrCjof7BrWGJKsnhIVHtkQFwo369XATCNIZdsjhuM4ROT35HykoGE+us2qWsoU5C/j+F3dD+9LC8y8ye7SljC9EJVCjZ7HrW77ghS7aulZ+tcrQiHeFwRGJ9Oppwq+XbViflMmPxsp1z3Sg829dWA0Fv9+ejZo7ys0KJauh0H00J8druy3X/QncibzOqy2FCbwXm3e8k3WHgUpYihN3x2Up4PmhEysrlctnR1s3VFDr2cUHYbmeh4eqjSy9O3ejPu9th7Z0pjAJxJae8BWx3Gg2oA+tuIeMAxvGQScQkj93g2moAq2n1wSaa5wCEzoLTV+gheqojRIMc/E9O5VQB+oXgDv1xUKfJ5ZmB7nPGoVBbw2YimGTeICbLjydH6ErKTnxdia1EVn5OX5OOss5H6u/jxg8wJALp4+Qq/7EwMj9f6j6J8JuZSNMAqlvSovdqNPlrywPsqtGEJlB6GU3Sqc5cWW/qlefXNZzXHJkZGGQCqhQiQljNxzRm8lgh0u9/uAH4RhOFhtJnBbE/yo7Exe0yIH6eadBaMl+xTQ=" + - secure: "JDMLMTU6GREzxLpe+WteZ1oQsoBKHFBjV55+KNiBYhvFlo7RXblRO1lR/wJwb1LHEk2ALzpuCiljhqQnIEN8vkk2rjDiAMds7b22ssqOMDYYJMb1s8ze5TMBFsea/vggXMJktHdOXTdnVJb2ueTcRgHnK/mRfiWe/NQT9uX2ROQund7/lg9fAFdPLeFUeZILH0LyQWBs8+sVBrXIyrFUKMIDHBafv0qxdRG4PV+eQXrTARoaheRP1M2knp7XOOY3fPcGFAJeyL+tYQXJn+cK9DQWh06vhVPKnDDdNX0JBAz7AnxFwOow8nbH1QYSnK3CwLhjtmMt2rZ8BNbNDgkYqS6mluDngTkN7cCoSvbyecUXw7J+PjDYxD4h/v0WaLn2zCwh7R4leBwh/RKRy0Gia3A/lYR+0zBLCqF3MoktpcnMQciX9K0Qol8LF/yFCaEtXqJeemztDY53mO8IFmKH0g7M6Q9oPc9+MYBXPm7td9oCse07SPxSXdtRvaA2VTvuPQboUgOatbMNTUsbjqjfCf0zyS77Ori+81KOAZVBHf+qLSlbTjEjNlm090Hm3H8i02yLKi91PvD/HiZ81PAj+Yh0sAkzGY+f5Gueql7rxLU24PSiUeCxlXIJ+BIGkWas8x7SMWbkgSTcORfq7/9HoIhrhTQVCeQUjKgxw+nkZHs=" From 90e1d2eccdce821b9eb2a7d9e57625f450684593 Mon Sep 17 00:00:00 2001 From: plata Date: Tue, 8 May 2018 11:45:49 +0200 Subject: [PATCH 07/11] Update Travis CI secure --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e36028a3a6..836d1ad2cc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -44,4 +44,4 @@ matrix: env: global: - - secure: "JDMLMTU6GREzxLpe+WteZ1oQsoBKHFBjV55+KNiBYhvFlo7RXblRO1lR/wJwb1LHEk2ALzpuCiljhqQnIEN8vkk2rjDiAMds7b22ssqOMDYYJMb1s8ze5TMBFsea/vggXMJktHdOXTdnVJb2ueTcRgHnK/mRfiWe/NQT9uX2ROQund7/lg9fAFdPLeFUeZILH0LyQWBs8+sVBrXIyrFUKMIDHBafv0qxdRG4PV+eQXrTARoaheRP1M2knp7XOOY3fPcGFAJeyL+tYQXJn+cK9DQWh06vhVPKnDDdNX0JBAz7AnxFwOow8nbH1QYSnK3CwLhjtmMt2rZ8BNbNDgkYqS6mluDngTkN7cCoSvbyecUXw7J+PjDYxD4h/v0WaLn2zCwh7R4leBwh/RKRy0Gia3A/lYR+0zBLCqF3MoktpcnMQciX9K0Qol8LF/yFCaEtXqJeemztDY53mO8IFmKH0g7M6Q9oPc9+MYBXPm7td9oCse07SPxSXdtRvaA2VTvuPQboUgOatbMNTUsbjqjfCf0zyS77Ori+81KOAZVBHf+qLSlbTjEjNlm090Hm3H8i02yLKi91PvD/HiZ81PAj+Yh0sAkzGY+f5Gueql7rxLU24PSiUeCxlXIJ+BIGkWas8x7SMWbkgSTcORfq7/9HoIhrhTQVCeQUjKgxw+nkZHs=" + - secure: "i9wQye4zinEe1wnsFcqqSgCOPpGOgS5BLGjE60KYhQYD4/OT0Y+cJDOluozbf8TsNabMW3Q6jDODNsfZHjbXFErxS7D7Vyi4s2B8ITrL9zhVizDE3GhN2GNUGl2JO954cNjhT53d+PaMAT3Muz+X3d4RiOS41GQh6xoisdZAzJTNa5p7ulwaNNlqRzlNNj5i4Otzcarp97u6BnDuVsm4UvviTeICjVbYUwBy5XOymzX2BDU/F9o9utH4xRBtW3Cx0lLJ6Qx1rZNDMgdEtvxgW6R+L3pI2pCqlDJTSXRFWv5+Tm5n1+knINAchHUT8i0djEMMtiLjDF1ouLYQNWK8OsRCoMAGIwSxA0Q0Rozjx1nXzMmqdivXSgh71YmUc8UQQYyli8egz5tDcft1p8jgUjC/LYXYVfvoZPF0idheMMfbzClRTdGzhJcaymnvbR0lPOnqhES9Rc8khGMDnN23I49q8XGJjBKuGwzXy4toqDHVXM42GFA36zo8tt+q5FfNozJsj+jxOc6VRjX385yntxxT8ibRhRBk73ueh12unIkA3nBujX1gnO+eNBSni7bDjV9Wqdpi+QaDvLro6XoB0weEvI9cYzcNyEyH582yrWbzjkF6dRAKijIlsrJ7JETYRnxM3qisu3O7O1ATSfzqJM9WXQnGzaHCoSdHp97Yl5Y=" From 06a5b3baf5581021ffd8efa6614584d8e2432e44 Mon Sep 17 00:00:00 2001 From: plata Date: Tue, 8 May 2018 13:48:17 +0200 Subject: [PATCH 08/11] Update Travis CI secure --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 836d1ad2cc..836ab4e34e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -44,4 +44,4 @@ matrix: env: global: - - secure: "i9wQye4zinEe1wnsFcqqSgCOPpGOgS5BLGjE60KYhQYD4/OT0Y+cJDOluozbf8TsNabMW3Q6jDODNsfZHjbXFErxS7D7Vyi4s2B8ITrL9zhVizDE3GhN2GNUGl2JO954cNjhT53d+PaMAT3Muz+X3d4RiOS41GQh6xoisdZAzJTNa5p7ulwaNNlqRzlNNj5i4Otzcarp97u6BnDuVsm4UvviTeICjVbYUwBy5XOymzX2BDU/F9o9utH4xRBtW3Cx0lLJ6Qx1rZNDMgdEtvxgW6R+L3pI2pCqlDJTSXRFWv5+Tm5n1+knINAchHUT8i0djEMMtiLjDF1ouLYQNWK8OsRCoMAGIwSxA0Q0Rozjx1nXzMmqdivXSgh71YmUc8UQQYyli8egz5tDcft1p8jgUjC/LYXYVfvoZPF0idheMMfbzClRTdGzhJcaymnvbR0lPOnqhES9Rc8khGMDnN23I49q8XGJjBKuGwzXy4toqDHVXM42GFA36zo8tt+q5FfNozJsj+jxOc6VRjX385yntxxT8ibRhRBk73ueh12unIkA3nBujX1gnO+eNBSni7bDjV9Wqdpi+QaDvLro6XoB0weEvI9cYzcNyEyH582yrWbzjkF6dRAKijIlsrJ7JETYRnxM3qisu3O7O1ATSfzqJM9WXQnGzaHCoSdHp97Yl5Y=" + - secure: "HZ7wbZdwnp3iUJwfL42HnH8fnTcVz/9y9HKFy2MXw38ZtZMoXMB1a3duM0a+UFY59biFVb2PgvqEzl5e8i1fygCN2gYtyWNvvMsNTD0Iq9eOo6nzSkWjWoWIn1TMUEjDS4xZdJLHkmnp7E4h4xc4CNt3HZA5rRbiko8wXCLeWh0UM3YXjs/b14tDlZRy29Sn4LuMSdGWi8lqqTF+4rAAFJ7aQOZDJfse/lZr2FTxRtOdsxPSizU3wJ/Hk/uQvOtp6CizC0c53r49ODqDuFeHj0AOeAR9DpM0B7MojZiFKW2h74vMMcCBKdeyX3K7iLn55Z65p/9bwWCPWwAbwy4Vrbi4OMKc4WdD0RE5h0OOXCdw7xuCA1nPg5+xk5l/0TAXjmb/luklyFbNBXyGKjF5CeEaUhrn9LFmOuyoqYoVf4BD2TA32kqMGxVchf8bnTeM25slI/wi5Sgjpj6GXuxay9bUt13QPQLcT3sNp1Jftvm4gZPdY9TR9m+nPK7nhIZjFWeHJu2nIzcfJdqMTcmLV+iKqZSSL2CJqCUbPEIVwtIj3ZytFrWTX88H97K/9UMDPQ+YbyT1I9XwkXY2PT66F5WE1UVMW/3SKw/jZON8AjYKD4mTd24kRMNfNhXGsg3L+NS8dsDXz1cfSZpLGxe4rvguZInoziJGLN27jGwyN0I=" From 22942d1c2019ec4d4676aca98a866c8ff9fdd460 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 8 May 2018 11:50:48 +0000 Subject: [PATCH 09/11] Update JSDoc --- docs/jsdoc/AppResource.html | 486 +++ docs/jsdoc/CabExtract.html | 953 +++++ docs/jsdoc/Checksum.html | 751 ++++ docs/jsdoc/Downloader.html | 1536 ++++++++ ..._Wine_Engine_Implementation_script.js.html | 324 ++ .../Engines_Wine_Engine_Object_script.js.html | 866 +--- ...Plugins_DirectDraw renderer_script.js.html | 66 + .../Engines_Wine_Plugins_GLSL_script.js.html | 67 + ...Wine_Plugins_OpenGL version_script.js.html | 68 + ...ine_Plugins_Windows version_script.js.html | 113 + .../Engines_Wine_Plugins_csmt_script.js.html | 66 + ...ngines_Wine_Plugins_managed_script.js.html | 106 + ..._Plugins_native application_script.js.html | 90 + ...ngines_Wine_Plugins_regedit_script.js.html | 117 + ...gines_Wine_Plugins_regsvr32_script.js.html | 66 + ...s_Wine_Plugins_sound driver_script.js.html | 67 + ...ine_Plugins_virtual desktop_script.js.html | 69 + ...ne_QuickScript_Quick Script_script.js.html | 38 +- ...ettings_DirectDraw renderer_script.js.html | 99 + .../Engines_Wine_Settings_GLSL_script.js.html | 99 + ...e_Settings_always offscreen_script.js.html | 99 + ...ettings_mouse warp override_script.js.html | 99 + ...Wine_Settings_multisampling_script.js.html | 99 + ...gs_offscreen rendering mode_script.js.html | 99 + ...ngs_render target lock mode_script.js.html | 99 + ...ttings_strict draw ordering_script.js.html | 99 + ..._Settings_video memory size_script.js.html | 98 + ...gines_Wine_Shortcuts_Reader_script.js.html | 172 + ...Engines_Wine_Shortcuts_Wine_script.js.html | 238 +- ...s_Wine_Tools_Configure Wine_script.js.html | 25 +- ...e_Tools_Kill Wine Processes_script.js.html | 25 +- ...ines_Wine_Tools_Reboot Wine_script.js.html | 25 +- ...ne_Tools_Repair Wine Prefix_script.js.html | 25 +- ..._Tools_Wine Registry Editor_script.js.html | 26 +- ...ine_Tools_Wine Task Manager_script.js.html | 25 +- ..._Tools_Wine Terminal Opener_script.js.html | 29 +- ...Wine_Tools_Wine Uninstaller_script.js.html | 26 +- ...ines_Wine_Tools_WineConsole_script.js.html | 25 +- .../Engines_Wine_Verbs_DXVK_script.js.html | 102 + .../Engines_Wine_Verbs_PhysX_script.js.html | 72 + ...es_Wine_Verbs_QuickTime 7.6_script.js.html | 71 + .../Engines_Wine_Verbs_Tahoma_script.js.html | 85 + .../Engines_Wine_Verbs_Uplay_script.js.html | 70 + ..._Wine_Verbs_Windows XP SP 3_script.js.html | 91 + ...ngines_Wine_Verbs_corefonts_script.js.html | 186 + .../Engines_Wine_Verbs_crypt32_script.js.html | 67 + .../Engines_Wine_Verbs_d3dx10_script.js.html | 126 + .../Engines_Wine_Verbs_d3dx9_script.js.html | 133 + ...Engines_Wine_Verbs_dotnet40_script.js.html | 94 + ...ngines_Wine_Verbs_dotnet452_script.js.html | 31 +- ...Engines_Wine_Verbs_dotnet45_script.js.html | 33 +- .../Engines_Wine_Verbs_luna_script.js.html | 82 + .../Engines_Wine_Verbs_mfc42_script.js.html | 87 + .../Engines_Wine_Verbs_msls31_script.js.html | 76 + ...Engines_Wine_Verbs_mspatcha_script.js.html | 90 + .../Engines_Wine_Verbs_quartz_script.js.html | 32 +- .../Engines_Wine_Verbs_sandbox_script.js.html | 70 + .../Engines_Wine_Verbs_secur32_script.js.html | 42 +- ...ngines_Wine_Verbs_vcrun2003_script.js.html | 82 + ...ngines_Wine_Verbs_vcrun2005_script.js.html | 84 + ...ngines_Wine_Verbs_vcrun2008_script.js.html | 96 + ...ngines_Wine_Verbs_vcrun2010_script.js.html | 95 + ...ngines_Wine_Verbs_vcrun2012_script.js.html | 95 + ...ngines_Wine_Verbs_vcrun2013_script.js.html | 89 + ...ngines_Wine_Verbs_vcrun2015_script.js.html | 105 + ...ngines_Wine_Verbs_vcrun2017_script.js.html | 105 + .../Engines_Wine_Verbs_xact_script.js.html | 94 +- docs/jsdoc/Extractor.html | 904 +++++ docs/jsdoc/Resource.html | 1222 ++++++ docs/jsdoc/ShortcutReader.html | 794 ++++ ...ls_Functions_Apps_Resources_script.js.html | 86 + ...unctions_Filesystem_Extract_script.js.html | 193 + ..._Functions_Filesystem_Files_script.js.html | 212 + ...tils_Functions_Net_Download_script.js.html | 194 + ...tils_Functions_Net_Resource_script.js.html | 169 +- docs/jsdoc/Wine.html | 3498 ++++++++++++----- docs/jsdoc/WineShortcut.html | 1537 ++++++++ docs/jsdoc/global.html | 3083 +++++++++++++++ docs/jsdoc/index.html | 2 +- 79 files changed, 19556 insertions(+), 2203 deletions(-) create mode 100644 docs/jsdoc/AppResource.html create mode 100644 docs/jsdoc/CabExtract.html create mode 100644 docs/jsdoc/Checksum.html create mode 100644 docs/jsdoc/Downloader.html create mode 100644 docs/jsdoc/Engines_Wine_Engine_Implementation_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Plugins_DirectDraw renderer_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Plugins_GLSL_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Plugins_OpenGL version_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Plugins_Windows version_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Plugins_csmt_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Plugins_managed_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Plugins_native application_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Plugins_regedit_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Plugins_regsvr32_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Plugins_sound driver_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Plugins_virtual desktop_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Settings_DirectDraw renderer_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Settings_GLSL_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Settings_always offscreen_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Settings_mouse warp override_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Settings_multisampling_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Settings_offscreen rendering mode_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Settings_render target lock mode_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Settings_strict draw ordering_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Settings_video memory size_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Shortcuts_Reader_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Verbs_DXVK_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Verbs_PhysX_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Verbs_QuickTime 7.6_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Verbs_Tahoma_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Verbs_Uplay_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Verbs_Windows XP SP 3_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Verbs_corefonts_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Verbs_crypt32_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Verbs_d3dx10_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Verbs_d3dx9_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Verbs_dotnet40_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Verbs_luna_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Verbs_mfc42_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Verbs_msls31_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Verbs_mspatcha_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Verbs_sandbox_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Verbs_vcrun2003_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Verbs_vcrun2005_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Verbs_vcrun2008_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Verbs_vcrun2010_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Verbs_vcrun2012_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Verbs_vcrun2013_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Verbs_vcrun2015_script.js.html create mode 100644 docs/jsdoc/Engines_Wine_Verbs_vcrun2017_script.js.html create mode 100644 docs/jsdoc/Extractor.html create mode 100644 docs/jsdoc/Resource.html create mode 100644 docs/jsdoc/ShortcutReader.html create mode 100644 docs/jsdoc/Utils_Functions_Apps_Resources_script.js.html create mode 100644 docs/jsdoc/Utils_Functions_Filesystem_Extract_script.js.html create mode 100644 docs/jsdoc/Utils_Functions_Filesystem_Files_script.js.html create mode 100644 docs/jsdoc/Utils_Functions_Net_Download_script.js.html create mode 100644 docs/jsdoc/WineShortcut.html create mode 100644 docs/jsdoc/global.html diff --git a/docs/jsdoc/AppResource.html b/docs/jsdoc/AppResource.html new file mode 100644 index 0000000000..23d69355cc --- /dev/null +++ b/docs/jsdoc/AppResource.html @@ -0,0 +1,486 @@ + + + + + JSDoc: Class: AppResource + + + + + + + + + + +
+ +

Class: AppResource

+ + + + + + +
+ +
+ +

AppResource()

+ + +
+ +
+
+ + + + + + +

new AppResource()

+ + + + + + +
+ AppResource prototype +
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + +

Methods

+ + + + + + + +

application(application) → {AppResource}

+ + + + + + +
+ sets application +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
application + + +string + + + + application of the resource
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ AppResource object +
+ + + +
+
+ Type +
+
+ +AppResource + + +
+
+ + + + + + + + + + + + + +

get(resourceName) → {Resource}

+ + + + + + +
+ returns resource +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
resourceName + + +string + + + + name of the resource
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ found resource +
+ + + +
+
+ Type +
+
+ +Resource + + +
+
+ + + + + + + + + + + + + +
+ +
+ + + + +
+ + + +
+ + + + + + + \ No newline at end of file diff --git a/docs/jsdoc/CabExtract.html b/docs/jsdoc/CabExtract.html new file mode 100644 index 0000000000..e765c42798 --- /dev/null +++ b/docs/jsdoc/CabExtract.html @@ -0,0 +1,953 @@ + + + + + JSDoc: Class: CabExtract + + + + + + + + + + +
+ +

Class: CabExtract

+ + + + + + +
+ +
+ +

CabExtract()

+ + +
+ +
+
+ + + + + + +

new CabExtract()

+ + + + + + +
+ CabExtract prototype +
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + +

Methods

+ + + + + + + +

archive(archive) → {CabExtract}

+ + + + + + +
+ sets archive +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
archive + + +string + + + + archive which shall be extracted
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ CabExtract object +
+ + + +
+
+ Type +
+
+ +CabExtract + + +
+
+ + + + + + + + + + + + + +

extract(args) → {void}

+ + + + + + +
+ extracts archive +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
args + + +string + + + + arguments for the extraction
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +void + + +
+
+ + + + + + + + + + + + + +

message(progressMessage) → {CabExtract}

+ + + + + + +
+ sets progress message text +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
progressMessage + + +string + + + + progress message
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ CabExtract object +
+ + + +
+
+ Type +
+
+ +CabExtract + + +
+
+ + + + + + + + + + + + + +

to(destination) → {CabExtract}

+ + + + + + +
+ sets destination +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
destination + + +string + + + + place where the archive shall be extracted
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ CabExtract object +
+ + + +
+
+ Type +
+
+ +CabExtract + + +
+
+ + + + + + + + + + + + + +

wizard(wizard) → {CabExtract}

+ + + + + + +
+ sets wizard +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
wizard + + +SetupWizard + + + + setup wizard
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ CabExtract object +
+ + + +
+
+ Type +
+
+ +CabExtract + + +
+
+ + + + + + + + + + + + + +
+ +
+ + + + +
+ + + +
+ + + + + + + \ No newline at end of file diff --git a/docs/jsdoc/Checksum.html b/docs/jsdoc/Checksum.html new file mode 100644 index 0000000000..b016a34e24 --- /dev/null +++ b/docs/jsdoc/Checksum.html @@ -0,0 +1,751 @@ + + + + + JSDoc: Class: Checksum + + + + + + + + + + +
+ +

Class: Checksum

+ + + + + + +
+ +
+ +

Checksum()

+ + +
+ +
+
+ + + + + + +

new Checksum()

+ + + + + + +
+ Checksum prototype +
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + +

Methods

+ + + + + + + +

get() → {string}

+ + + + + + +
+ returns calculated checksum +
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ calculated checksum +
+ + + +
+
+ Type +
+
+ +string + + +
+
+ + + + + + + + + + + + + +

method(algorithm) → {Checksum}

+ + + + + + +
+ sets checksum algorithm +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
algorithm + + +string + + + + algorithm (e.g. "SHA")
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ Checksum object +
+ + + +
+
+ Type +
+
+ +Checksum + + +
+
+ + + + + + + + + + + + + +

of(file) → {Checksum}

+ + + + + + +
+ sets file for which the checksum shall be computed +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
file + + +string + + + + file for which the checksum shall be computed
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ Checksum object +
+ + + +
+
+ Type +
+
+ +Checksum + + +
+
+ + + + + + + + + + + + + +

wizard(wizard) → {Checksum}

+ + + + + + +
+ sets wizard +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
wizard + + +SetupWizard + + + + setup wizard
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ Checksum object +
+ + + +
+
+ Type +
+
+ +Checksum + + +
+
+ + + + + + + + + + + + + +
+ +
+ + + + +
+ + + +
+ + + + + + + \ No newline at end of file diff --git a/docs/jsdoc/Downloader.html b/docs/jsdoc/Downloader.html new file mode 100644 index 0000000000..09aa8f8433 --- /dev/null +++ b/docs/jsdoc/Downloader.html @@ -0,0 +1,1536 @@ + + + + + JSDoc: Class: Downloader + + + + + + + + + + +
+ +

Class: Downloader

+ + + + + + +
+ +
+ +

Downloader()

+ + +
+ +
+
+ + + + + + +

new Downloader()

+ + + + + + +
+ Downloader prototype +
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + +

Methods

+ + + + + + + +

_fetchFileNameFromUrl(url) → {string}

+ + + + + + +
+ fetches the file name from an URL +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
url + + +string + + + + URL
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ file name +
+ + + +
+
+ Type +
+
+ +string + + +
+
+ + + + + + + + + + + + + +

algorithm(algorithm) → {Downloader}

+ + + + + + +
+ sets algorithm which shall be used to verify the checksum +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
algorithm + + +string + + + + checksum algorithm (e.g. "SHA")
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ Downloader object +
+ + + +
+
+ Type +
+
+ +Downloader + + +
+
+ + + + + + + + + + + + + +

checksum(checksum) → {Downloader}

+ + + + + + +
+ sets checksum +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
checksum + + +string + + + + checksum which shall be used to verify the download
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ Downloader object +
+ + + +
+
+ Type +
+
+ +Downloader + + +
+
+ + + + + + + + + + + + + +

get() → {String}

+ + + + + + +
+ returns downloaded file +
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ content of downloaded file +
+ + + +
+
+ Type +
+
+ +String + + +
+
+ + + + + + + + + + + + + +

message(message) → {Downloader}

+ + + + + + +
+ sets message text +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
message + + +string + + + + download message
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ Downloader object +
+ + + +
+
+ Type +
+
+ +Downloader + + +
+
+ + + + + + + + + + + + + +

onlyIfUpdateAvailable(onlyIfUpdateAvailable) → {Downloader}

+ + + + + + +
+ specifies if the download shall be executed only if a newer version is available +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
onlyIfUpdateAvailable + + +boolean + + + + true the download shall be executed only if a newer version is available
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ Downloader object +
+ + + +
+
+ Type +
+
+ +Downloader + + +
+
+ + + + + + + + + + + + + +

to(localFile) → {Downloader}

+ + + + + + +
+ sets destination +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
localFile + + +string + + + + destination of the download
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ Downloader object +
+ + + +
+
+ Type +
+
+ +Downloader + + +
+
+ + + + + + + + + + + + + +

url(url) → {Downloader}

+ + + + + + +
+ sets URL which shall be used for the download +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
url + + +string + + + + URL
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ Downloader object +
+ + + +
+
+ Type +
+
+ +Downloader + + +
+
+ + + + + + + + + + + + + +

wizard(wizard) → {Downloader}

+ + + + + + +
+ sets wizard +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
wizard + + +SetupWizard + + + + setup wizard
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ Downloader object +
+ + + +
+
+ Type +
+
+ +Downloader + + +
+
+ + + + + + + + + + + + + +
+ +
+ + + + +
+ + + +
+ + + + + + + \ No newline at end of file diff --git a/docs/jsdoc/Engines_Wine_Engine_Implementation_script.js.html b/docs/jsdoc/Engines_Wine_Engine_Implementation_script.js.html new file mode 100644 index 0000000000..db8ae3fbd1 --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Engine_Implementation_script.js.html @@ -0,0 +1,324 @@ + + + + + JSDoc: Source: Engines/Wine/Engine/Implementation/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Engine/Implementation/script.js

+ + + + + + +
+
+
include(["utils", "functions", "filesystem", "files"]);
+include(["utils", "functions", "filesystem", "extract"]);
+include(["utils", "functions", "net", "download"]);
+include(["utils", "functions", "net", "resource"]);
+
+/* exported WINE_PREFIX_DIR */
+var WINE_PREFIX_DIR = "wineprefix";
+
+/**
+ * Wine engine
+*/
+var engineImplementation = {
+    _configFactory: Bean("compatibleConfigFileFormatFactory"),
+    _containerRegex: /[^a-z0-9_\- ]/gi,
+    _ExeAnalyser: Bean("exeAnalyser"),
+    _ldPath: Bean("propertyReader").getProperty("application.environment.ld"),
+    _operatingSystemFetcher: Bean("operatingSystemFetcher"),
+    _wineEnginesDirectory: Bean("propertyReader").getProperty("application.user.engines") + "/wine",
+    _winePrefixesDirectory: Bean("propertyReader").getProperty("application.user.containers") + "/" + WINE_PREFIX_DIR + "/",
+    _wineWebServiceUrl : Bean("propertyReader").getProperty("webservice.wine.url"),
+    _wizard: null,
+    _workingContainer: "",
+    _wineServer: function (subCategory, version, parameter) {
+        var binary = this.getLocalDirectory(subCategory, version) + "/bin/wineserver";
+        var processBuilder = new java.lang.ProcessBuilder(Java.to([binary, parameter], "java.lang.String[]"));
+        var environment = processBuilder.environment();
+        environment.put("WINEPREFIX", this.getContainerDirectory(this.getWorkingContainer()));
+        processBuilder.inheritIO();
+        var wineServerProcess = processBuilder.start();
+        wineServerProcess.waitFor();
+    },
+    getLocalDirectory: function (subCategory, version) {
+        var parts = subCategory.split("-");
+        var distribution = parts[0];
+        var architecture = parts[2];
+        var operatingSystem = this._operatingSystemFetcher.fetchCurrentOperationSystem().getWinePackage();
+        var fullDistributionName = distribution + "-" + operatingSystem + "-" + architecture;
+        return this._wineEnginesDirectory + "/" + fullDistributionName + "/" + version;
+    },
+    isInstalled: function (subCategory, version) {
+        return fileExists(this.getLocalDirectory(subCategory, version));
+    },
+    install: function (subCategory, version) {
+        var parts = subCategory.split("-");
+        var distribution = parts[0];
+        var architecture = parts[2];
+        var localDirectory = this.getLocalDirectory(subCategory, version);
+        // if not installed
+        if (!this.isInstalled(subCategory, version)) {
+            var ownWizard = false;
+            var wizard = this.getWizard();
+            if (!wizard) {
+                wizard = SetupWizard(InstallationType.ENGINES, "Wine " + version + " " + distribution + " (" + architecture + ")", java.util.Optional.empty());
+                ownWizard = true;
+            }
+
+            print(tr("Installing version: {0}", version));
+
+            var wineJson = JSON.parse(this.getAvailableVersions());
+
+            var that = this;
+            wineJson.forEach(function (distribution) {
+                if (distribution.name == subCategory) {
+                    distribution.packages.forEach(function (winePackage) {
+                        if (winePackage.version == version) {
+                            that._installWinePackage(wizard, winePackage, localDirectory);
+                            that._installGecko(wizard, winePackage, localDirectory);
+                            that._installMono(wizard, winePackage, localDirectory);
+                        }
+                    });
+                }
+            });
+
+            // FIXME : Not found case!
+
+            if (ownWizard) {
+                wizard.close();
+            }
+        }
+    },
+    _installWinePackage: function (setupWizard, winePackage, localDirectory) {
+        var tmpFile = createTempFile("tar.gz");
+
+        new Downloader()
+            .wizard(setupWizard)
+            .url(winePackage.url)
+            .checksum(winePackage.sha1sum)
+            .to(tmpFile)
+            .get();
+
+        new Extractor()
+            .wizard(setupWizard)
+            .archive(tmpFile)
+            .to(localDirectory)
+            .extract();
+    },
+    _installGecko: function (setupWizard, winePackage, localDirectory) {
+        var gecko = new Resource()
+            .wizard(setupWizard)
+            .url(winePackage.geckoUrl)
+            .checksum(winePackage.geckoMd5)
+            .algorithm("md5")
+            .name(winePackage.geckoFile)
+            .directory("gecko")
+            .get();
+
+        var wineGeckoDir = localDirectory + "/share/wine/gecko";
+
+        lns(new java.io.File(gecko).getParent(), wineGeckoDir);
+    },
+    _installMono: function (setupWizard, winePackage, localDirectory) {
+        var mono = new Resource()
+            .wizard(setupWizard)
+            .url(winePackage.monoUrl)
+            .checksum(winePackage.monoMd5)
+            .algorithm("md5")
+            .name(winePackage.monoFile)
+            .directory("mono")
+            .get();
+
+        var wineMonoDir = localDirectory + "/share/wine/mono";
+
+        lns(new java.io.File(mono).getParent(), wineMonoDir);
+    },
+    delete: function (subCategory, version) {
+        if (this.isInstalled(subCategory, version)) {
+            remove(this.getLocalDirectory(subCategory, version));
+        }
+    },
+    getAvailableVersions: function () {
+        var versionsFile = this._wineEnginesDirectory + "/availableVersions.json";
+        touch(versionsFile);
+        new Downloader()
+            .wizard(this._wizard)
+            .url(this._wineWebServiceUrl)
+            .to(versionsFile)
+            .onlyIfUpdateAvailable(true)
+            .get();
+        return cat(versionsFile);
+    },
+    getWorkingContainer: function () {
+        return this._workingContainer;
+    },
+    setWorkingContainer: function (workingContainer) {
+        var workingContainerCleaned = workingContainer.replace(this._containerRegex, '');
+        this._workingContainer = workingContainerCleaned;
+    },
+    getContainerDirectory: function (containerName) {
+        var containerNameCleaned = containerName.replace(this._containerRegex, '');
+        return this._winePrefixesDirectory + "/" + containerNameCleaned + "/";
+    },
+    createContainer: function (subCategory, version, containerName) {
+        var parts = subCategory.split("-");
+        var distribution = parts[0];
+        var architecture = parts[2];
+
+        var containerNameCleaned = containerName.replace(this._containerRegex, '');
+        var containerDirectory = this._winePrefixesDirectory + "/" + containerNameCleaned + "/";
+
+        mkdir(containerDirectory);
+
+        var containerConfiguration = this._configFactory.open(containerDirectory + "/phoenicis.cfg");
+
+        containerConfiguration.writeValue("wineVersion", version);
+        containerConfiguration.writeValue("wineDistribution", distribution);
+        containerConfiguration.writeValue("wineArchitecture", architecture);
+    },
+    run: function (executable, args, workingDir, captureOutput, wait, userData) {
+        var subCategory = "";
+        var version = "";
+        var architecture = "";
+        var workingContainerDirectory = this.getContainerDirectory(this.getWorkingContainer());
+        if (fileExists(workingContainerDirectory)) {
+            var containerConfiguration = this._configFactory.open(workingContainerDirectory + "/phoenicis.cfg");
+            var distribution = containerConfiguration.readValue("wineDistribution", "upstream");
+            architecture = containerConfiguration.readValue("wineArchitecture", "x86");
+            var operatingSystem = this._operatingSystemFetcher.fetchCurrentOperationSystem().getWinePackage();
+            subCategory = distribution + "-" + operatingSystem + "-" + architecture;
+            version = containerConfiguration.readValue("wineVersion");
+            this.install(subCategory, version);
+        }
+        else {
+            print("Wine prefix \"" + this.getWorkingContainer() + "\" does not exist!");
+            return "";
+        }
+
+        if (!args) {
+            args = [];
+        }
+
+        var extensionFile = executable.split(".").pop();
+
+        if (extensionFile == "msi") {
+            return this.run("msiexec", ["/i", executable].concat(args), captureOutput);
+        }
+
+        if (extensionFile == "bat") {
+            return this.run("start", ["/Unix", executable].concat(args), captureOutput);
+        }
+
+        // do not run 64bit executable in 32bit prefix
+        if (extensionFile == "exe") {
+            if (architecture == "x86" && this._ExeAnalyser.is64Bits(new java.io.File(executable))) {
+                throw tr("Cannot run 64bit executable in a 32bit Wine prefix.");
+            }
+        }
+
+        this.install(subCategory, version);
+
+        var wineBinary = this.getLocalDirectory(subCategory, version) + "/bin/wine";
+        var StringArray = Java.type('java.lang.String[]');
+        var command = new StringArray(2 + args.length);
+        command[0] = wineBinary;
+        command[1] = executable;
+        java.lang.System.arraycopy(args, 0, command, 2, args.length);
+        var processBuilder = new java.lang.ProcessBuilder(command);
+
+        if (workingDir) {
+            processBuilder.directory(new java.io.File(workingDir));
+        } else {
+            var driveC = workingContainerDirectory + "/drive_c";
+            mkdir(driveC);
+            processBuilder.directory(new java.io.File(driveC));
+        }
+
+        var environment = processBuilder.environment();
+        // disable winemenubuilder (we manage our own shortcuts)
+        environment.put("WINEDLLOVERRIDES", "winemenubuilder.exe=d");
+        environment.put("WINEPREFIX", workingContainerDirectory);
+
+        if (userData.wineDebug) {
+            environment.put("WINEDEBUG", userData.wineDebug);
+        }
+
+        var ldPath = this._ldPath;
+        if (userData.ldPath) {
+            ldPath = userData.ldPath + ldPath;
+        }
+        if (architecture == "amd64") {
+            ldPath = this.getLocalDirectory(subCategory, version) + "/lib64/:" + ldPath
+        } else {
+            ldPath = this.getLocalDirectory(subCategory, version) + "/lib/:" + ldPath
+        }
+        environment.put("LD_LIBRARY_PATH", ldPath);
+
+        if (!captureOutput) {
+            processBuilder.redirectErrorStream(true);
+            processBuilder.redirectOutput(new java.io.File(workingContainerDirectory + "/wine.log"));
+        }
+
+        var process = processBuilder.start();
+
+        if (wait) {
+            process.waitFor();
+            this._wineServer(subCategory, version, "-w");
+        }
+
+        if (captureOutput) {
+            return org.apache.commons.io.IOUtils.toString(process.getInputStream());
+        } else {
+            return "";
+        }
+    },
+    getWizard: function () {
+        return this._wizard;
+    },
+    setWizard: function (wizard) {
+        this._wizard = wizard;
+    }
+};
+
+/* exported Engine */
+var Engine = Java.extend(org.phoenicis.engines.Engine, engineImplementation);
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Engine_Object_script.js.html b/docs/jsdoc/Engines_Wine_Engine_Object_script.js.html index 5af21adc20..81a53db601 100644 --- a/docs/jsdoc/Engines_Wine_Engine_Object_script.js.html +++ b/docs/jsdoc/Engines_Wine_Engine_Object_script.js.html @@ -26,16 +26,18 @@

Source: Engines/Wine/Engine/Object/script.js

-
include(["Utils", "Functions", "filesystem", "files"]);
-include(["Utils", "Functions", "filesystem", "extract"]);
+            
include(["engines", "wine", "engine", "implementation"]);
+include(["utils", "functions", "filesystem", "files"]);
+include(["utils", "functions", "filesystem", "extract"]);
 include(["utils", "functions", "net", "download"]);
 include(["utils", "functions", "net", "resource"]);
 
-LATEST_STABLE_VERSION = "3.0";
-LATEST_DEVELOPMENT_VERSION = "3.4";
-LATEST_STAGING_VERSION = "2.21";
-
-WINE_PREFIX_DIR = "wineprefix"
+/* exported LATEST_STABLE_VERSION */
+var LATEST_STABLE_VERSION = "3.0";
+/* exported LATEST_DEVELOPMENT_VERSION */
+var LATEST_DEVELOPMENT_VERSION = "3.7";
+/* exported LATEST_STAGING_VERSION */
+var LATEST_STAGING_VERSION = "2.21";
 
 
 /**
@@ -43,14 +45,8 @@ 

Source: Engines/Wine/Engine/Object/script.js

* @constructor */ function Wine() { - this._wineWebServiceUrl = Bean("propertyReader").getProperty("webservice.wine.url"); - this._wineEnginesDirectory = Bean("propertyReader").getProperty("application.user.engines") + "/wine"; - this._winePrefixesDirectory = Bean("propertyReader").getProperty("application.user.containers") + "/" + WINE_PREFIX_DIR + "/"; - this._configFactory = Bean("compatibleConfigFileFormatFactory"); + this._implementation = new Engine(); this._OperatingSystemFetcher = Bean("operatingSystemFetcher"); - this._ExeAnalyser = Bean("exeAnalyser"); - this._wineDebug = "-all"; - this._ldPath = Bean("propertyReader").getProperty("application.environment.ld"); } /** @@ -61,11 +57,11 @@

Source: Engines/Wine/Engine/Object/script.js

Wine.prototype.wizard = function (wizard) { // get if (arguments.length == 0) { - return this._wizard; + return this._implementation.getWizard(); } // set - this._wizard = wizard; + this._implementation.setWizard(wizard); return this; }; @@ -74,136 +70,68 @@

Source: Engines/Wine/Engine/Object/script.js

* @returns {String} */ Wine.prototype.winepath = function (path) { - return this.run("winepath", ["-w", path], true); + return this.run("winepath", ["-w", path], this.prefixDirectory(), true, true); } -/** -* -* @param {string} [debug] -* @returns {string|Wine} -*/ -Wine.prototype.debug = function (debug) { - // get - if (arguments.length == 0) { - return this._wineDebug; - } - - // set - this._wineDebug = debug; - return this; -}; - -/** -* -* @param {string} [architecture] -* @returns {string|Wine} -*/ -Wine.prototype.architecture = function (architecture) { - // get - if (arguments.length == 0) { - return this._architecture; - } - - // set - if (this._prefixConfiguration) { - this._prefixConfiguration.writeValue("wineArchitecture", architecture); - } - - this._architecture = architecture; - return this; -}; - -/** -* -* @param {string} [distribution] -* @returns {string|Wine} -*/ -Wine.prototype.distribution = function (distribution) { - // get - if (arguments.length == 0) { - return this._distribution; - } - - // set - if (this._prefixConfiguration) { - this._prefixConfiguration.writeValue("wineDistribution", distribution); - } - - this._distribution = distribution; - return this; -}; - /** * * @param {string} [prefix] +* @param {string} [distribution] +* @param {string} [architecture] +* @param {string} [version] * @returns {string|Wine} */ -Wine.prototype.prefix = function (prefix) { +Wine.prototype.prefix = function (prefix, distribution, architecture, version) { // get if (arguments.length == 0) { - return this._prefix; + return this._implementation.getWorkingContainer(); } - // set - this._prefix = prefix.replace(/[^a-z0-9_\-\ ]/gi, ''); - this.prefixDirectory = this._winePrefixesDirectory + "/" + this._prefix + "/"; - - mkdir(this.prefixDirectory); - - this._prefixConfiguration = this._configFactory.open(this.prefixDirectory + "/phoenicis.cfg"); - - if (!this._version) { - this._version = this._prefixConfiguration.readValue("wineVersion"); - } else { - this._prefixConfiguration.writeValue("wineVersion", this._version); - } - - if (!this._distribution) { - this._distribution = this._prefixConfiguration.readValue("wineDistribution", "upstream"); - } - - this._prefixConfiguration.writeValue("wineDistribution", this._distribution); - - if (!this._architecture) { - this._architecture = this._prefixConfiguration.readValue("wineArchitecture", "x86"); + else if (arguments.length == 1) { + this._implementation.setWorkingContainer(prefix); + return this; } - - this._prefixConfiguration.writeValue("wineArchitecture", this._architecture); - - - return this; -}; - -/** -* -* @param {string} [directory] -* @returns {string|Wine} -*/ -Wine.prototype.workingDirectory = function (directory) { - // get - if (arguments.length == 0) { - return this._directory; + else { + var operatingSystem = this._OperatingSystemFetcher.fetchCurrentOperationSystem().getWinePackage(); + var subCategory = distribution + "-" + operatingSystem + "-" + architecture; + this._implementation.createContainer(subCategory, version, prefix); + this._implementation.setWorkingContainer(prefix); + return this; } - - // set - this._directory = directory; - return this; }; /** -* checks if the Wine version is installed -* @returns {boolean} +* returns prefix directory +* @returns {string} */ -Wine.prototype.installed = function () { - return fileExists(this._fetchLocalDirectory()); +Wine.prototype.prefixDirectory = function () { + return this._implementation.getContainerDirectory(this._implementation.getWorkingContainer()); }; /** * returns the path to the engine binary directory -* @returns {String} +* if no parameters are given, the Wine version of the current prefix is used +* @param {string} [subCategory] Wine sub-category +* @param {string} [version] Wine version +* @returns {string} path to "wine" binary */ -Wine.prototype.binPath = function () { - return this._fetchLocalDirectory() + "/bin/"; +Wine.prototype.binPath = function (subCategory, version) { + if (0 == arguments.length) { + if (fileExists(this.prefixDirectory())) { + var configFactory = Bean("compatibleConfigFileFormatFactory"); + var containerConfiguration = configFactory.open(this.prefixDirectory() + "/phoenicis.cfg"); + var distribution = containerConfiguration.readValue("wineDistribution", "upstream"); + var architecture = containerConfiguration.readValue("wineArchitecture", "x86"); + var operatingSystem = this._OperatingSystemFetcher.fetchCurrentOperationSystem().getWinePackage(); + subCategory = distribution + "-" + operatingSystem + "-" + architecture; + version = containerConfiguration.readValue("wineVersion"); + } + else { + print("Wine prefix \"" + this.prefixDirectory() + "\" does not exist!"); + return ""; + } + } + return this._implementation.getLocalDirectory(subCategory, version) + "/bin/"; }; /** @@ -212,80 +140,38 @@

Source: Engines/Wine/Engine/Object/script.js

* @param args */ Wine.prototype.runInsidePrefix = function (executable, args) { - return this.run(this.prefixDirectory + "/drive_c/" + executable, args); + return this.run(this.prefixDirectory() + "/drive_c/" + executable, args, this.prefixDirectory(), false, false); }; /** * * @param executable * @param {array} [args = []] +* @param {string} [workingDirectory = working container] * @param {boolean} [captureOutput=false] -* @returns {Wine} +* @param {boolean} [wait=false] +* @param {map} [userData=empty] +* @returns {String} output */ -Wine.prototype.run = function (executable, args, captureOutput) { +Wine.prototype.run = function (executable, args, workingDirectory, captureOutput, wait, userData) { if (!args) { args = []; } - - var extensionFile = executable.split(".").pop(); - - if(extensionFile == "msi") { - return this.run("msiexec", ["/i", executable].concat(args), captureOutput); - } - - if(extensionFile == "bat") { - return this.run("start", ["/Unix", executable].concat(args), captureOutput); - } - - // do not run 64bit executable in 32bit prefix - if (extensionFile == "exe") { - if (this._architecture == "x86" && this._ExeAnalyser.is64Bits(new java.io.File(executable))) { - throw tr("Cannot run 64bit executable in a 32bit Wine prefix."); - } + if (!workingDirectory) { + workingDirectory = this._implementation.getContainerDirectory(this._implementation.getWorkingContainer()); } - - this._installVersion(); - - var wineBinary = this._fetchLocalDirectory() + "/bin/wine"; - var processBuilder = new java.lang.ProcessBuilder(Java.to([wineBinary, executable].concat(args), "java.lang.String[]")); - - if (this._directory) { - processBuilder.directory(new java.io.File(this._directory)); - } else { - var driveC = this.prefixDirectory + "/drive_c"; - mkdir(driveC); - processBuilder.directory(new java.io.File(driveC)); + if (!captureOutput) { + captureOutput = false; } - - var environment = processBuilder.environment(); - // disable winemenubuilder (we manage our own shortcuts) - environment.put("WINEDLLOVERRIDES", "winemenubuilder.exe=d"); - environment.put("WINEPREFIX", this.prefixDirectory); - - if (this._wineDebug) { - environment.put("WINEDEBUG", this._wineDebug); + if (!wait) { + wait = false; } - - if (this._architecture == "amd64") { - this._ldPath = this._fetchLocalDirectory() + "/lib64/:" + this._ldPath - } else { - this._ldPath = this._fetchLocalDirectory() + "/lib/:" + this._ldPath + if (!userData) { + userData = []; } - environment.put("LD_LIBRARY_PATH", this._ldPath); - if (!captureOutput) { - processBuilder.redirectErrorStream(true); - processBuilder.redirectOutput(new java.io.File(this.prefixDirectory + "/wine.log")); - } - - this._process = processBuilder.start(); - - if (captureOutput) { - return org.apache.commons.io.IOUtils.toString(this._process.getInputStream()); - } else { - return this; - } -}; + return this._implementation.run(executable, args, workingDirectory, captureOutput, wait, userData); +} /** * uninstall application @@ -293,13 +179,13 @@

Source: Engines/Wine/Engine/Object/script.js

* @returns {Wine} */ Wine.prototype.uninstall = function (application) { - var list = this.run("uninstaller", ["--list"], true); + var list = this.run("uninstaller", ["--list"], this.prefixDirectory(), true, true); var appEscaped = application.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"); var re = new RegExp("(.*)\\|\\|\\|.*" + appEscaped); var uuid = list.match(re); if (uuid) { - this.run("uninstaller", ["--remove", uuid[1]]) - .wait(tr("Please wait while {0} is uninstalled ...", application)); + this._implementation.getWizard.wait(tr("Please wait while {0} is uninstalled ...", application)); + this.run("uninstaller", ["--remove", uuid[1]], this.prefixDirectory(), false, true); } else { print(tr("Could not uninstall {0}!", application)); } @@ -310,7 +196,7 @@

Source: Engines/Wine/Engine/Object/script.js

* runs "wineboot" */ Wine.prototype.create = function () { - this.run("wineboot"); + this.run("wineboot", [], this.prefixDirectory(), false, false); return this; }; @@ -319,7 +205,7 @@

Source: Engines/Wine/Engine/Object/script.js

* @returns {string} name of "Program Files" */ Wine.prototype.programFiles = function () { - var programFilesName = this.run("cmd", ["/c", "echo", "%ProgramFiles%"], true).trim(); + var programFilesName = this.run("cmd", ["/c", "echo", "%ProgramFiles%"], this.prefixDirectory(), true, true).trim(); if (programFilesName == "%ProgramFiles%") { return "Program Files" } else { @@ -327,19 +213,6 @@

Source: Engines/Wine/Engine/Object/script.js

} }; -/** -* -* @param {string} [wait message = "Please wait ..."] -* @returns {Wine} -*/ -Wine.prototype.wait = function (message) { - if (this._wizard) { - this._wizard.wait(typeof message !== 'undefined' ? message : tr("Please wait ...")); - } - - return this._silentWait(); -}; - /** * kill wine server * @returns {Wine} @@ -349,63 +222,6 @@

Source: Engines/Wine/Engine/Object/script.js

return this; }; -/** -* -* @returns available Wine versions -*/ -Wine.prototype.getAvailableVersions = function () { - var versionsFile = this._wineEnginesDirectory + "/availableVersions.json"; - touch(versionsFile); - new Downloader() - .wizard(this._wizard) - .url(this._wineWebServiceUrl) - .to(versionsFile) - .onlyIfUpdateAvailable(true) - .get(); - return cat(versionsFile); -}; - -/** -* install -* @param {string} category -* @param {string} subCategory -* @param {string} version -* @param {json} userData -*/ -Wine.prototype.install = function (category, subCategory, version, userData) { - var parts = subCategory.split("-"); - var distribution = parts[0]; - var architecture = parts[2]; - this.distribution(distribution); - this.architecture(architecture); - this.version(version); - if (!this.installed()) { - var wizard = SetupWizard(InstallationType.ENGINES, "Wine " + version + " " + distribution + " (" + architecture + ")", java.util.Optional.empty()); - this.wizard(wizard); - this._installVersion(); - wizard.close(); - } -}; - -/** -* delete -* @param {string} category -* @param {string} subCategory -* @param {string} version -* @param {json} userData -*/ -Wine.prototype.delete = function (category, subCategory, version, userData) { - var parts = subCategory.split("-"); - var distribution = parts[0]; - var architecture = parts[2]; - this.distribution(distribution); - this.architecture(architecture); - this.version(version); - if (this.installed()) { - remove(this._fetchLocalDirectory()); - } -}; - /** * * @param {string} [architecture = current architecture] @@ -413,7 +229,7 @@

Source: Engines/Wine/Engine/Object/script.js

*/ Wine.prototype.availableDistributions = function (architectureName) { var distributions = []; - var wineJson = JSON.parse(this.getAvailableVersions()); + var wineJson = JSON.parse(this._implementation.getAvailableVersions()); var architecture = architectureName || this._architecture; var architectureRegExp = new RegExp(architecture); wineJson.forEach(function (distribution) { @@ -434,7 +250,7 @@

Source: Engines/Wine/Engine/Object/script.js

Wine.prototype.availableVersions = function (distributionName) { var versions = []; var fullDistributionName = distributionName || this._fetchFullDistributionName(); - var wineJson = JSON.parse(this.getAvailableVersions()); + var wineJson = JSON.parse(this._implementation.getAvailableVersions()); wineJson.forEach(function (distribution) { if (distribution.name == fullDistributionName) { distribution.packages.forEach(function (winePackage) { @@ -447,35 +263,15 @@

Source: Engines/Wine/Engine/Object/script.js

return versions; } -/** -* -* @param {string} [version = LATEST_STABLE_VERSION] -* @returns {string|Wine} -*/ -Wine.prototype.version = function (version) { - // get - if (arguments.length == 0) { - return this._version; - } - - // set - if (this._prefixConfiguration) { - this._prefixConfiguration.writeValue("wineVersion", version); - } - - this._version = version; - return this; -}; - /** * * @returns {string} system32 directory */ Wine.prototype.system32directory = function () { - if (fileExists(this.prefixDirectory + "/drive_c/windows/syswow64")) { - return this.prefixDirectory + "/drive_c/windows/syswow64"; + if (fileExists(this.prefixDirectory() + "/drive_c/windows/syswow64")) { + return this.prefixDirectory() + "/drive_c/windows/syswow64"; } else { - return this.prefixDirectory + "/drive_c/windows/system32"; + return this.prefixDirectory() + "/drive_c/windows/system32"; } }; @@ -484,8 +280,8 @@

Source: Engines/Wine/Engine/Object/script.js

* @returns {string} system64 directory */ Wine.prototype.system64directory = function () { - if (fileExists(this.prefixDirectory + "/drive_c/windows/syswow64")) { - return this.prefixDirectory + "/drive_c/windows/system32"; + if (fileExists(this.prefixDirectory() + "/drive_c/windows/syswow64")) { + return this.prefixDirectory() + "/drive_c/windows/system32"; } throw tr("Prefix seems to be 32bits"); }; @@ -495,504 +291,8 @@

Source: Engines/Wine/Engine/Object/script.js

* @returns {string} font directory */ Wine.prototype.fontDirectory = function () { - return this.prefixDirectory + "/drive_c/windows/Fonts"; -}; - -Wine.prototype._installVersion = function () { - var version = this._version; - var fullDistributionName = this._fetchFullDistributionName(); - var localDirectory = this._fetchLocalDirectory(); - var wizard = this._wizard; - - if (!fileExists(localDirectory)) { - print(tr("Installing version: ", this._version)); - - var wineJson = JSON.parse(this.getAvailableVersions()); - - var that = this; - wineJson.forEach(function (distribution) { - if (distribution.name == fullDistributionName) { - distribution.packages.forEach(function (winePackage) { - if (winePackage.version == version) { - that._installWinePackage(wizard, winePackage, localDirectory); - that._installGecko(wizard, winePackage, localDirectory); - that._installMono(wizard, winePackage, localDirectory); - } - }); - } - }); - - // FIXME : Not found case! - - } -}; - - -Wine.prototype._installWinePackage = function (setupWizard, winePackage, localDirectory) { - var tmpFile = createTempFile("tar.gz"); - - new Downloader() - .wizard(setupWizard) - .url(winePackage.url) - .checksum(winePackage.sha1sum) - .to(tmpFile) - .get(); - - new Extractor() - .wizard(setupWizard) - .archive(tmpFile) - .to(localDirectory) - .extract(); -}; - -Wine.prototype._installGecko = function (setupWizard, winePackage, localDirectory) { - var gecko = new Resource() - .wizard(setupWizard) - .url(winePackage.geckoUrl) - .checksum(winePackage.geckoMd5) - .algorithm("md5") - .name(winePackage.geckoFile) - .directory("gecko") - .get(); - - var wineGeckoDir = localDirectory + "/share/wine/gecko"; - - lns(new java.io.File(gecko).getParent(), wineGeckoDir); -}; - -Wine.prototype._installMono = function (setupWizard, winePackage, localDirectory) { - var mono = new Resource() - .wizard(setupWizard) - .url(winePackage.monoUrl) - .checksum(winePackage.monoMd5) - .algorithm("md5") - .name(winePackage.monoFile) - .directory("mono") - .get(); - - var wineMonoDir = localDirectory + "/share/wine/mono"; - - lns(new java.io.File(mono).getParent(), wineMonoDir); -}; - -Wine.prototype._silentWait = function () { - if (this._process) { - this._process.waitFor(); - } - this._wineServer("-w"); - return this; -}; - -Wine.prototype._fetchFullDistributionName = function () { - var operatingSystem = this._OperatingSystemFetcher.fetchCurrentOperationSystem().getWinePackage(); - return this._distribution + "-" + operatingSystem + "-" + this._architecture; -}; - -Wine.prototype._fetchLocalDirectory = function () { - return this._wineEnginesDirectory + "/" + this._fetchFullDistributionName() + "/" + this._version; -}; - -Wine.prototype._fetchWineServerBinary = function () { - return this._fetchLocalDirectory() + "/bin/wineserver"; -}; - -Wine.prototype._wineServer = function (parameter) { - var processBuilder = new java.lang.ProcessBuilder(Java.to([this._fetchWineServerBinary(), parameter], "java.lang.String[]")); - var environment = processBuilder.environment(); - environment.put("WINEPREFIX", this.prefixDirectory); - processBuilder.inheritIO(); - var wineServerProcess = processBuilder.start(); - wineServerProcess.waitFor(); -}; - -/** -* runs "regsvr32" -* @returns {Wine} -*/ -Wine.prototype.regsvr32 = function () { - var _wine = this; - - this.install = function (dll) { - _wine.run("regsvr32", ["/i", dll])._silentWait(); - return _wine; - }; - - return this; -}; - -/** - * Regedit support - * @param args - * @returns {Wine} - */ -Wine.prototype.regedit = function () { - var _wine = this; - - this.open = function (args) { - _wine.run("regedit", args)._silentWait(); - return _wine; - }; - - this.patch = function (patchContent) { - if (patchContent.getClass().getCanonicalName() == "byte[]") { - patchContent = new java.lang.String(patchContent); - } - var tmpFile = createTempFile("reg"); - writeToFile(tmpFile, patchContent); - _wine.run("regedit", [tmpFile])._silentWait(); - return _wine; - }; - - this.fetchValue = function (keyPath) { - var root = keyPath[0]; - var registryFile; - switch (root) { - case "HKEY_CURRENT_USER": - registryFile = "user.reg"; - break; - case "HKEY_LOCAL_MACHINE": - registryFile = "system.reg"; - break; - default: - throw "Illegal registry root exception"; - } - - keyPath.shift(); - - var registryValue = Bean("registryParser").parseFile(new java.io.File(this.prefixDirectory + "/" + registryFile), root).getChild(keyPath); - - if (registryValue == null) { - return null; - } - - if (registryValue.getText) { - return registryValue.getText(); - } else { - return registryValue; - } - }; - - return this; -}; - -Wine.prototype.registry = Wine.prototype.regedit; - -/** - * sets sound driver - * @param driver (alsa, pulse) - * @returns {Wine} - */ -Wine.prototype.setSoundDriver = function (driver) { - var regeditFileContent = - "REGEDIT4\n" + - "\n" + - "[HKEY_CURRENT_USER\\Software\\Wine\\Drivers]\n" + - "\"Audio\"=\"" + driver + "\"\n"; - this.regedit().patch(regeditFileContent); - return this; -}; - -/** - * sets OpenGL max core version - * @param {number} major - * @param {number} minor - * @returns {Wine} - */ -Wine.prototype.setVersionGL = function (major, minor) { - var regeditFileContent = - "REGEDIT4\n" + - "\n" + - "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]\n" + - "\"MaxVersionGL\"=dword:000"+ major + "000" + minor - this.regedit().patch(regeditFileContent); - return this; -}; - -/** - * enable command stream multi-threading - * @returns {Wine} - */ -Wine.prototype.enableCSMT = function () { - var regeditFileContent = - "REGEDIT4\n" + - "\n" + - "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]\n" + - "\"csmt\"=dword:1" - this.regedit().patch(regeditFileContent); - return this; -}; - -/** - * force the Use of GLSL - * @param {string} mode (enabled or disabled) - * @returns {Wine} - */ -Wine.prototype.UseGLSL = function (mode) { - var regeditFileContent = - "REGEDIT4\n" + - "\n" + - "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]\n" + - "\"UseGLSL\"=\"" + mode + "\"" - this.regedit().patch(regeditFileContent); - return this; -}; - -/** - * force the DirectDrawRenderer - * @param {string} mode (gdi or opengl) - * @returns {Wine} - */ -Wine.prototype.DirectDrawRenderer = function (mode) { - var regeditFileContent = - "REGEDIT4\n" + - "\n" + - "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]\n" + - "\"DirectDrawRenderer\"=\"" + mode + "\"" - this.regedit().patch(regeditFileContent); - return this; -}; - -/** - * sets Virtual Desktop with window resolution - * @param {number} width - * @param {number} height - * @returns {Wine} - */ - -Wine.prototype.setVirtualDesktop = function (width, height) { - var regeditFileContent = - "REGEDIT4\n" + - "\n" + - "[HKEY_CURRENT_USER\\Software\\Wine\\Explorer\\Desktops]\n" + - "\"Default\"=\"" + width + "x" + height + "\"\n" + - "[HKEY_CURRENT_USER\\Software\\Wine\\Explorer]\n" + - "\"Desktop\"=\"" + "Default" + "\"\n"; - this.regedit().patch(regeditFileContent); - return this; -}; - -/** -* -* @param {boolean} [managed] -* @returns {boolean|Wine} -*/ -Wine.prototype.managed = function (managed) { - // get - if (arguments.length == 0) { - return (this.regedit().fetchValue(["HKEY_CURRENT_USER", "Software", "Wine", "X11 Driver", "Managed"]) == "Y"); - } - - // set - var managedYn = managed ? "Y" : "N"; - - var regeditFileContent = - "REGEDIT4\n" + - "\n" + - "[HKEY_CURRENT_USER\\Software\\Wine\\X11 Driver]\n" + - "\"Managed\"=\"" + managedYn + "\"\n"; - this.regedit().patch(regeditFileContent); - return this; -}; - -var SetManagedForApplication = function () { - var that = this; - that._regeditFileContent = - "REGEDIT4\n" + - "\n"; - - that.wine = function(wine) { - that._wine = wine; - return that; - }; - - that.set = function(application, managed) { - var managedYn = managed ? "Y" : "N"; - - that._regeditFileContent += "[HKEY_CURRENT_USER\\Software\\Wine\\AppDefaults\\" + application + "\\X11 Driver]\n"; - that._regeditFileContent += "\"Managed\"=\"" + managedYn + "\"\n"; - - return that; - }; - - that.do = function() { - that._wine.regedit().patch(that._regeditFileContent); - return that._wine; - } -}; - -Wine.prototype.setManagedForApplication = function() { - return new SetManagedForApplication() - .wine(this) -}; - -var OverrideDLL = function () { - var that = this; - that._regeditFileContent = - "REGEDIT4\n" + - "\n" + - "[HKEY_CURRENT_USER\\Software\\Wine\\DllOverrides]\n"; - - that.wine = function (wine) { - that._wine = wine; - return that; - }; - - that.set = function (mode, libraries) { - libraries.forEach(function (library) { - // make sure library does not end with ".dll" - library = library.replace(".dll", ""); - that._regeditFileContent += "\"*" + library + "\"=\"" + mode + "\"\n"; - }); - - return that; - }; - - that.do = function () { - that._wine.regedit().patch(that._regeditFileContent); - return that._wine; - } -}; - -Wine.prototype.overrideDLL = function () { - return new OverrideDLL() - .wine(this) -}; - -/** - * default windows version - * @param {string} [version (win7, vista, win2003, winxp, win2k, winnt, winme, win98, win95, win31)] - * @returns {string|Wine} - */ -Wine.prototype.windowsVersion = function (version, servicePack) { - var that = this; - // get - if (arguments.length == 0) { - return this.regedit().fetchValue(["HKEY_CURRENT_USER", "Software", "Wine", "Version"]); - } - - // set - var regeditFileContent = - "REGEDIT4\n" + - "\n" + - "[HKEY_CURRENT_USER\\Software\\Wine]\n" + - "\"Version\"=\"" + version + "\"\n"; - - if(servicePack) { - var servicePackNumber = servicePack.replace("sp", ""); - that._regeditFileContent += "[HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion]"; - that._regeditFileContent += "\"CSDVersion\"=\"Service Pack "+ servicePackNumber +"\""; - that._regeditFileContent += "[HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Windows]"; - that._regeditFileContent += "\"CSDVersion\"=dword:00000"+servicePackNumber+"00"; - } - - this.regedit().patch(regeditFileContent); - return this; -}; - -/** - * use native application for a certain file extension - * @param {string} [file extension (pdf, txt, rtf)] - * @returns {string|Wine} - */ -Wine.prototype.nativeApplication = function (extension) { - // FIXME: get - if (arguments.length == 0) { - return this.regedit().fetchValue(["HKEY_CLASSES_ROOT", "." + extension]); - } - - // set - var mimetype = null; - switch (extension) { - case "pdf": - mimetype = "application/pdf"; - break; - case "txt": - mimetype = "application/plain"; - break; - case "rtf": - mimetype = "application/rtf"; - break; - default: - throw tr("Could not determine mimetype for file extension \"{0}\"", extension); - } - var regeditFileContent = - "REGEDIT4\n" + - "\n" + - "[HKEY_CLASSES_ROOT\\." + extension + "]\n" + - "@=\"" + extension + "file\"\n" + - "\"Content Type\"=\"" + mimetype + "\"\n" + - "[HKEY_CLASSES_ROOT\\" + extension + "file\\Shell\\Open\\command]\n" + - "@=\"winebrowser \"%1\"\""; - this.regedit().patch(regeditFileContent); - return this; -}; - -var SetOsForApplication = function () { - var that = this; - that._regeditFileContent = - "REGEDIT4\n" + - "\n"; - - that.wine = function (wine) { - that._wine = wine; - return that; - }; - - that.set = function (application, os) { - that._regeditFileContent += "[HKEY_CURRENT_USER\\Software\\Wine\\AppDefaults\\" + application + "]\n"; - that._regeditFileContent += "\"Version\"=\"" + os + "\"\n"; - - return that; - }; - - that.do = function () { - that._wine.regedit().patch(that._regeditFileContent); - return that._wine; - } -}; - -Wine.prototype.setOsForApplication = function () { - return new SetOsForApplication() - .wine(this) -}; - -var RegisterFont = function () { - var that = this; - that._regeditFileContentNT = - "REGEDIT4\n" + - "\n" + - "[HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Fonts]\n"; - - that._regeditFileContent = - "REGEDIT4\n" + - "\n" + - "[HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Fonts]\n"; - - that.wine = function (wine) { - that._wine = wine; - return that; - }; - - that.set = function (font, file) { - that._regeditFileContentNT += "\"*" + font + "\"=\"" + file + "\"\n"; - that._regeditFileContent += "\"*" + font + "\"=\"" + file + "\"\n"; - - return that; - }; - - that.do = function () { - that._wine.regedit().patch(that._regeditFileContentNT); - that._wine.regedit().patch(that._regeditFileContent); - return that._wine; - } -}; - -Wine.prototype.registerFont = function () { - return new RegisterFont() - .wine(this) -}; - -
+ return this.prefixDirectory() + "/drive_c/windows/Fonts"; +};
@@ -1002,7 +302,7 @@

Source: Engines/Wine/Engine/Object/script.js


diff --git a/docs/jsdoc/Engines_Wine_Plugins_DirectDraw renderer_script.js.html b/docs/jsdoc/Engines_Wine_Plugins_DirectDraw renderer_script.js.html new file mode 100644 index 0000000000..d6f1372fcc --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Plugins_DirectDraw renderer_script.js.html @@ -0,0 +1,66 @@ + + + + + JSDoc: Source: Engines/Wine/Plugins/DirectDraw renderer/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Plugins/DirectDraw renderer/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+
+/**
+ * force the DirectDrawRenderer
+ * @param {string} mode (gdi or opengl)
+ * @returns {Wine} Wine object
+ */
+Wine.prototype.DirectDrawRenderer = function (mode) {
+    var regeditFileContent =
+        "REGEDIT4\n" +
+        "\n" +
+        "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]\n" +
+        "\"DirectDrawRenderer\"=\"" + mode + "\""
+    this.regedit().patch(regeditFileContent);
+    return this;
+};
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Plugins_GLSL_script.js.html b/docs/jsdoc/Engines_Wine_Plugins_GLSL_script.js.html new file mode 100644 index 0000000000..84fc1c7258 --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Plugins_GLSL_script.js.html @@ -0,0 +1,67 @@ + + + + + JSDoc: Source: Engines/Wine/Plugins/GLSL/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Plugins/GLSL/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+include(["engines", "wine", "plugins", "regedit"]);
+
+/**
+ * force the Use of GLSL
+ * @param {string} mode (enabled or disabled)
+ * @returns {Wine} Wine object
+ */
+Wine.prototype.UseGLSL = function (mode) {
+    var regeditFileContent =
+        "REGEDIT4\n" +
+        "\n" +
+        "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]\n" +
+        "\"UseGLSL\"=\"" + mode + "\""
+    this.regedit().patch(regeditFileContent);
+    return this;
+};
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Plugins_OpenGL version_script.js.html b/docs/jsdoc/Engines_Wine_Plugins_OpenGL version_script.js.html new file mode 100644 index 0000000000..efd01e86e9 --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Plugins_OpenGL version_script.js.html @@ -0,0 +1,68 @@ + + + + + JSDoc: Source: Engines/Wine/Plugins/OpenGL version/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Plugins/OpenGL version/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+include(["engines", "wine", "plugins", "regedit"]);
+
+/**
+ * sets OpenGL max core version
+ * @param {number} major major version
+ * @param {number} minor minor version
+ * @returns {Wine} Wine object
+ */
+Wine.prototype.setVersionGL = function (major, minor) {
+    var regeditFileContent =
+        "REGEDIT4\n" +
+        "\n" +
+        "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]\n" +
+        "\"MaxVersionGL\"=dword:000"+ major + "000" + minor
+    this.regedit().patch(regeditFileContent);
+    return this;
+};
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Plugins_Windows version_script.js.html b/docs/jsdoc/Engines_Wine_Plugins_Windows version_script.js.html new file mode 100644 index 0000000000..3d62ce669e --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Plugins_Windows version_script.js.html @@ -0,0 +1,113 @@ + + + + + JSDoc: Source: Engines/Wine/Plugins/Windows version/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Plugins/Windows version/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+include(["engines", "wine", "plugins", "regedit"]);
+
+/**
+ * default windows version
+ * @param {string} version (win7, vista, win2003, winxp, win2k, winnt, winme, win98, win95, win31)
+ * @param {string} [servicePack] e.g. sp3
+ * @returns {string|Wine} get: Windows version, set: Wine object
+ */
+Wine.prototype.windowsVersion = function (version, servicePack) {
+    var that = this;
+    // get
+    if (arguments.length == 0) {
+        return this.regedit().fetchValue(["HKEY_CURRENT_USER", "Software", "Wine", "Version"]);
+    }
+
+    // set
+    var regeditFileContent =
+        "REGEDIT4\n" +
+        "\n" +
+        "[HKEY_CURRENT_USER\\Software\\Wine]\n" +
+        "\"Version\"=\"" + version + "\"\n";
+
+    if (servicePack) {
+        var servicePackNumber = servicePack.replace("sp", "");
+        that._regeditFileContent += "[HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion]";
+        that._regeditFileContent += "\"CSDVersion\"=\"Service Pack "+ servicePackNumber +"\"";
+        that._regeditFileContent += "[HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Windows]";
+        that._regeditFileContent += "\"CSDVersion\"=dword:00000"+servicePackNumber+"00";
+    }
+
+    this.regedit().patch(regeditFileContent);
+    return this;
+};
+
+var SetOsForApplication = function () {
+    var that = this;
+    that._regeditFileContent =
+        "REGEDIT4\n" +
+        "\n";
+
+    that.wine = function (wine) {
+        that._wine = wine;
+        return that;
+    };
+
+    that.set = function (application, os) {
+        that._regeditFileContent += "[HKEY_CURRENT_USER\\Software\\Wine\\AppDefaults\\" + application + "]\n";
+        that._regeditFileContent += "\"Version\"=\"" + os + "\"\n";
+
+        return that;
+    };
+
+    that.do =  function () {
+        that._wine.regedit().patch(that._regeditFileContent);
+        return that._wine;
+    }
+};
+
+Wine.prototype.setOsForApplication = function () {
+    return new SetOsForApplication()
+        .wine(this)
+};
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Plugins_csmt_script.js.html b/docs/jsdoc/Engines_Wine_Plugins_csmt_script.js.html new file mode 100644 index 0000000000..cf5eff2600 --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Plugins_csmt_script.js.html @@ -0,0 +1,66 @@ + + + + + JSDoc: Source: Engines/Wine/Plugins/csmt/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Plugins/csmt/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+include(["engines", "wine", "plugins", "regedit"]);
+
+/**
+ * enable command stream multi-threading
+ * @returns {Wine} Wine object
+ */
+Wine.prototype.enableCSMT = function () {
+    var regeditFileContent =
+        "REGEDIT4\n" +
+        "\n" +
+        "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]\n" +
+        "\"csmt\"=dword:1"
+    this.regedit().patch(regeditFileContent);
+    return this;
+};
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Plugins_managed_script.js.html b/docs/jsdoc/Engines_Wine_Plugins_managed_script.js.html new file mode 100644 index 0000000000..121b9a9bf5 --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Plugins_managed_script.js.html @@ -0,0 +1,106 @@ + + + + + JSDoc: Source: Engines/Wine/Plugins/managed/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Plugins/managed/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+include(["engines", "wine", "plugins", "regedit"]);
+
+/**
+* gets/sets managed state
+* @param {boolean} [managed] true if it shall be managed
+* @returns {boolean|Wine} get: if is managed, set: Wine object
+*/
+Wine.prototype.managed = function (managed) {
+    // get
+    if (arguments.length == 0) {
+        return (this.regedit().fetchValue(["HKEY_CURRENT_USER", "Software", "Wine", "X11 Driver", "Managed"]) == "Y");
+    }
+
+    // set
+    var managedYn = managed ? "Y" : "N";
+
+    var regeditFileContent =
+        "REGEDIT4\n" +
+        "\n" +
+        "[HKEY_CURRENT_USER\\Software\\Wine\\X11 Driver]\n" +
+        "\"Managed\"=\"" + managedYn + "\"\n";
+    this.regedit().patch(regeditFileContent);
+    return this;
+};
+
+var SetManagedForApplication = function () {
+    var that = this;
+    that._regeditFileContent =
+        "REGEDIT4\n" +
+        "\n";
+
+    that.wine = function (wine) {
+        that._wine = wine;
+        return that;
+    };
+
+    that.set = function (application, managed) {
+        var managedYn = managed ? "Y" : "N";
+
+        that._regeditFileContent += "[HKEY_CURRENT_USER\\Software\\Wine\\AppDefaults\\" + application + "\\X11 Driver]\n";
+        that._regeditFileContent += "\"Managed\"=\"" + managedYn + "\"\n";
+
+        return that;
+    };
+
+    that.do =  function () {
+        that._wine.regedit().patch(that._regeditFileContent);
+        return that._wine;
+    }
+};
+
+Wine.prototype.setManagedForApplication = function () {
+    return new SetManagedForApplication()
+        .wine(this)
+};
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Plugins_native application_script.js.html b/docs/jsdoc/Engines_Wine_Plugins_native application_script.js.html new file mode 100644 index 0000000000..00b9f4f2cc --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Plugins_native application_script.js.html @@ -0,0 +1,90 @@ + + + + + JSDoc: Source: Engines/Wine/Plugins/native application/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Plugins/native application/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+include(["engines", "wine", "plugins", "regedit"]);
+
+/**
+ * use native application for a certain file extension
+ * @param {string} [extension] file extension (pdf, txt, rtf)
+ * @returns {string|Wine} get: native application, set: Wine object
+ */
+Wine.prototype.nativeApplication = function (extension) {
+    // FIXME: get
+    if (arguments.length == 0) {
+        return this.regedit().fetchValue(["HKEY_CLASSES_ROOT", "." + extension]);
+    }
+
+    // set
+    var mimetype = null;
+    switch (extension) {
+        case "pdf":
+            mimetype = "application/pdf";
+            break;
+        case "txt":
+            mimetype = "application/plain";
+            break;
+        case "rtf":
+            mimetype = "application/rtf";
+            break;
+        default:
+            throw tr("Could not determine mimetype for file extension \"{0}\"", extension);
+    }
+    var regeditFileContent =
+        "REGEDIT4\n" +
+        "\n" +
+        "[HKEY_CLASSES_ROOT\\." + extension + "]\n" +
+        "@=\"" + extension + "file\"\n" +
+        "\"Content Type\"=\"" + mimetype + "\"\n" +
+        "[HKEY_CLASSES_ROOT\\" + extension + "file\\Shell\\Open\\command]\n" +
+        "@=\"winebrowser \"%1\"\"";
+    this.regedit().patch(regeditFileContent);
+    return this;
+};
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Plugins_regedit_script.js.html b/docs/jsdoc/Engines_Wine_Plugins_regedit_script.js.html new file mode 100644 index 0000000000..0f5b3a4749 --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Plugins_regedit_script.js.html @@ -0,0 +1,117 @@ + + + + + JSDoc: Source: Engines/Wine/Plugins/regedit/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Plugins/regedit/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+
+/**
+ * Regedit support
+ * @returns {Wine} Wine object
+ */
+Wine.prototype.regedit = function () {
+    var _wine = this;
+
+    this.open = function (args) {
+        _wine.run("regedit", [args], this.prefixDirectory(), false, true);
+        return _wine;
+    };
+
+    this.patch = function (patchContent) {
+        if (patchContent.getClass().getCanonicalName() == "byte[]") {
+            patchContent = new java.lang.String(patchContent);
+        }
+        var tmpFile = createTempFile("reg");
+        writeToFile(tmpFile, patchContent);
+        _wine.run("regedit", [tmpFile], this.prefixDirectory(), false, true);
+        return _wine;
+    };
+
+    this.deleteKey = function (keyPath) {
+        _wine.run("reg", ["delete", keyPath, "/f"], this.prefixDirectory(), false, true);
+        return _wine;
+    };
+
+    this.deleteValue = function (keyPath, value) {
+        _wine.run("reg", ["delete", keyPath, "/v", value, "/f"], this.prefixDirectory(), false, true);
+        return _wine;
+    };
+
+    this.fetchValue = function (keyPath) {
+        var root = keyPath[0];
+        var registryFile;
+        switch (root) {
+            case "HKEY_CURRENT_USER":
+                registryFile = "user.reg";
+                break;
+            case "HKEY_LOCAL_MACHINE":
+                registryFile = "system.reg";
+                break;
+            default:
+                throw "Illegal registry root exception";
+        }
+
+        keyPath.shift();
+
+        var registryValue = Bean("registryParser").parseFile(new java.io.File(this.prefixDirectory() + "/" + registryFile), root).getChild(keyPath);
+
+        if (registryValue == null) {
+            return null;
+        }
+
+        if (registryValue.getText) {
+            return registryValue.getText();
+        } else {
+            return registryValue;
+        }
+    };
+
+    return this;
+};
+
+Wine.prototype.registry = Wine.prototype.regedit;
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Plugins_regsvr32_script.js.html b/docs/jsdoc/Engines_Wine_Plugins_regsvr32_script.js.html new file mode 100644 index 0000000000..3d035ac3f9 --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Plugins_regsvr32_script.js.html @@ -0,0 +1,66 @@ + + + + + JSDoc: Source: Engines/Wine/Plugins/regsvr32/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Plugins/regsvr32/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+
+/**
+* runs "regsvr32"
+* @returns {Wine} Wine object
+*/
+Wine.prototype.regsvr32 = function () {
+    var _wine = this;
+
+    this.install = function (dll) {
+        _wine.run("regsvr32", ["/i", dll], this.prefixDirectory(), false, true);
+        return _wine;
+    };
+
+    return this;
+};
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Plugins_sound driver_script.js.html b/docs/jsdoc/Engines_Wine_Plugins_sound driver_script.js.html new file mode 100644 index 0000000000..face40c545 --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Plugins_sound driver_script.js.html @@ -0,0 +1,67 @@ + + + + + JSDoc: Source: Engines/Wine/Plugins/sound driver/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Plugins/sound driver/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+include(["engines", "wine", "plugins", "regedit"]);
+
+/**
+ * sets sound driver
+ * @param {string} driver (alsa, pulse)
+ * @returns {Wine} Wine object
+ */
+Wine.prototype.setSoundDriver = function (driver) {
+    var regeditFileContent =
+        "REGEDIT4\n" +
+        "\n" +
+        "[HKEY_CURRENT_USER\\Software\\Wine\\Drivers]\n" +
+        "\"Audio\"=\"" + driver + "\"\n";
+    this.regedit().patch(regeditFileContent);
+    return this;
+};
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Plugins_virtual desktop_script.js.html b/docs/jsdoc/Engines_Wine_Plugins_virtual desktop_script.js.html new file mode 100644 index 0000000000..3a9874ef39 --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Plugins_virtual desktop_script.js.html @@ -0,0 +1,69 @@ + + + + + JSDoc: Source: Engines/Wine/Plugins/virtual desktop/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Plugins/virtual desktop/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+
+/**
+ * sets Virtual Desktop with window resolution
+ * @param {number} width width of virtual desktop (in px)
+ * @param {number} height height of virtual desktop (in px)
+ * @returns {Wine} Wine object
+ */
+Wine.prototype.setVirtualDesktop = function (width, height) {
+    var regeditFileContent =
+        "REGEDIT4\n" +
+        "\n" +
+        "[HKEY_CURRENT_USER\\Software\\Wine\\Explorer\\Desktops]\n" +
+        "\"Default\"=\"" + width + "x" + height + "\"\n" +
+        "[HKEY_CURRENT_USER\\Software\\Wine\\Explorer]\n" +
+        "\"Desktop\"=\"" + "Default" + "\"\n";
+    this.regedit().patch(regeditFileContent);
+    return this;
+};
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_QuickScript_Quick Script_script.js.html b/docs/jsdoc/Engines_Wine_QuickScript_Quick Script_script.js.html index 1b532e4580..112cba301b 100644 --- a/docs/jsdoc/Engines_Wine_QuickScript_Quick Script_script.js.html +++ b/docs/jsdoc/Engines_Wine_QuickScript_Quick Script_script.js.html @@ -36,8 +36,8 @@

Source: Engines/Wine/QuickScript/Quick Script/script.jsSource: Engines/Wine/QuickScript/Quick Script/script.jsSource: Engines/Wine/QuickScript/Quick Script/script.jsSource: Engines/Wine/QuickScript/Quick Script/script.jsSource: Engines/Wine/QuickScript/Quick Script/script.jsSource: Engines/Wine/QuickScript/Quick Script/script.jsSource: Engines/Wine/QuickScript/Quick Script/script.jsSource: Engines/Wine/QuickScript/Quick Script/script.js
diff --git a/docs/jsdoc/Engines_Wine_Settings_DirectDraw renderer_script.js.html b/docs/jsdoc/Engines_Wine_Settings_DirectDraw renderer_script.js.html new file mode 100644 index 0000000000..11e130a879 --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Settings_DirectDraw renderer_script.js.html @@ -0,0 +1,99 @@ + + + + + JSDoc: Source: Engines/Wine/Settings/DirectDraw renderer/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Settings/DirectDraw renderer/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+include(["engines", "wine", "plugins", "regedit"]);
+
+/**
+ * setting to set the DirectDraw renderer
+*/
+var settingImplementation = {
+    _options: [tr("Default"), tr("GDI"), tr("OpenGL")],
+    // values which are written into the registry, do not translate!
+    _registryValues: ["", "gdi", "opengl"],
+    getText: function () {
+        return tr("DirectDraw renderer");
+    },
+    getOptions: function () {
+        return this._options;
+    },
+    getCurrentOption: function (container) {
+        var currentValue = new Wine()
+            .prefix(container)
+            .regedit()
+            .fetchValue(["HKEY_CURRENT_USER", "Software", "Wine", "Direct3D", "DirectDrawRenderer"]);
+        // find matching option (use default if not found)
+        var index = Math.max(this._registryValues.indexOf(currentValue), 0);
+        return this._options[index];
+    },
+    setOption: function (container, optionIndex) {
+        if (0 == optionIndex) {
+            new Wine()
+                .prefix(container)
+                .regedit()
+                .deleteValue("HKEY_CURRENT_USER\\Software\\Wine\\Direct3D", "DirectDrawRenderer");
+        }
+        else {
+            var regeditFileContent =
+            "REGEDIT4\n" +
+            "\n" +
+            "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]\n" +
+            "\"DirectDrawRenderer\"=\"" + this._registryValues[optionIndex] + "\"\n";
+            new Wine()
+                .prefix(container)
+                .regedit()
+                .patch(regeditFileContent);
+        }
+    }
+};
+
+/* exported Setting */
+var Setting = Java.extend(org.phoenicis.engines.EngineSetting, settingImplementation);
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Settings_GLSL_script.js.html b/docs/jsdoc/Engines_Wine_Settings_GLSL_script.js.html new file mode 100644 index 0000000000..93bd26a871 --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Settings_GLSL_script.js.html @@ -0,0 +1,99 @@ + + + + + JSDoc: Source: Engines/Wine/Settings/GLSL/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Settings/GLSL/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+include(["engines", "wine", "plugins", "regedit"]);
+
+/**
+ * setting to enable/disable GLSL
+*/
+var settingImplementation = {
+    _options: [tr("Default"), tr("Disabled"), tr("Enabled")],
+    // values which are written into the registry, do not translate!
+    _registryValues: ["", "disabled", "enabled"],
+    getText: function () {
+        return tr("GLSL support");
+    },
+    getOptions: function () {
+        return this._options;
+    },
+    getCurrentOption: function (container) {
+        var currentValue = new Wine()
+            .prefix(container)
+            .regedit()
+            .fetchValue(["HKEY_CURRENT_USER", "Software", "Wine", "Direct3D", "UseGLSL"]);
+        // find matching option (use default if not found)
+        var index = Math.max(this._registryValues.indexOf(currentValue), 0);
+        return this._options[index];
+    },
+    setOption: function (container, optionIndex) {
+        if (0 == optionIndex) {
+            new Wine()
+                .prefix(container)
+                .regedit()
+                .deleteValue("HKEY_CURRENT_USER\\Software\\Wine\\Direct3D", "UseGLSL");
+        }
+        else {
+            var regeditFileContent =
+                "REGEDIT4\n" +
+                "\n" +
+                "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]\n" +
+                "\"UseGLSL\"=\"" + this._registryValues[optionIndex] + "\"\n";
+            new Wine()
+                .prefix(container)
+                .regedit()
+                .patch(regeditFileContent);
+        }
+    }
+};
+
+/* exported Setting */
+var Setting = Java.extend(org.phoenicis.engines.EngineSetting, settingImplementation);
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Settings_always offscreen_script.js.html b/docs/jsdoc/Engines_Wine_Settings_always offscreen_script.js.html new file mode 100644 index 0000000000..033aed659b --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Settings_always offscreen_script.js.html @@ -0,0 +1,99 @@ + + + + + JSDoc: Source: Engines/Wine/Settings/always offscreen/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Settings/always offscreen/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+include(["engines", "wine", "plugins", "regedit"]);
+
+/**
+ * setting to set always offscreen
+*/
+var settingImplementation = {
+    _options: [tr("Default"), tr("Disabled"), tr("Enabled")],
+    // values which are written into the registry, do not translate!
+    _registryValues: ["", "disabled", "enabled"],
+    getText: function () {
+        return tr("Always offscreen");
+    },
+    getOptions: function () {
+        return this._options;
+    },
+    getCurrentOption: function (container) {
+        var currentValue = new Wine()
+            .prefix(container)
+            .regedit()
+            .fetchValue(["HKEY_CURRENT_USER", "Software", "Wine", "Direct3D", "AlwaysOffscreen"]);
+        // find matching option (use default if not found)
+        var index = Math.max(this._registryValues.indexOf(currentValue), 0);
+        return this._options[index];
+    },
+    setOption: function (container, optionIndex) {
+        if (0 == optionIndex) {
+            new Wine()
+                .prefix(container)
+                .regedit()
+                .deleteValue("HKEY_CURRENT_USER\\Software\\Wine\\Direct3D", "AlwaysOffscreen");
+        }
+        else {
+            var regeditFileContent =
+            "REGEDIT4\n" +
+            "\n" +
+            "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]\n" +
+            "\"AlwaysOffscreen\"=\"" + this._registryValues[optionIndex] + "\"\n";
+            new Wine()
+                .prefix(container)
+                .regedit()
+                .patch(regeditFileContent);
+        }
+    }
+};
+
+/* exported Setting */
+var Setting = Java.extend(org.phoenicis.engines.EngineSetting, settingImplementation);
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Settings_mouse warp override_script.js.html b/docs/jsdoc/Engines_Wine_Settings_mouse warp override_script.js.html new file mode 100644 index 0000000000..5e3890ae0e --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Settings_mouse warp override_script.js.html @@ -0,0 +1,99 @@ + + + + + JSDoc: Source: Engines/Wine/Settings/mouse warp override/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Settings/mouse warp override/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+include(["engines", "wine", "plugins", "regedit"]);
+
+/**
+ * setting to configure mouse warp override
+*/
+var settingImplementation = {
+    _options: [tr("Default"), tr("Disabled"), tr("Enabled"), tr("Force")],
+    // values which are written into the registry, do not translate!
+    _registryValues: ["", "disabled", "enabled", "force"],
+    getText: function () {
+        return tr("Mouse warp override");
+    },
+    getOptions: function () {
+        return this._options;
+    },
+    getCurrentOption: function (container) {
+        var currentValue = new Wine()
+            .prefix(container)
+            .regedit()
+            .fetchValue(["HKEY_CURRENT_USER", "Software", "Wine", "DirectInput", "MouseWarpOverride"]);
+        // find matching option (use default if not found)
+        var index = Math.max(this._registryValues.indexOf(currentValue), 0);
+        return this._options[index];
+    },
+    setOption: function (container, optionIndex) {
+        if (0 == optionIndex) {
+            new Wine()
+                .prefix(container)
+                .regedit()
+                .deleteValue("HKEY_CURRENT_USER\\Software\\Wine\\DirectInput", "MouseWarpOverride");
+        }
+        else {
+            var regeditFileContent =
+            "REGEDIT4\n" +
+            "\n" +
+            "[HKEY_CURRENT_USER\\Software\\Wine\\DirectInput]\n" +
+            "\"MouseWarpOverride\"=\"" + this._registryValues[optionIndex] + "\"\n";
+            new Wine()
+                .prefix(container)
+                .regedit()
+                .patch(regeditFileContent);
+        }
+    }
+};
+
+/* exported Setting */
+var Setting = Java.extend(org.phoenicis.engines.EngineSetting, settingImplementation);
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Settings_multisampling_script.js.html b/docs/jsdoc/Engines_Wine_Settings_multisampling_script.js.html new file mode 100644 index 0000000000..413cee9b3b --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Settings_multisampling_script.js.html @@ -0,0 +1,99 @@ + + + + + JSDoc: Source: Engines/Wine/Settings/multisampling/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Settings/multisampling/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+include(["engines", "wine", "plugins", "regedit"]);
+
+/**
+ * setting to configure multisampling
+*/
+var settingImplementation = {
+    _options: [tr("Default"), tr("Disabled"), tr("Enabled")],
+    // values which are written into the registry, do not translate!
+    _registryValues: ["", "disabled", "enabled"],
+    getText: function () {
+        return tr("Multisampling");
+    },
+    getOptions: function () {
+        return this._options;
+    },
+    getCurrentOption: function (container) {
+        var currentValue = new Wine()
+            .prefix(container)
+            .regedit()
+            .fetchValue(["HKEY_CURRENT_USER", "Software", "Wine", "Direct3D", "Multisampling"]);
+        // find matching option (use default if not found)
+        var index = Math.max(this._registryValues.indexOf(currentValue), 0);
+        return this._options[index];
+    },
+    setOption: function (container, optionIndex) {
+        if (0 == optionIndex) {
+            new Wine()
+                .prefix(container)
+                .regedit()
+                .deleteValue("HKEY_CURRENT_USER\\Software\\Wine\\Direct3D", "Multisampling");
+        }
+        else {
+            var regeditFileContent =
+            "REGEDIT4\n" +
+            "\n" +
+            "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]\n" +
+            "\"Multisampling\"=\"" + this._registryValues[optionIndex] + "\"\n";
+            new Wine()
+                .prefix(container)
+                .regedit()
+                .patch(regeditFileContent);
+        }
+    }
+};
+
+/* exported Setting */
+var Setting = Java.extend(org.phoenicis.engines.EngineSetting, settingImplementation);
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Settings_offscreen rendering mode_script.js.html b/docs/jsdoc/Engines_Wine_Settings_offscreen rendering mode_script.js.html new file mode 100644 index 0000000000..3f994d8611 --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Settings_offscreen rendering mode_script.js.html @@ -0,0 +1,99 @@ + + + + + JSDoc: Source: Engines/Wine/Settings/offscreen rendering mode/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Settings/offscreen rendering mode/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+include(["engines", "wine", "plugins", "regedit"]);
+
+/**
+ * setting to set the offscreen rendering mode
+*/
+var settingImplementation = {
+    _options: [tr("Default"), tr("FBO"), tr("Backbuffer")],
+    // values which are written into the registry, do not translate!
+    _registryValues: ["", "fbo", "backbuffer"],
+    getText: function () {
+        return tr("Offscreen rendering mode");
+    },
+    getOptions: function () {
+        return this._options;
+    },
+    getCurrentOption: function (container) {
+        var currentValue = new Wine()
+            .prefix(container)
+            .regedit()
+            .fetchValue(["HKEY_CURRENT_USER", "Software", "Wine", "Direct3D", "OffscreenRenderingMode"]);
+        // find matching option (use default if not found)
+        var index = Math.max(this._registryValues.indexOf(currentValue), 0);
+        return this._options[index];
+    },
+    setOption: function (container, optionIndex) {
+        if (0 == optionIndex) {
+            new Wine()
+                .prefix(container)
+                .regedit()
+                .deleteValue("HKEY_CURRENT_USER\\Software\\Wine\\Direct3D", "OffscreenRenderingMode");
+        }
+        else {
+            var regeditFileContent =
+            "REGEDIT4\n" +
+            "\n" +
+            "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]\n" +
+            "\"OffscreenRenderingMode\"=\"" + this._registryValues[optionIndex] + "\"\n";
+            new Wine()
+                .prefix(container)
+                .regedit()
+                .patch(regeditFileContent);
+        }
+    }
+};
+
+/* exported Setting */
+var Setting = Java.extend(org.phoenicis.engines.EngineSetting, settingImplementation);
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Settings_render target lock mode_script.js.html b/docs/jsdoc/Engines_Wine_Settings_render target lock mode_script.js.html new file mode 100644 index 0000000000..1ac127c480 --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Settings_render target lock mode_script.js.html @@ -0,0 +1,99 @@ + + + + + JSDoc: Source: Engines/Wine/Settings/render target lock mode/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Settings/render target lock mode/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+include(["engines", "wine", "plugins", "regedit"]);
+
+/**
+ * setting to set the render target lock mode
+*/
+var settingImplementation = {
+    _options: [tr("Default"), tr("Disabled"), tr("readdraw"), tr("readtext")],
+    // values which are written into the registry, do not translate!
+    _registryValues: ["", "disabled", "readdraw", "readtext"],
+    getText: function () {
+        return tr("Render target lock mode");
+    },
+    getOptions: function () {
+        return this._options;
+    },
+    getCurrentOption: function (container) {
+        var currentValue = new Wine()
+            .prefix(container)
+            .regedit()
+            .fetchValue(["HKEY_CURRENT_USER", "Software", "Wine", "Direct3D", "RenderTargetModeLock"]);
+        // find matching option (use default if not found)
+        var index = Math.max(this._registryValues.indexOf(currentValue), 0);
+        return this._options[index];
+    },
+    setOption: function (container, optionIndex) {
+        if (0 == optionIndex) {
+            new Wine()
+                .prefix(container)
+                .regedit()
+                .deleteValue("HKEY_CURRENT_USER\\Software\\Wine\\Direct3D", "RenderTargetModeLock");
+        }
+        else {
+            var regeditFileContent =
+            "REGEDIT4\n" +
+            "\n" +
+            "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]\n" +
+            "\"RenderTargetModeLock\"=\"" + this._registryValues[optionIndex] + "\"\n";
+            new Wine()
+                .prefix(container)
+                .regedit()
+                .patch(regeditFileContent);
+        }
+    }
+};
+
+/* exported Setting */
+var Setting = Java.extend(org.phoenicis.engines.EngineSetting, settingImplementation);
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Settings_strict draw ordering_script.js.html b/docs/jsdoc/Engines_Wine_Settings_strict draw ordering_script.js.html new file mode 100644 index 0000000000..d745c219ca --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Settings_strict draw ordering_script.js.html @@ -0,0 +1,99 @@ + + + + + JSDoc: Source: Engines/Wine/Settings/strict draw ordering/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Settings/strict draw ordering/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+include(["engines", "wine", "plugins", "regedit"]);
+
+/**
+ * setting to configure strict draw ordering
+*/
+var settingImplementation = {
+    _options: [tr("Default"), tr("Disabled"), tr("Enabled")],
+    // values which are written into the registry, do not translate!
+    _registryValues: ["", "disabled", "enabled"],
+    getText: function () {
+        return tr("Strict Draw Ordering");
+    },
+    getOptions: function () {
+        return this._options;
+    },
+    getCurrentOption: function (container) {
+        var currentValue = new Wine()
+            .prefix(container)
+            .regedit()
+            .fetchValue(["HKEY_CURRENT_USER", "Software", "Wine", "Direct3D", "StrictDrawOrdering"]);
+        // find matching option (use default if not found)
+        var index = Math.max(this._registryValues.indexOf(currentValue), 0);
+        return this._options[index];
+    },
+    setOption: function (container, optionIndex) {
+        if (0 == optionIndex) {
+            new Wine()
+                .prefix(container)
+                .regedit()
+                .deleteValue("HKEY_CURRENT_USER\\Software\\Wine\\Direct3D", "StrictDrawOrdering");
+        }
+        else {
+            var regeditFileContent =
+            "REGEDIT4\n" +
+            "\n" +
+            "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]\n" +
+            "\"StrictDrawOrdering\"=\"" + this._registryValues[optionIndex] + "\"\n";
+            new Wine()
+                .prefix(container)
+                .regedit()
+                .patch(regeditFileContent);
+        }
+    }
+};
+
+/* exported Setting */
+var Setting = Java.extend(org.phoenicis.engines.EngineSetting, settingImplementation);
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Settings_video memory size_script.js.html b/docs/jsdoc/Engines_Wine_Settings_video memory size_script.js.html new file mode 100644 index 0000000000..ac92f63c17 --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Settings_video memory size_script.js.html @@ -0,0 +1,98 @@ + + + + + JSDoc: Source: Engines/Wine/Settings/video memory size/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Settings/video memory size/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+include(["engines", "wine", "plugins", "regedit"]);
+
+/**
+ * setting to set the video memory size
+*/
+var settingImplementation = {
+    _options: [tr("Default"), "64", "384", "1024", "4096", "7168"],
+    // values which are written into the registry, do not translate!
+    _registryValues: ["", "64", "384", "1024", "4096", "7168"],
+    getText: function () {
+        return tr("Video memory size");
+    },
+    getOptions: function () {
+        return this._options;
+    },
+    getCurrentOption: function (container) {
+        var currentValue = new Wine()
+            .prefix(container)
+            .regedit()
+            .fetchValue(["HKEY_CURRENT_USER", "Software", "Wine", "Direct3D", "VideoMemorySize"]);
+        // find matching option (use default if not found)
+        var index = Math.max(this._registryValues.indexOf(currentValue), 0);
+        return this._options[index];
+    },
+    setOption: function (container, optionIndex) {
+        if (0 == optionIndex) {
+            new Wine()
+                .prefix(container)
+                .regedit()
+                .deleteValue("HKEY_CURRENT_USER\\Software\\Wine\\Direct3D", "VideoMemorySize");
+        } else {
+            var regeditFileContent =
+            "REGEDIT4\n" +
+            "\n" +
+            "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]\n" +
+            "\"VideoMemorySize\"=\"" + this._registryValues[optionIndex] + "\"\n";
+            new Wine()
+                .prefix(container)
+                .regedit()
+                .patch(regeditFileContent);
+        }
+    }
+};
+
+/* exported Setting */
+var Setting = Java.extend(org.phoenicis.engines.EngineSetting, settingImplementation);
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Shortcuts_Reader_script.js.html b/docs/jsdoc/Engines_Wine_Shortcuts_Reader_script.js.html new file mode 100644 index 0000000000..a4fbdcbacd --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Shortcuts_Reader_script.js.html @@ -0,0 +1,172 @@ + + + + + JSDoc: Source: Engines/Wine/Shortcuts/Reader/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Shortcuts/Reader/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+
+var _WineShortcutReader = function (shortcut) {
+    var that = this;
+    that._shortcutManager = Bean("shortcutManager");
+    that._libraryManager = Bean("libraryManager");
+    that._uiQuestionFactory = Bean("uiQuestionFactory");
+    that._winePrefixesDirectory = Bean("propertyReader").getProperty("application.user.containers") + "/" + WINE_PREFIX_DIR + "/";
+
+    this.shortcut = shortcut;
+
+    this.wineprefix = function () {
+        var shortcutContent = JSON.parse(this.shortcut.script);
+        return shortcutContent.winePrefix;
+    };
+
+    this.container = this.wineprefix;
+
+    this.run = function (userArguments) {
+        var shortcutContent = JSON.parse(this.shortcut.script);
+
+        if (!userArguments) {
+            userArguments = [];
+        }
+
+        var args = (shortcutContent.arguments ? shortcutContent.arguments : []).concat(Java.from(userArguments));
+
+        var userData = {};
+        userData["wineDebug"] = shortcutContent.wineDebug;
+        new Wine()
+            .prefix(shortcutContent.winePrefix)
+            .run(shortcutContent.executable, args, shortcutContent.workingDirectory, false, false, userData)
+    };
+
+
+    this.stop = function () {
+        var shortcutContent = JSON.parse(this.shortcut.script);
+
+        new Wine()
+            .prefix(shortcutContent.winePrefix)
+            .kill()
+    };
+
+    this.uninstall = function () {
+        var shortcutContent = JSON.parse(this.shortcut.script);
+        var _winePrefix = shortcutContent.winePrefix;
+
+        var _found = false;
+        this._libraryManager.fetchShortcuts().forEach(function (shortcutCategory) {
+            shortcutCategory.getShortcuts().forEach(function (shortcut) {
+                var _otherShortcutContent = JSON.parse(shortcut.script);
+
+                if (_otherShortcutContent.winePrefix == _winePrefix && shortcut.name != that.shortcut.name) {
+                    _found = true;
+                }
+            });
+        });
+
+        this._shortcutManager.deleteShortcut(this.shortcut);
+
+        if (!_found) {
+            this._uiQuestionFactory.create(tr("The container {0} is no longer used.\nDo you want to delete it?", _winePrefix),
+                function () {
+                    remove(that._winePrefixesDirectory + _winePrefix);
+                });
+        }
+    }
+};
+
+/**
+* ShortcutReader prototype
+* @constructor
+*/
+function ShortcutReader() {
+}
+
+/**
+* sets shortcut
+* @param {string} shortcut shortcut
+* @returns {void}
+*/
+ShortcutReader.prototype.of = function (shortcut) {
+    this.shortcut = shortcut;
+    var shortcutContentParsed = JSON.parse(this.shortcut.script);
+
+    if (shortcutContentParsed.type == "WINE") {
+        this._runner = new _WineShortcutReader(this.shortcut);
+    }
+}
+
+/**
+* runs shortcut
+* @param {array} userArguments arguments
+* @returns {void}
+*/
+ShortcutReader.prototype.run = function (userArguments) {
+    this._runner.run(userArguments);
+}
+
+/**
+* stops running shortcut
+* @returns {void}
+*/
+ShortcutReader.prototype.stop = function () {
+    this._runner.stop();
+}
+
+/**
+* uninstalls shortcut
+* @returns {void}
+*/
+ShortcutReader.prototype.uninstall = function () {
+    this._runner.uninstall();
+}
+
+/**
+* returns container of shortcut
+* @returns {string} container
+*/
+ShortcutReader.prototype.container = function () {
+    return this._runner.container();
+}
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Shortcuts_Wine_script.js.html b/docs/jsdoc/Engines_Wine_Shortcuts_Wine_script.js.html index b8f387233c..1442e6efa2 100644 --- a/docs/jsdoc/Engines_Wine_Shortcuts_Wine_script.js.html +++ b/docs/jsdoc/Engines_Wine_Shortcuts_Wine_script.js.html @@ -28,112 +28,150 @@

Source: Engines/Wine/Shortcuts/Wine/script.js

include(["engines", "wine", "engine", "object"]);
 
-/* exported WineShortcut */
-var WineShortcut = function () {
-    var that = this;
-    that._shortcutManager = Bean("shortcutManager");
-    that._appsManager = Bean("repositoryManager");
-    that._fileSearcher = Bean("fileSearcher");
-    that._winePrefixesDirectory = Bean("propertyReader").getProperty("application.user.containers") + "/" + WINE_PREFIX_DIR + "/";
-
-    that._category = "Other";
-    that._description = "";
-
-    that.name = function (name) {
-        that._name = name;
-        return that;
-    };
-
-    that.type = function (type) {
-        that._type = type;
-        return that;
-    };
-
-    that.category = function (category) {
-        that._category = category;
-        return that;
-    };
-
-    that.description = function (description) {
-        that._description = description;
-        return that;
-    };
-
-    that.arguments = function(args) {
-        that._arguments = args;
-        return that;
-    };
-
-    that.search = function(search) {
-        that._search = search;
-        return that;
-    };
-
-    that.prefix = function(prefix) {
-        that._prefix = prefix;
-        return that;
-    };
-
-    /**
-    * sets the miniature for the shortcut
-    * @param {string[]|URI} miniature
-    * array which specifies the application of which the miniature shall be used
-    * or
-    * URI of the miniature
-    * @returns {WineShortcut}
-    */
-    that.miniature = function(miniature) {
-        if(isArray(miniature)) {
-            // application of miniature given
-            var application = that._appsManager.getApplication(miniature);
-            if(application != null && application.getMainMiniature().isPresent()) {
-                that._miniature = application.getMainMiniature().get();
-            }
-        } else {
-            // miniature URI given
-            that._miniature = miniature;
+/**
+* WineShortcut prototype
+* @constructor
+*/
+function WineShortcut() {
+    this._shortcutManager = Bean("shortcutManager");
+    this._appsManager = Bean("repositoryManager");
+    this._fileSearcher = Bean("fileSearcher");
+    this._winePrefixesDirectory = Bean("propertyReader").getProperty("application.user.containers") + "/" + WINE_PREFIX_DIR + "/";
+
+    this._category = "Other";
+    this._description = "";
+}
+
+/**
+* sets shortcut name
+* @param {string} name shortcut name
+* @returns {WineShortcut} WineShortcut object
+*/
+WineShortcut.prototype.name = function (name) {
+    this._name = name;
+    return this;
+}
+
+/**
+* sets shortcut type
+* @param {string} type shortcut type
+* @returns {WineShortcut} WineShortcut object
+*/
+WineShortcut.prototype.type = function (type) {
+    this._type = type;
+    return this;
+}
+
+/**
+* sets shortcut category
+* @param {string} category shortcut category
+* @returns {WineShortcut} WineShortcut object
+*/
+WineShortcut.prototype.category = function (category) {
+    this._category = category;
+    return this;
+}
+
+/**
+* sets shortcut description
+* @param {string} description shortcut description
+* @returns {WineShortcut} WineShortcut object
+*/
+WineShortcut.prototype.description = function (description) {
+    this._description = description;
+    return this;
+}
+
+/**
+* sets shortcut arguments
+* @param {array} args shortcut arguments
+* @returns {WineShortcut} WineShortcut object
+*/
+WineShortcut.prototype.arguments = function (args) {
+    this._arguments = args;
+    return this;
+}
+
+/**
+* sets executable which shall be used
+* @param {string} search executable name
+* @returns {WineShortcut} WineShortcut object
+*/
+WineShortcut.prototype.search = function (search) {
+    this._search = search;
+    return this;
+}
+
+/**
+* sets shortcut prefix
+* @param {string} prefix shortcut prefix
+* @returns {WineShortcut} WineShortcut object
+*/
+WineShortcut.prototype.prefix = function (prefix) {
+    this._prefix = prefix;
+    return this;
+}
+
+/**
+* sets the miniature for the shortcut
+* @param {string[]|URI} miniature
+* array which specifies the application of which the miniature shall be used
+* or
+* URI of the miniature
+* @returns {WineShortcut} WineShortcut object
+*/
+WineShortcut.prototype.miniature = function (miniature) {
+    if (isArray(miniature)) {
+        // application of miniature given
+        var application = this._appsManager.getApplication(miniature);
+        if (application != null && application.getMainMiniature().isPresent()) {
+            this._miniature = application.getMainMiniature().get();
         }
+    } else {
+        // miniature URI given
+        this._miniature = miniature;
+    }
 
-        return that;
-    };
-
-    that.create = function () {
-        var _shortcutPrefixDirectory = that._winePrefixesDirectory + "/" + that._prefix;
+    return this;
+}
 
-        var executables = that._fileSearcher.search(_shortcutPrefixDirectory, that._search);
+/**
+* creates shortcut
+* @returns {void}
+*/
+WineShortcut.prototype.create = function () {
+    var _shortcutPrefixDirectory = this._winePrefixesDirectory + "/" + this._prefix;
 
-        if (executables.length == 0) {
-            throw tr("Executable {0} not found!", that._search)
-        }
+    var executables = this._fileSearcher.search(_shortcutPrefixDirectory, this._search);
 
-        var info = new org.phoenicis.library.dto.ShortcutInfoDTO.Builder()
-            .withCategory(that._category)
-            .withName(that._name)
-            .withDescription(that._description)
-            .build();
-
-        var builder = new org.phoenicis.library.dto.ShortcutDTO.Builder()
-            .withId(that._name)
-            .withInfo(info)
-            .withScript(JSON.stringify({
-                type: "WINE",
-                wineDebug: "-all",
-                winePrefix: that._prefix,
-                arguments: that._arguments,
-                workingDirectory:executables[0].getParentFile().getAbsolutePath(),
-                executable: executables[0].getAbsolutePath()
-            }));
-
-        if(that._miniature) {
-            builder.withMiniature(that._miniature);
-        }
+    if (executables.length == 0) {
+        throw tr("Executable {0} not found!", this._search)
+    }
 
-        that._shortcutManager.createShortcut(
-            builder.build()
-        );
+    var info = new org.phoenicis.library.dto.ShortcutInfoDTO.Builder()
+        .withCategory(this._category)
+        .withName(this._name)
+        .withDescription(this._description)
+        .build();
+
+    var builder = new org.phoenicis.library.dto.ShortcutDTO.Builder()
+        .withId(this._name)
+        .withInfo(info)
+        .withScript(JSON.stringify({
+            type: "WINE",
+            wineDebug: "-all",
+            winePrefix: this._prefix,
+            arguments: this._arguments,
+            workingDirectory:executables[0].getParentFile().getAbsolutePath(),
+            executable: executables[0].getAbsolutePath()
+        }));
+
+    if (this._miniature) {
+        builder.withMiniature(this._miniature);
     }
-};
-
+ + this._shortcutManager.createShortcut(builder.build()); +}
@@ -143,7 +181,7 @@

Source: Engines/Wine/Shortcuts/Wine/script.js


diff --git a/docs/jsdoc/Engines_Wine_Tools_Configure Wine_script.js.html b/docs/jsdoc/Engines_Wine_Tools_Configure Wine_script.js.html index f14dc7f3d0..3751b3e60b 100644 --- a/docs/jsdoc/Engines_Wine_Tools_Configure Wine_script.js.html +++ b/docs/jsdoc/Engines_Wine_Tools_Configure Wine_script.js.html @@ -30,21 +30,18 @@

Source: Engines/Wine/Tools/Configure Wine/script.js

/** * tool to configure Wine - * @constructor - */ -var ConfigureWine = function() { -}; - -/** -* runs the tool -* @param {String} container name */ -ConfigureWine.prototype.run = function (container) { - new Wine() - .prefix(container) - .run("winecfg") - .wait(); +var toolImplementation = { + run: function (container) { + new Wine() + .prefix(container) + .run("winecfg") + .wait(); + } }; + +/* exported Tool */ +var Tool = Java.extend(org.phoenicis.engines.EngineTool, toolImplementation); @@ -55,7 +52,7 @@

Source: Engines/Wine/Tools/Configure Wine/script.js


diff --git a/docs/jsdoc/Engines_Wine_Tools_Kill Wine Processes_script.js.html b/docs/jsdoc/Engines_Wine_Tools_Kill Wine Processes_script.js.html index 55b458ed99..5c4065929b 100644 --- a/docs/jsdoc/Engines_Wine_Tools_Kill Wine Processes_script.js.html +++ b/docs/jsdoc/Engines_Wine_Tools_Kill Wine Processes_script.js.html @@ -30,21 +30,18 @@

Source: Engines/Wine/Tools/Kill Wine Processes/script.js< /** * tool to kill running Wine processes - * @constructor - */ -var KillWineProcesses = function() { -}; - -/** -* runs the tool -* @param {String} container name */ -KillWineProcesses.prototype.run = function (container) { - new Wine() - .prefix(container) - .run("kill") - .wait(); +var toolImplementation = { + run: function (container) { + new Wine() + .prefix(container) + .run("kill") + .wait(); + } }; + +/* exported Tool */ +var Tool = Java.extend(org.phoenicis.engines.EngineTool, toolImplementation); @@ -55,7 +52,7 @@

Source: Engines/Wine/Tools/Kill Wine Processes/script.js<
diff --git a/docs/jsdoc/Engines_Wine_Tools_Reboot Wine_script.js.html b/docs/jsdoc/Engines_Wine_Tools_Reboot Wine_script.js.html index 5e75e33e8b..3685546a87 100644 --- a/docs/jsdoc/Engines_Wine_Tools_Reboot Wine_script.js.html +++ b/docs/jsdoc/Engines_Wine_Tools_Reboot Wine_script.js.html @@ -30,21 +30,18 @@

Source: Engines/Wine/Tools/Reboot Wine/script.js

/** * tool to reboot Wine - * @constructor - */ -var RebootWine = function() { -}; - -/** -* runs the tool -* @param {String} container name */ -RebootWine.prototype.run = function (container) { - new Wine() - .prefix(container) - .run("wineboot") - .wait(); +var toolImplementation = { + run: function (container) { + new Wine() + .prefix(container) + .run("wineboot") + .wait(); + } }; + +/* exported Tool */ +var Tool = Java.extend(org.phoenicis.engines.EngineTool, toolImplementation); @@ -55,7 +52,7 @@

Source: Engines/Wine/Tools/Reboot Wine/script.js


diff --git a/docs/jsdoc/Engines_Wine_Tools_Repair Wine Prefix_script.js.html b/docs/jsdoc/Engines_Wine_Tools_Repair Wine Prefix_script.js.html index b62317071d..abd4fc4c73 100644 --- a/docs/jsdoc/Engines_Wine_Tools_Repair Wine Prefix_script.js.html +++ b/docs/jsdoc/Engines_Wine_Tools_Repair Wine Prefix_script.js.html @@ -30,21 +30,18 @@

Source: Engines/Wine/Tools/Repair Wine Prefix/script.js @@ -55,7 +52,7 @@

Source: Engines/Wine/Tools/Repair Wine Prefix/script.js
diff --git a/docs/jsdoc/Engines_Wine_Tools_Wine Registry Editor_script.js.html b/docs/jsdoc/Engines_Wine_Tools_Wine Registry Editor_script.js.html index 49e889924a..03efa6c12b 100644 --- a/docs/jsdoc/Engines_Wine_Tools_Wine Registry Editor_script.js.html +++ b/docs/jsdoc/Engines_Wine_Tools_Wine Registry Editor_script.js.html @@ -27,24 +27,22 @@

Source: Engines/Wine/Tools/Wine Registry Editor/script.js
include(["engines", "wine", "engine", "object"]);
+include(["engines", "wine", "plugins", "regedit"]);
 
 /**
  * tool to open the Wine registry editor
- * @constructor
- */
-var WineRegistryEditor = function() {
-};
-
-/**
-* runs the tool
-* @param {String} container name
 */
-WineRegistryEditor.prototype.run = function (container) {
-    new Wine()
-        .prefix(container)
-        .run("regedit")
-        .wait();
+var toolImplementation = {
+    run: function (container) {
+        new Wine()
+            .prefix(container)
+            .run("regedit")
+            .wait();
+    }
 };
+
+/* exported Tool */
+var Tool = Java.extend(org.phoenicis.engines.EngineTool, toolImplementation);
 
@@ -55,7 +53,7 @@

Source: Engines/Wine/Tools/Wine Registry Editor/script.js
diff --git a/docs/jsdoc/Engines_Wine_Tools_Wine Task Manager_script.js.html b/docs/jsdoc/Engines_Wine_Tools_Wine Task Manager_script.js.html index a67dd82c17..db29a86768 100644 --- a/docs/jsdoc/Engines_Wine_Tools_Wine Task Manager_script.js.html +++ b/docs/jsdoc/Engines_Wine_Tools_Wine Task Manager_script.js.html @@ -30,21 +30,18 @@

Source: Engines/Wine/Tools/Wine Task Manager/script.js @@ -55,7 +52,7 @@

Source: Engines/Wine/Tools/Wine Task Manager/script.js
diff --git a/docs/jsdoc/Engines_Wine_Tools_Wine Terminal Opener_script.js.html b/docs/jsdoc/Engines_Wine_Tools_Wine Terminal Opener_script.js.html index a3146031cd..ee0501ec9e 100644 --- a/docs/jsdoc/Engines_Wine_Tools_Wine Terminal Opener_script.js.html +++ b/docs/jsdoc/Engines_Wine_Tools_Wine Terminal Opener_script.js.html @@ -30,24 +30,21 @@

Source: Engines/Wine/Tools/Wine Terminal Opener/script.js /** * tool to open a terminal in a Wine prefix - * @constructor */ -var WineTerminalOpener = function() { - this._TerminalOpener = Bean("terminalOpener"); +var toolImplementation = { + _TerminalOpener: Bean("terminalOpener"), + run: function (container) { + var wine = new Wine() + .prefix(container); + var environment = []; + environment["WINEPREFIX"] = wine.prefixDirectory(); + environment["PATH"] = wine.binPath() + ":$PATH"; + this._TerminalOpener.openTerminal(wine.prefixDirectory(), environment); + } }; -/** -* runs the tool -* @param {String} container name -*/ -WineTerminalOpener.prototype.run = function (container) { - var wine = new Wine() - .prefix(container); - var environment = []; - environment["WINEPREFIX"] = wine.prefixDirectory; - environment["PATH"] = wine.binPath() + ":$PATH"; - this._TerminalOpener.openTerminal(wine.prefixDirectory, environment); -}; +/* exported Tool */ +var Tool = Java.extend(org.phoenicis.engines.EngineTool, toolImplementation); @@ -58,7 +55,7 @@

Source: Engines/Wine/Tools/Wine Terminal Opener/script.js
diff --git a/docs/jsdoc/Engines_Wine_Tools_Wine Uninstaller_script.js.html b/docs/jsdoc/Engines_Wine_Tools_Wine Uninstaller_script.js.html index 4635433e7f..83606db0de 100644 --- a/docs/jsdoc/Engines_Wine_Tools_Wine Uninstaller_script.js.html +++ b/docs/jsdoc/Engines_Wine_Tools_Wine Uninstaller_script.js.html @@ -30,21 +30,19 @@

Source: Engines/Wine/Tools/Wine Uninstaller/script.js

@@ -55,7 +53,7 @@

Source: Engines/Wine/Tools/Wine Uninstaller/script.js


diff --git a/docs/jsdoc/Engines_Wine_Tools_WineConsole_script.js.html b/docs/jsdoc/Engines_Wine_Tools_WineConsole_script.js.html index 70d2f43251..75d62e28f2 100644 --- a/docs/jsdoc/Engines_Wine_Tools_WineConsole_script.js.html +++ b/docs/jsdoc/Engines_Wine_Tools_WineConsole_script.js.html @@ -30,21 +30,18 @@

Source: Engines/Wine/Tools/WineConsole/script.js

/** * tool to open a Wine console - * @constructor - */ -var WineConsole = function() { -}; - -/** -* runs the tool -* @param {String} container name */ -WineConsole.prototype.run = function (container) { - new Wine() - .prefix(container) - .run("wineconsole") - .wait(); +var toolImplementation = { + run: function (container) { + new Wine() + .prefix(container) + .run("wineconsole") + .wait(); + } }; + +/* exported Tool */ +var Tool = Java.extend(org.phoenicis.engines.EngineTool, toolImplementation); @@ -55,7 +52,7 @@

Source: Engines/Wine/Tools/WineConsole/script.js


diff --git a/docs/jsdoc/Engines_Wine_Verbs_DXVK_script.js.html b/docs/jsdoc/Engines_Wine_Verbs_DXVK_script.js.html new file mode 100644 index 0000000000..a7a60ca0a6 --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Verbs_DXVK_script.js.html @@ -0,0 +1,102 @@ + + + + + JSDoc: Source: Engines/Wine/Verbs/DXVK/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Verbs/DXVK/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+include(["engines", "wine", "plugins", "override_dll"]);
+include(["utils", "functions", "net", "resource"]);
+include(["utils", "functions", "filesystem", "files"]);
+
+/**
+* Setup DXVK-> https://github.com/doitsujin/dxvk/
+* @returns {Wine} Wine object
+*/
+Wine.prototype.DXVK = function () {
+    print("NOTE: you need a driver that supports Vulkan enough to run DXVK");
+    print("NOTE: wine version should be greater or equal to 3.5");
+
+    var dxvkVersion = "0.50";
+
+    var setupFile = new Resource()
+        .wizard(this.wizard())
+        .url("https://github.com/doitsujin/dxvk/releases/download/v" + dxvkVersion + "/dxvk-" + dxvkVersion + ".tar.gz")
+        .checksum("4bbcb3020ba12a5a0cb7c388264579068b307bc6")
+        .name("dxvk-" + dxvkVersion + ".tar.gz")
+        .get();
+
+    new Extractor()
+        .wizard(this.wizard())
+        .archive(setupFile)
+        .to(this.prefixDirectory() + "/TMP/")
+        .extract();
+
+    var dxvkTmpDir = this.prefixDirectory() + "/TMP/dxvk-" + dxvkVersion;
+
+    if (this.architecture() == "x86") {
+        cp(dxvkTmpDir + "/x32/d3d11.dll", this.system32directory());
+        cp(dxvkTmpDir + "/x32/dxgi.dll", this.system32directory());
+    }
+
+    if (this.architecture() == "amd64") {
+        cp(dxvkTmpDir + "/x32/d3d11.dll", this.system64directory());
+        cp(dxvkTmpDir + "/x32/dxgi.dll", this.system64directory());
+
+        cp(dxvkTmpDir + "/x64/d3d11.dll", this.system32directory());
+        cp(dxvkTmpDir + "/x64/dxgi.dll", this.system32directory());
+    }
+
+    this.overrideDLL()
+        .set("native", ["d3d11", "dxgi"])
+        .do();
+
+    remove(this.prefixDirectory() + "/TMP/");
+
+    return this;
+}
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Verbs_PhysX_script.js.html b/docs/jsdoc/Engines_Wine_Verbs_PhysX_script.js.html new file mode 100644 index 0000000000..c658216533 --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Verbs_PhysX_script.js.html @@ -0,0 +1,72 @@ + + + + + JSDoc: Source: Engines/Wine/Verbs/PhysX/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Verbs/PhysX/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+include(["utils", "functions", "net", "resource"]);
+include(["engines", "wine", "verbs", "luna"]);
+
+/**
+* Verb to install Nvidia PhysX
+* @returns {Wine} Wine object
+*/
+Wine.prototype.physx = function () {
+    var setupFile = new Resource()
+        .wizard(this._wizard)
+        .url("http://uk.download.nvidia.com/Windows/9.14.0702/PhysX-9.14.0702-SystemSoftware.msi")
+        .checksum("81e2d38e2356e807ad80cdf150ed5acfff839c8b")
+        .name("PhysX-9.14.0702-SystemSoftware.msi")
+        .get();
+
+    this.run("msiexec", ["/i", setupFile, "/q"])
+        .wait(tr("Please wait while {0} is installed ...", "PhysX"));
+
+    return this;
+};
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Verbs_QuickTime 7.6_script.js.html b/docs/jsdoc/Engines_Wine_Verbs_QuickTime 7.6_script.js.html new file mode 100644 index 0000000000..3013fcbfc1 --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Verbs_QuickTime 7.6_script.js.html @@ -0,0 +1,71 @@ + + + + + JSDoc: Source: Engines/Wine/Verbs/QuickTime 7.6/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Verbs/QuickTime 7.6/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+include(["utils", "functions", "net", "resource"]);
+
+/**
+* Verb to install QuickTime 7.6
+* @returns {Wine} Wine object
+*/
+Wine.prototype.quicktime76 = function () {
+    var setupFile = new Resource()
+        .wizard(this._wizard)
+        .url("http://appldnld.apple.com/QuickTime/041-0025.20101207.Ptrqt/QuickTimeInstaller.exe")
+        .checksum("1eec8904f041d9e0ad3459788bdb690e45dbc38e")
+        .name("QuickTimeInstaller.exe")
+        .get();
+
+    this.run(setupFile, ["ALLUSERS=1", "DESKTOP_SHORTCUTS=0", "QTTaskRunFlags=0", "QTINFO.BISQTPRO=1", "SCHEDULE_ASUW=0", "REBOOT_REQUIRED=No"])
+        .wait(tr("Please wait while {0} is installed ...", "QuickTime"));
+
+    return this;
+};
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Verbs_Tahoma_script.js.html b/docs/jsdoc/Engines_Wine_Verbs_Tahoma_script.js.html new file mode 100644 index 0000000000..625235dc90 --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Verbs_Tahoma_script.js.html @@ -0,0 +1,85 @@ + + + + + JSDoc: Source: Engines/Wine/Verbs/Tahoma/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Verbs/Tahoma/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+include(["engines", "wine", "plugins", "register_font"]);
+include(["utils", "functions", "net", "resource"]);
+include(["engines", "wine", "verbs", "luna"]);
+include(["utils", "functions", "filesystem", "files"]);
+
+/**
+* Verb to install the Tahoma font
+* @returns {Wine} Wine object
+*/
+Wine.prototype.tahoma = function () {
+    var tahoma = new Resource()
+        .wizard(this._wizard)
+        .url("https://github.com/caarlos0/msfonts/blob/master/fonts/tahoma.ttf?raw=true")
+        .checksum("ae34f679d7f384123ff10453bbeaca649d4987b1")
+        .name("tahoma.ttf")
+        .get();
+
+    var tahomabd = new Resource()
+        .wizard(this._wizard)
+        .url("https://github.com/caarlos0/msfonts/blob/master/fonts/tahomabd.ttf?raw=true")
+        .checksum("07e766641293bfd570ed85bce75abc9be2da0ee1")
+        .name("tahomabd.ttf")
+        .get();
+
+    cp(tahoma, this.fontDirectory());
+    cp(tahomabd, this.fontDirectory());
+
+    this.registerFont()
+        .set("Tahoma", "tahoma.ttf")
+        .set("Tahoma Bold", "tahomabd.ttf")
+        .do();
+    return this;
+};
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Verbs_Uplay_script.js.html b/docs/jsdoc/Engines_Wine_Verbs_Uplay_script.js.html new file mode 100644 index 0000000000..d70df7e72a --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Verbs_Uplay_script.js.html @@ -0,0 +1,70 @@ + + + + + JSDoc: Source: Engines/Wine/Verbs/Uplay/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Verbs/Uplay/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+include(["utils", "functions", "net", "resource"]);
+
+/**
+* Verb to install Uplay
+* @returns {Wine} Wine object
+*/
+Wine.prototype.uplay = function () {
+    var setupFile = new Resource()
+        .wizard(this._wizard)
+        .url("https://ubistatic3-a.akamaihd.net/orbit/launcher_installer/UplayInstaller.exe")
+        .name("UplayInstaller.exe")
+        .get();
+
+    this.run(setupFile)
+        .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 can continue."));
+
+    return this;
+};
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Verbs_Windows XP SP 3_script.js.html b/docs/jsdoc/Engines_Wine_Verbs_Windows XP SP 3_script.js.html new file mode 100644 index 0000000000..04ae551c3b --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Verbs_Windows XP SP 3_script.js.html @@ -0,0 +1,91 @@ + + + + + JSDoc: Source: Engines/Wine/Verbs/Windows XP SP 3/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Verbs/Windows XP SP 3/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+include(["utils", "functions", "net", "resource"]);
+
+/**
+* Verb to install Windows XP Service Pack 3
+* @param {string} fileToExtract path to file which shall be extracted
+* @returns {Wine} Wine object
+*/
+Wine.prototype.sp3extract = function (fileToExtract) {
+    var that = this;
+    that._targetDirectory = this.system32directory();
+
+    this.targetDirectory = function (targetDirectory) {
+        that._targetDirectory = targetDirectory;
+        return that;
+    };
+
+    var setupFile = new Resource()
+        .wizard(this._wizard)
+        .url("http://freeware.epsc.wustl.edu/Win/XP_SP3/WindowsXP-KB936929-SP3-x86-ENU.exe")// Just a test, the URL needs to be fixed
+        .checksum("c81472f7eeea2eca421e116cd4c03e2300ebfde4")
+        .name("WindowsXP-KB936929-SP3-x86-ENU.exe")
+        .get();
+
+    new CabExtract()
+        .archive(setupFile)
+        .wizard(this._wizard)
+        .to(this.prefixDirectory() + "/drive_c/sp3/")
+        .extract(["-F", "i386/" + fileToExtract.slice(0, -1) + "_"]);
+
+    remove(that._targetDirectory + "/" + fileToExtract);
+
+    new CabExtract()
+        .archive(this.prefixDirectory() + "/drive_c/sp3/i386/" + fileToExtract.slice(0, -1) + "_")
+        .wizard(this._wizard)
+        .to(that._targetDirectory)
+        .extract();
+
+    return this;
+};
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Verbs_corefonts_script.js.html b/docs/jsdoc/Engines_Wine_Verbs_corefonts_script.js.html new file mode 100644 index 0000000000..d7a1dfaea1 --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Verbs_corefonts_script.js.html @@ -0,0 +1,186 @@ + + + + + JSDoc: Source: Engines/Wine/Verbs/corefonts/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Verbs/corefonts/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+include(["engines", "wine", "plugins", "register_font"]);
+include(["utils", "functions", "net", "resource"]);
+include(["engines", "wine", "verbs", "luna"]);
+
+/**
+* Verb to install corefonts
+* @returns {Wine} Wine object
+*/
+Wine.prototype.corefonts = function () {
+    var fontResources =
+    [
+        new Resource()
+            .wizard(this._wizard)
+            .url("https://mirrors.kernel.org/gentoo/distfiles/arial32.exe")
+            .checksum("6d75f8436f39ab2da5c31ce651b7443b4ad2916e")
+            .name("arial32.exe")
+            .get(),
+
+        new Resource()
+            .wizard(this._wizard)
+            .url("https://mirrors.kernel.org/gentoo/distfiles/arialb32.exe")
+            .checksum("d45cdab84b7f4c1efd6d1b369f50ed0390e3d344")
+            .name("arialb32.exe")
+            .get(),
+
+        new Resource()
+            .wizard(this._wizard)
+            .url("https://mirrors.kernel.org/gentoo/distfiles/comic32.exe")
+            .checksum("2371d0327683dcc5ec1684fe7c275a8de1ef9a51")
+            .name("comic32.exe")
+            .get(),
+
+        new Resource()
+            .wizard(this._wizard)
+            .url("https://mirrors.kernel.org/gentoo/distfiles/courie32.exe")
+            .checksum("06a745023c034f88b4135f5e294fece1a3c1b057")
+            .name("courie32.exe")
+            .get(),
+
+        new Resource()
+            .wizard(this._wizard)
+            .url("https://mirrors.kernel.org/gentoo/distfiles/georgi32.exe")
+            .checksum("90e4070cb356f1d811acb943080bf97e419a8f1e")
+            .name("georgi32.exe")
+            .get(),
+
+        new Resource()
+            .wizard(this._wizard)
+            .url("https://mirrors.kernel.org/gentoo/distfiles/impact32.exe")
+            .checksum("86b34d650cfbbe5d3512d49d2545f7509a55aad2")
+            .name("impact32.exe")
+            .get(),
+
+        new Resource()
+            .wizard(this._wizard)
+            .url("https://mirrors.kernel.org/gentoo/distfiles/times32.exe")
+            .checksum("20b79e65cdef4e2d7195f84da202499e3aa83060")
+            .name("times32.exe")
+            .get(),
+
+        new Resource()
+            .wizard(this._wizard)
+            .url("https://mirrors.kernel.org/gentoo/distfiles/trebuc32.exe ")
+            .checksum("50aab0988423efcc9cf21fac7d64d534d6d0a34a")
+            .name("trebuc32.exe")
+            .get(),
+
+        new Resource()
+            .wizard(this._wizard)
+            .url("https://mirrors.kernel.org/gentoo/distfiles/verdan32.exe ")
+            .checksum("f5b93cedf500edc67502f116578123618c64a42a")
+            .name("verdan32.exe")
+            .get(),
+
+        new Resource()
+            .wizard(this._wizard)
+            .url("https://mirrors.kernel.org/gentoo/distfiles/webdin32.exe ")
+            .checksum("2fb4a42c53e50bc70707a7b3c57baf62ba58398f")
+            .name("webdin32.exe")
+            .get()
+    ];
+
+    var progressBar = this._wizard.progressBar(tr("Please wait ..."));
+    progressBar.setText(tr("Installing {0} ...", tr("fonts")));
+    progressBar.setProgressPercentage(0.);
+    var numInstalledFonts = 0;
+
+    var that = this;
+    fontResources.forEach(function (fontResource) {
+        progressBar.setText(tr("Installing {0} ...", tr("fonts")));
+        progressBar.setProgressPercentage(numInstalledFonts * 100 / fontResources.length);
+
+        new CabExtract()
+            .archive(fontResource)
+            .wizard(null)
+            .to(that.fontDirectory())
+            .extract();
+
+        numInstalledFonts++;
+    });
+
+    this.registerFont()
+        .set("Arial", "Arial.TTF")
+        .set("Arial Bold", "Arialbd.TTF")
+        .set("Arial Bold Italic", "Arialbi.TTF")
+        .set("Arial Italic", "Ariali.TTF")
+        .set("Arial Black", "AriBlk.TTF")
+        .set("Comic Sans MS", "Comic.TTF")
+        .set("Comic Sans MS Bold", "Comicbd.TTF")
+        .set("Courier New", "Cour.TTF")
+        .set("Courier New Bold", "CourBD.TTF")
+        .set("Courier New Bold Italic", "CourBI.TTF")
+        .set("Courier New Italic", "Couri.TTF")
+        .set("Georgia", "Georgia.TTF")
+        .set("Georgia Bold", "Georgiab.TTF")
+        .set("Georgia Bold Italic", "Georgiaz.TTF")
+        .set("Georgia Italic", "Georgiai.TTF")
+        .set("Impact", "Impact.TTF")
+        .set("Times New Roman", "Times.TTF")
+        .set("Times New Roman Bold", "Timesbd.TTF")
+        .set("Times New Roman Bold Italic", "Timesbi.TTF")
+        .set("Times New Roman Italic", "Timesi.TTF")
+        .set("Trebucet MS", "Trebuc.TTF")
+        .set("Trebucet MS Bold", "Trebucbd.TTF")
+        .set("Trebucet MS Bold Italic", "Trebucbi.TTF")
+        .set("Trebucet MS Italic", "Trebucit.TTF")
+        .set("Verdana", "Verdana.TTF")
+        .set("Verdana Bold", "Verdanab.TTF")
+        .set("Verdana Bold Italic", "Verdanaz.TTF")
+        .set("Verdana Italic", "Verdanai.TTF")
+        .set("Webdings", "Webdings.TTF")
+        .do();
+    return this;
+};
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Verbs_crypt32_script.js.html b/docs/jsdoc/Engines_Wine_Verbs_crypt32_script.js.html new file mode 100644 index 0000000000..ac4f5c1490 --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Verbs_crypt32_script.js.html @@ -0,0 +1,67 @@ + + + + + JSDoc: Source: Engines/Wine/Verbs/crypt32/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Verbs/crypt32/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+include(["engines", "wine", "plugins", "override_dll"]);
+include(["engines", "wine", "verbs", "sp3extract"]);
+
+/**
+* Verb to install crypt32
+* @returns {Wine} Wine object
+*/
+Wine.prototype.crypt32 = function () {
+    this.sp3extract("crypt32.dll");
+    this.sp3extract("msasn1.dll");
+
+    this.overrideDLL()
+        .set("native, builtin", ["crypt32"])
+        .do()
+};
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Verbs_d3dx10_script.js.html b/docs/jsdoc/Engines_Wine_Verbs_d3dx10_script.js.html new file mode 100644 index 0000000000..abb444ddee --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Verbs_d3dx10_script.js.html @@ -0,0 +1,126 @@ + + + + + JSDoc: Source: Engines/Wine/Verbs/d3dx10/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Verbs/d3dx10/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+include(["engines", "wine", "plugins", "override_dll"]);
+include(["utils", "functions", "net", "resource"]);
+
+/**
+* Verb to install D3DX10
+* @returns {Wine} Wine object
+*/
+Wine.prototype.d3dx10 = function () {
+    var that = this;
+
+    var extractDirectXtoSystemDirectory = function (progressBar, filesToExtract, destination, pattern) {
+        var numberOfExtractedFiles = 0;
+        filesToExtract.forEach(function (cabFile) {
+            print(tr("Extracting {0} ...", cabFile));
+            progressBar.setText(tr("Extracting {0} ...", "DirectX 10"));
+            progressBar.setProgressPercentage(numberOfExtractedFiles * 100 / filesToExtract.length);
+
+            new CabExtract()
+                .archive(that.prefixDirectory() + "/drive_c/d3dx10/" + cabFile)
+                .to(destination)
+                .extract(["-L", "-F", pattern]);
+
+            numberOfExtractedFiles++;
+        });
+    };
+
+    var setupFile = new Resource()
+        .wizard(this._wizard)
+        .url("http://download.microsoft.com/download/8/4/A/84A35BF1-DAFE-4AE8-82AF-AD2AE20B6B14/directx_Jun2010_redist.exe")
+        .checksum("f8f1217f666bf2f6863631a7d5e5fb3a8d1542df")
+        .name("directx_Jun2010_redist.exe")
+        .get();
+
+    var progressBar = this._wizard.progressBar(tr("Please wait ..."));
+    progressBar.setText(tr("Extracting {0} ...", "DirectX 10"));
+    progressBar.setProgressPercentage(0.);
+
+    new CabExtract()
+        .archive(setupFile)
+        .to(this.prefixDirectory() + "/drive_c/d3dx10/")
+        .extract(["-L", "-F", "*d3dx10*x86*"]);
+
+    var filesToExtractx86 = [
+        "apr2007_d3dx10_33_x86.cab", "aug2007_d3dx10_35_x86.cab", "aug2008_d3dx10_39_x86.cab",
+        "aug2009_d3dx10_42_x86.cab", "dec2006_d3dx10_00_x86.cab", "jun2007_d3dx10_34_x86.cab",
+        "jun2008_d3dx10_38_x86.cab", "jun2010_d3dx10_43_x86.cab", "mar2008_d3dx10_37_x86.cab",
+        "mar2009_d3dx10_41_x86.cab", "nov2007_d3dx10_36_x86.cab", "nov2008_d3dx10_40_x86.cab"
+    ];
+    extractDirectXtoSystemDirectory(progressBar, filesToExtractx86, that.system32directory(), "d3dx10*.dll");
+
+    if (this.architecture() == "amd64") {
+        new CabExtract()
+            .archive(setupFile)
+            .to(this.prefixDirectory() + "/drive_c/d3dx10/")
+            .extract(["-L", "-F", "*d3dx10*x64*"]);
+
+        var filesToExtractx64 = [
+            "apr2007_d3dx10_33_x64.cab", "aug2007_d3dx10_35_x64.cab", "aug2008_d3dx10_39_x64.cab",
+            "aug2009_d3dx10_42_x64.cab", "dec2006_d3dx10_00_x64.cab", "jun2007_d3dx10_34_x64.cab",
+            "jun2008_d3dx10_38_x64.cab", "jun2010_d3dx10_43_x64.cab", "mar2008_d3dx10_37_x64.cab",
+            "mar2009_d3dx10_41_x64.cab", "nov2007_d3dx10_36_x64.cab", "nov2008_d3dx10_40_x64.cab"
+        ];
+
+        extractDirectXtoSystemDirectory(progressBar, filesToExtractx64, that.system64directory(), "d3dx10*.dll");
+    }
+
+    this.overrideDLL()
+        .set("native", [
+            "d3dx10_33", "d3dx10_34", "d3dx10_35", "d3dx10_36", "d3dx10_37", "d3dx10_38",
+            "d3dx10_39", "d3dx10_40", "d3dx10_41", "d3dx10_42", "d3dx10_43"
+        ])
+        .do();
+    return this;
+};
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Verbs_d3dx9_script.js.html b/docs/jsdoc/Engines_Wine_Verbs_d3dx9_script.js.html new file mode 100644 index 0000000000..e4d2e1c56a --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Verbs_d3dx9_script.js.html @@ -0,0 +1,133 @@ + + + + + JSDoc: Source: Engines/Wine/Verbs/d3dx9/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Verbs/d3dx9/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+include(["engines", "wine", "plugins", "override_dll"]);
+include(["utils", "functions", "net", "resource"]);
+
+/**
+* Verb to install D3DX9
+* @returns {Wine} Wine object
+*/
+Wine.prototype.d3dx9 = function () {
+    var that = this;
+
+    var extractDirectXtoSystemDirectory = function (progressBar, filesToExtract, destination, pattern) {
+        var numberOfExtractedFiles = 0;
+        filesToExtract.forEach(function (cabFile) {
+            print(tr("Extracting {0} ...", cabFile));
+            progressBar.setText(tr("Extracting {0} ...", "DirectX 9"));
+            progressBar.setProgressPercentage(numberOfExtractedFiles * 100 / filesToExtract.length);
+
+            new CabExtract()
+                .archive(that.prefixDirectory() + "/drive_c/d3dx9/" + cabFile)
+                .to(destination)
+                .extract(["-L", "-F", pattern]);
+
+            numberOfExtractedFiles++;
+        });
+    };
+
+    var setupFile = new Resource()
+        .wizard(this._wizard)
+        .url("http://download.microsoft.com/download/8/4/A/84A35BF1-DAFE-4AE8-82AF-AD2AE20B6B14/directx_Jun2010_redist.exe")
+        .checksum("f8f1217f666bf2f6863631a7d5e5fb3a8d1542df")
+        .name("directx_Jun2010_redist.exe")
+        .get();
+
+    var progressBar = this._wizard.progressBar(tr("Please wait ..."));
+    progressBar.setText(tr("Extracting {0} ...", "DirectX 9"));
+    progressBar.setProgressPercentage(0.);
+
+    new CabExtract()
+        .archive(setupFile)
+        .to(this.prefixDirectory() + "/drive_c/d3dx9/")
+        .extract(["-L", "-F", "*d3dx9*x86*"]);
+
+    var filesToExtractx86 = [
+        "apr2007_d3dx9_33_x86.cab", "aug2007_d3dx9_35_x86.cab", "apr2005_d3dx9_25_x86.cab",
+        "apr2006_d3dx9_30_x86.cab", "aug2005_d3dx9_27_x86.cab", "aug2008_d3dx9_39_x86.cab",
+        "aug2009_d3dx9_42_x86.cab", "dec2006_d3dx9_32_x86.cab", "dec2005_d3dx9_28_x86.cab",
+        "feb2005_d3dx9_24_x86.cab", "feb2006_d3dx9_29_x86.cab", "jun2007_d3dx9_34_x86.cab",
+        "jun2008_d3dx9_38_x86.cab", "jun2005_d3dx9_26_x86.cab", "jun2010_d3dx9_43_x86.cab",
+        "mar2008_d3dx9_37_x86.cab", "mar2009_d3dx9_41_x86.cab", "nov2007_d3dx9_36_x86.cab",
+        "nov2008_d3dx9_40_x86.cab", "oct2006_d3dx9_31_x86.cab"
+    ];
+    extractDirectXtoSystemDirectory(progressBar, filesToExtractx86, that.system32directory(), "d3dx9*.dll");
+
+    if (this.architecture() == "amd64") {
+        new CabExtract()
+            .archive(setupFile)
+            .to(this.prefixDirectory() + "/drive_c/d3dx9/")
+            .extract(["-L", "-F", "*d3dx9*x64*"]);
+
+        var filesToExtractx64 = [
+            "APR2007_d3dx9_33_x64.cab", "AUG2007_d3dx9_35_x64.cab", "Apr2005_d3dx9_25_x64.cab",
+            "Apr2006_d3dx9_30_x64.cab", "Aug2005_d3dx9_27_x64.cab", "Aug2008_d3dx9_39_x64.cab",
+            "Aug2009_d3dx9_42_x64.cab", "DEC2006_d3dx9_32_x64.cab", "Dec2005_d3dx9_28_x64.cab",
+            "Feb2005_d3dx9_24_x64.cab", "Feb2006_d3dx9_29_x64.cab", "JUN2007_d3dx9_34_x64.cab",
+            "JUN2008_d3dx9_38_x64.cab", "Jun2005_d3dx9_26_x64.cab", "Jun2010_d3dx9_43_x64.cab",
+            "Mar2008_d3dx9_37_x64.cab", "Mar2009_d3dx9_41_x64.cab", "Nov2007_d3dx9_36_x64.cab",
+            "Nov2008_d3dx9_40_x64.cab", "OCT2006_d3dx9_31_x64.cab"
+        ];
+
+        extractDirectXtoSystemDirectory(progressBar, filesToExtractx64, that.system64directory(), "d3dx9*.dll");
+    }
+
+    this.overrideDLL()
+        .set("native", [
+            "d3dx9_24", "d3dx9_25", "d3dx9_26", "d3dx9_27", "d3dx9_28", "d3dx9_29", "d3dx9_30",
+            "d3dx9_31", "d3dx9_32", "d3dx9_33", "d3dx9_34", "d3dx9_35", "d3dx9_36", "d3dx9_37",
+            "d3dx9_38", "d3dx9_39", "d3dx9_40", "d3dx9_41", "d3dx9_42", "d3dx9_43"
+        ])
+        .do();
+    return this;
+};
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Verbs_dotnet40_script.js.html b/docs/jsdoc/Engines_Wine_Verbs_dotnet40_script.js.html new file mode 100644 index 0000000000..8b838e0e39 --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Verbs_dotnet40_script.js.html @@ -0,0 +1,94 @@ + + + + + JSDoc: Source: Engines/Wine/Verbs/dotnet40/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Verbs/dotnet40/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+include(["engines", "wine", "plugins", "override_dll"]);
+include(["utils", "functions", "net", "resource"]);
+include(["engines", "wine", "verbs", "luna"]);
+include(["utils", "functions", "filesystem", "files"]);
+
+/**
+* Verb to install .NET 4.0
+* @returns {Wine} Wine object
+*/
+Wine.prototype.dotnet40 = function () {
+    var setupFile = new Resource()
+        .wizard(this._wizard)
+        .url("http://download.microsoft.com/download/9/5/A/95A9616B-7A37-4AF6-BC36-D6EA96C8DAAE/dotNetFx40_Full_x86_x64.exe")
+        .checksum("58da3d74db353aad03588cbb5cea8234166d8b99")
+        .name("dotNetFx40_Full_x86_x64.exe")
+        .get();
+
+    this.uninstall("Mono");
+
+    this.run("reg", ["delete", "HKLM\Software\Microsoft\NET Framework Setup\NDP\v4", "/f"])
+        .wait(tr("Please wait ..."));
+
+    remove(this.system32directory() + "/mscoree.dll");
+
+    this.overrideDLL()
+        .set("builtin", ["fusion"])
+        .do();
+
+    this.run(setupFile, [setupFile, "/q", "/c:\"install.exe /q\""])
+        .wait(tr("Please wait while {0} is installed ...", ".NET Framework 4.0"));
+
+    this.overrideDLL()
+        .set("native", ["mscoree"])
+        .do();
+
+    this.run("reg", ["add", "HKLM\Software\Microsoft\NET Framework Setup\NDP\v4\Full", "/v", "Install", "/t", "REG_DWORD", "/d", "0001", "/f"])
+        .wait(tr("Please wait ..."));
+    this.run("reg", ["add", "HKLM\Software\Microsoft\NET Framework Setup\NDP\v4\Full", "/v", "Version", "/t", "REG_SZ", "/d", "4.0.30319", "/f"])
+        .wait(tr("Please wait ..."));
+
+    return this;
+};
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Verbs_dotnet452_script.js.html b/docs/jsdoc/Engines_Wine_Verbs_dotnet452_script.js.html index ef518eddb1..cd42e5a48e 100644 --- a/docs/jsdoc/Engines_Wine_Verbs_dotnet452_script.js.html +++ b/docs/jsdoc/Engines_Wine_Verbs_dotnet452_script.js.html @@ -27,21 +27,22 @@

Source: Engines/Wine/Verbs/dotnet452/script.js

include(["engines", "wine", "engine", "object"]);
+include(["engines", "wine", "plugins", "override_dll"]);
+include(["engines", "wine", "plugins", "windows_version"]);
 include(["utils", "functions", "net", "resource"]);
-include(["Engines", "Wine", "Verbs", "luna"]);
-include(["Utils", "Functions", "filesystem", "files"]);
-include(["Engines", "Wine", "Verbs", "dotnet40"]);
+include(["engines", "wine", "verbs", "luna"]);
+include(["utils", "functions", "filesystem", "files"]);
+include(["engines", "wine", "verbs", "dotnet40"]);
 
 /**
-* Inspired from dotnet40 verb, winetricks dotnet452 and POL4 POL_install_dotnet45
-* -> https://github.com/Winetricks/winetricks/blob/63bc6dbe612d017a0cb6bf6e4cde265162d75bca/src/winetricks#L6938
-* @returns {Wine}
+* Verb to install .NET 4.5.2
+* @returns {Wine} Wine object
 */
-Wine.prototype.dotnet452 = function() {
+Wine.prototype.dotnet452 = function () {
     if (this.architecture() == "amd64") {
         throw "{0} cannot be installed in a 64bit wine prefix!".format("dotnet452");
     }
-    
+
     var OSVersion = this.windowsVersion();
 
     var setupFile = new Resource()
@@ -52,12 +53,12 @@ 

Source: Engines/Wine/Verbs/dotnet452/script.js

.get(); this.uninstall("Mono"); - + this.run("reg", ["delete", "HKLM\Software\Microsoft\NET Framework Setup\NDP\v4", "/f"]) .wait(tr("Please wait ...")); remove(this.system32directory() + "/mscoree.dll"); - + this.dotnet40(); this.windowsVersion("win7"); @@ -71,13 +72,13 @@

Source: Engines/Wine/Verbs/dotnet452/script.js

this.overrideDLL() .set("native", ["mscoree"]) .do(); - + this.windowsVersion(OSVersion); - - if(OSVersion != "win2003") { + + if (OSVersion != "win2003") { print(tr("{0} applications can have issues when windows version is not set to \"win2003\"", ".NET 4.5.2")); } - + return this; };
@@ -90,7 +91,7 @@

Source: Engines/Wine/Verbs/dotnet452/script.js


diff --git a/docs/jsdoc/Engines_Wine_Verbs_dotnet45_script.js.html b/docs/jsdoc/Engines_Wine_Verbs_dotnet45_script.js.html index d2fff0d620..8a72878bd3 100644 --- a/docs/jsdoc/Engines_Wine_Verbs_dotnet45_script.js.html +++ b/docs/jsdoc/Engines_Wine_Verbs_dotnet45_script.js.html @@ -27,22 +27,23 @@

Source: Engines/Wine/Verbs/dotnet45/script.js

include(["engines", "wine", "engine", "object"]);
+include(["engines", "wine", "plugins", "override_dll"]);
+include(["engines", "wine", "plugins", "windows_version"]);
 include(["utils", "functions", "net", "resource"]);
-include(["Engines", "Wine", "Verbs", "luna"]);
-include(["Utils", "Functions", "filesystem", "files"]);
-include(["Engines", "Wine", "Verbs", "dotnet40"]);
+include(["engines", "wine", "verbs", "luna"]);
+include(["utils", "functions", "filesystem", "files"]);
+include(["engines", "wine", "verbs", "dotnet40"]);
 
 /**
-* Inspired from dotnet40 verb, winetricks dotnet45 and POL4 POL_install_dotnet45
-* -> https://github.com/Winetricks/winetricks/blob/63bc6dbe612d017a0cb6bf6e4cde265162d75bca/src/winetricks#L6886
-* @returns {Wine}
+* Verb to install .NET 4.5
+* @returns {Wine} Wine object
 */
-Wine.prototype.dotnet45 = function() {
-    
+Wine.prototype.dotnet45 = function () {
+
     if (this.architecture() == "amd64") {
         throw "{0} cannot be installed in a 64bit wine prefix!".format("dotnet45");
     }
-    
+
     var OSVersion = this.windowsVersion();
 
     var setupFile = new Resource()
@@ -53,12 +54,12 @@ 

Source: Engines/Wine/Verbs/dotnet45/script.js

.get(); this.uninstall("Mono"); - + this.run("reg", ["delete", "HKLM\Software\Microsoft\NET Framework Setup\NDP\v4", "/f"]) .wait(tr("Please wait ...")); remove(this.system32directory() + "/mscoree.dll"); - + this.dotnet40(); this.windowsVersion("win7"); @@ -72,13 +73,13 @@

Source: Engines/Wine/Verbs/dotnet45/script.js

this.overrideDLL() .set("native", ["mscoree"]) .do(); - + this.windowsVersion(OSVersion); - - if(OSVersion != "win2003") { + + if (OSVersion != "win2003") { print(tr("{0} applications can have issues when windows version is not set to \"win2003\"", ".NET 4.5")); } - + return this; };
@@ -91,7 +92,7 @@

Source: Engines/Wine/Verbs/dotnet45/script.js


diff --git a/docs/jsdoc/Engines_Wine_Verbs_luna_script.js.html b/docs/jsdoc/Engines_Wine_Verbs_luna_script.js.html new file mode 100644 index 0000000000..4c2b2b91b4 --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Verbs_luna_script.js.html @@ -0,0 +1,82 @@ + + + + + JSDoc: Source: Engines/Wine/Verbs/luna/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Verbs/luna/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+include(["engines", "wine", "plugins", "regedit"]);
+include(["utils", "functions", "filesystem", "files"]);
+include(["utils", "functions", "net", "resource"]);
+
+/**
+* Verb to install luna
+* @returns {Wine} Wine object
+*/
+Wine.prototype.luna = function () {
+    var lunaStyle = new Resource()
+        .wizard(this._wizard)
+        .url("https://repository.playonlinux.com/divers/luna.msstyles")
+        .checksum("50a71767f90c1d3d86ca188a84393f2d39664311")
+        .name("luna.msstyles")
+        .get();
+
+    var lunaReg = new Resource()
+        .wizard(this._wizard)
+        .url("https://repository.playonlinux.com/divers/luna.reg")
+        .checksum("074e655d391ae87527f4cc50ba822a8aad83a09f")
+        .name("luna.reg")
+        .get();
+
+
+    mkdir(this.prefixDirectory() + "/drive_c/windows/Resources/Themes/luna/");
+    cp(lunaStyle, this.prefixDirectory() + "/drive_c/windows/Resources/Themes/luna/");
+    this.regedit().open(lunaReg);
+
+    return this;
+};
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Verbs_mfc42_script.js.html b/docs/jsdoc/Engines_Wine_Verbs_mfc42_script.js.html new file mode 100644 index 0000000000..3a13261fc7 --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Verbs_mfc42_script.js.html @@ -0,0 +1,87 @@ + + + + + JSDoc: Source: Engines/Wine/Verbs/mfc42/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Verbs/mfc42/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+include(["engines", "wine", "plugins", "override_dll"]);
+include(["utils", "functions", "net", "resource"]);
+
+/**
+* Verb to install mfc42.dll and mfc42u.dll
+* @returns {Wine} Wine object
+*/
+Wine.prototype.mfc42 = function () {
+    var setupFile = new Resource()
+        .wizard(this._wizard)
+        .url("http://download.microsoft.com/download/vc60pro/Update/2/W9XNT4/EN-US/VC6RedistSetup_deu.exe")
+        .checksum("a8c4dd33e281c166488846a10edf97ff0ce37044")
+        .name("VC6RedistSetup_deu.exe")
+        .get();
+
+    remove(this.system32directory() + "/mfc42.dll");
+    remove(this.system32directory() + "/mfc42u.dll");
+
+    new CabExtract()
+        .archive(setupFile)
+        .wizard(this._wizard)
+        .to(this.system32directory())
+        .extract();
+
+    new CabExtract()
+        .archive(this.system32directory() + "/vcredist.exe")
+        .wizard(this._wizard)
+        .to(this.system32directory())
+        .extract(['-F', 'mfc42*.dll']);
+
+    this.overrideDLL()
+        .set("native, builtin", ["mfc42", "mfc42u"])
+        .do();
+    return this;
+};
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Verbs_msls31_script.js.html b/docs/jsdoc/Engines_Wine_Verbs_msls31_script.js.html new file mode 100644 index 0000000000..8193b477dd --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Verbs_msls31_script.js.html @@ -0,0 +1,76 @@ + + + + + JSDoc: Source: Engines/Wine/Verbs/msls31/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Verbs/msls31/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+include(["utils", "functions", "net", "resource"]);
+
+/**
+* Verb to install msls31.dll
+* @returns {Wine} Wine object
+*/
+Wine.prototype.msls31 = function () {
+    var setupFile = new Resource()
+        .wizard(this._wizard)
+        .url("ftp://ftp.hp.com/pub/softlib/software/msi/InstMsiW.exe")
+        .checksum("4fc3bf0dc96b5cf5ab26430fac1c33c5c50bd142")
+        .name("InstMsiW.exe")
+        .get();
+
+    remove(this.system32directory() + "/msls31.dll");
+
+    new CabExtract()
+        .archive(setupFile)
+        .wizard(this._wizard)
+        .to(this.system32directory())
+        .extract(["-F", "msls31.dll"]);
+
+    return this;
+};
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Verbs_mspatcha_script.js.html b/docs/jsdoc/Engines_Wine_Verbs_mspatcha_script.js.html new file mode 100644 index 0000000000..7b7acec9c0 --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Verbs_mspatcha_script.js.html @@ -0,0 +1,90 @@ + + + + + JSDoc: Source: Engines/Wine/Verbs/mspatcha/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Verbs/mspatcha/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+include(["engines", "wine", "plugins", "override_dll"]);
+include(["utils", "functions", "net", "resource"]);
+include(["utils", "functions", "filesystem", "files"]);
+
+/**
+* Verb to install mspatcha
+* @returns {Wine} Wine object
+*/
+Wine.prototype.mspatcha = function () {
+    //Inspired from winetricks mspatcha, but with a link Phoenicis can understand
+    var setupFile = new Resource()
+        .wizard(this._wizard)
+        .url("http://ftp.anadolu.edu.tr/Service_Packs/Windows_2000/W2ksp4_EN.exe")
+        .checksum("fadea6d94a014b039839fecc6e6a11c20afa4fa8")
+        .name("W2ksp4_EN.exe")
+        .get();
+
+    remove(this.system32directory() + "/mspatcha.dll");
+
+    new CabExtract()
+        .archive(setupFile)
+        .wizard(this._wizard)
+        .to(this.system32directory())
+        .extract();
+
+    new CabExtract()
+        .archive(this.system32directory() + "/i386/mspatcha.dl_")
+        .wizard(this._wizard)
+        .to(this.system32directory())
+        .extract();
+
+    remove(this.system32directory() + "/i386/");
+
+    this.overrideDLL()
+        .set("native, builtin", ["mspatcha"])
+        .do();
+    return this;
+};
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Verbs_quartz_script.js.html b/docs/jsdoc/Engines_Wine_Verbs_quartz_script.js.html index 208e031cdc..fb55d41332 100644 --- a/docs/jsdoc/Engines_Wine_Verbs_quartz_script.js.html +++ b/docs/jsdoc/Engines_Wine_Verbs_quartz_script.js.html @@ -27,41 +27,43 @@

Source: Engines/Wine/Verbs/quartz/script.js

include(["engines", "wine", "engine", "object"]);
+include(["engines", "wine", "plugins", "override_dll"]);
+include(["engines", "wine", "plugins", "regsvr32"]);
 include(["utils", "functions", "net", "resource"]);
-include(["Utils", "Functions", "filesystem", "files"]);
+include(["utils", "functions", "filesystem", "files"]);
 
 /**
- * Inspired from winetricks quartz -> https://github.com/Winetricks/winetricks/blob/63bc6dbe612d017a0cb6bf6e4cde265162d75bca/src/winetricks#L8523
- * @returns {Wine}
- */
-Wine.prototype.quartz = function(){
+* Verb to install quartz
+* @returns {Wine} Wine object
+*/
+Wine.prototype.quartz = function (){
     var setupFile = new Resource()
         .wizard(this._wizard)
         .url("https://download.microsoft.com/download/E/E/1/EE17FF74-6C45-4575-9CF4-7FC2597ACD18/directx_feb2010_redist.exe")
         .checksum("a97c820915dc20929e84b49646ec275760012a42")
         .name("directx_feb2010_redist.exe")
         .get();
-        
+
     new CabExtract()
         .archive(setupFile)
         .wizard(this._wizard)
-        .to(this.prefixDirectory + "/TMP/")
+        .to(this.prefixDirectory() + "/TMP/")
         .extract(["-L", "-F", "dxnt.cab"]);
-        
+
     new CabExtract()
-        .archive(this.prefixDirectory + "/TMP/dxnt.cab")
+        .archive(this.prefixDirectory() + "/TMP/dxnt.cab")
         .wizard(this._wizard)
         .to(this.system32directory())
         .extract(["-L", "-F", "quartz.dll"]);
-        
-    remove(this.prefixDirectory + "/TMP/");
-    
+
+    remove(this.prefixDirectory() + "/TMP/");
+
     this.regsvr32().install("quartz.dll");
-    
+
     this.overrideDLL()
         .set("native, builtin", ["quartz"])
         .do()
-    
+
     return this;
 }
 
@@ -74,7 +76,7 @@

Source: Engines/Wine/Verbs/quartz/script.js


diff --git a/docs/jsdoc/Engines_Wine_Verbs_sandbox_script.js.html b/docs/jsdoc/Engines_Wine_Verbs_sandbox_script.js.html new file mode 100644 index 0000000000..fbc9d03179 --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Verbs_sandbox_script.js.html @@ -0,0 +1,70 @@ + + + + + JSDoc: Source: Engines/Wine/Verbs/sandbox/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Verbs/sandbox/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+include(["utils", "functions", "net", "resource"]);
+
+/**
+* Verb to install a sandbox
+* @returns {Wine} Wine object
+*/
+Wine.prototype.sandbox = function () {
+    var tmp = Bean("propertyReader").getProperty("application.user.tmp");
+    var resources = Bean("propertyReader").getProperty("application.user.resources");
+
+    remove(this.prefixDirectory() + "/dosdevices/z:");
+    remove(this.prefixDirectory() + "/dosdevices/y:");
+
+    lns(tmp, this.prefixDirectory() + "/dosdevices/z:");
+    lns(resources, this.prefixDirectory() + "/dosdevices/y:");
+
+    return this;
+};
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Verbs_secur32_script.js.html b/docs/jsdoc/Engines_Wine_Verbs_secur32_script.js.html index 34d65d719c..b46c0b052f 100644 --- a/docs/jsdoc/Engines_Wine_Verbs_secur32_script.js.html +++ b/docs/jsdoc/Engines_Wine_Verbs_secur32_script.js.html @@ -27,32 +27,32 @@

Source: Engines/Wine/Verbs/secur32/script.js

include(["engines", "wine", "engine", "object"]);
+include(["engines", "wine", "plugins", "override_dll"]);
 include(["utils", "functions", "net", "resource"]);
-include(["Utils", "Functions", "filesystem", "files"]);
+include(["utils", "functions", "filesystem", "files"]);
 
 /**
-* Inspired from winetricks secur32
-* -> https://github.com/Winetricks/winetricks/blob/63bc6dbe612d017a0cb6bf6e4cde265162d75bca/src/winetricks#L8744
-* @returns {Wine}
+* Verb to install secur32
+* @returns {Wine} Wine object
 */
-Wine.prototype.secur32 = function() {
+Wine.prototype.secur32 = function () {
     var setupFilex86 = new Resource()
         .wizard(this._wizard)
         .url("https://download.microsoft.com/download/0/A/F/0AFB5316-3062-494A-AB78-7FB0D4461357/windows6.1-KB976932-X86.exe")
         .checksum("c3516bc5c9e69fee6d9ac4f981f5b95977a8a2fa")
         .name("windows6.1-KB976932-X86.exe")
         .get();
-		
+
     new CabExtract()
         .archive(setupFilex86)
         .wizard(this._wizard)
-        .to(this.prefixDirectory + "/TMP/")
+        .to(this.prefixDirectory() + "/TMP/")
         .extract(["-L", "-F", "x86_microsoft-windows-lsa_31bf3856ad364e35_6.1.7601.17514_none_a851f4adbb0d5141/secur32.dll"]);
-		
-    cp(this.prefixDirectory + "/TMP/" + "x86_microsoft-windows-lsa_31bf3856ad364e35_6.1.7601.17514_none_a851f4adbb0d5141/secur32.dll", this.system32directory());
-	
-    remove(this.prefixDirectory + "/TMP/");
-	
+
+    cp(this.prefixDirectory() + "/TMP/" + "x86_microsoft-windows-lsa_31bf3856ad364e35_6.1.7601.17514_none_a851f4adbb0d5141/secur32.dll", this.system32directory());
+
+    remove(this.prefixDirectory() + "/TMP/");
+
     if (this.architecture() == "amd64") {
         var setupFilex64 = new Resource()
             .wizard(this._wizard)
@@ -60,22 +60,22 @@ 

Source: Engines/Wine/Verbs/secur32/script.js

.checksum("74865ef2562006e51d7f9333b4a8d45b7a749dab") .name("windows6.1-KB976932-X64.exe") .get(); - + new CabExtract() .archive(setupFilex64) .wizard(this._wizard) - .to(this.prefixDirectory + "/TMP/") + .to(this.prefixDirectory() + "/TMP/") .extract(["-L", "-F", "amd64_microsoft-windows-lsa_31bf3856ad364e35_6.1.7601.17514_none_04709031736ac277/secur32.dll"]); - - cp(this.prefixDirectory + "/TMP/" + "amd64_microsoft-windows-lsa_31bf3856ad364e35_6.1.7601.17514_none_04709031736ac277/secur32.dll", this.system64directory()); - - remove(this.prefixDirectory + "/TMP/"); + + cp(this.prefixDirectory() + "/TMP/" + "amd64_microsoft-windows-lsa_31bf3856ad364e35_6.1.7601.17514_none_04709031736ac277/secur32.dll", this.system64directory()); + + remove(this.prefixDirectory() + "/TMP/"); } - + this.overrideDLL() .set("native, builtin", ["secur32"]) .do() - + return this; }
@@ -88,7 +88,7 @@

Source: Engines/Wine/Verbs/secur32/script.js


diff --git a/docs/jsdoc/Engines_Wine_Verbs_vcrun2003_script.js.html b/docs/jsdoc/Engines_Wine_Verbs_vcrun2003_script.js.html new file mode 100644 index 0000000000..8b8b63d5d4 --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Verbs_vcrun2003_script.js.html @@ -0,0 +1,82 @@ + + + + + JSDoc: Source: Engines/Wine/Verbs/vcrun2003/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Verbs/vcrun2003/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+include(["utils", "functions", "net", "resource"]);
+include(["utils", "functions", "filesystem", "files"]);
+include(["engines", "wine", "verbs", "luna"]);
+
+/**
+* Verb to install vcrun2003
+* @returns {Wine} Wine object
+*/
+Wine.prototype.vcrun2003 = function () {
+    var setupFile = new Resource()
+        .wizard(this._wizard)
+        .url("https://sourceforge.net/projects/bzflag/files/bzedit%20win32/1.6.5/BZEditW32_1.6.5.exe")
+        .checksum("bdd1b32c4202fd77e6513fd507c8236888b09121")
+        .name("BZEditW32_1.6.5.exe")
+        .get();
+
+    this.run(setupFile, "/S")
+        .wait(tr("Please wait while {0} is installed ...", "Microsoft Visual C++ 2003 Redistributable (x86)"));
+
+    var dlls = [
+        "msvcp71",
+        "mfc71"
+    ];
+    dlls.forEach(function (dll) {
+        cp(wine.programFiles() + "/BZEdit1.6.5/" + dll, this.system32directory());
+    });
+
+
+    return this;
+};
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Verbs_vcrun2005_script.js.html b/docs/jsdoc/Engines_Wine_Verbs_vcrun2005_script.js.html new file mode 100644 index 0000000000..b681ca58dc --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Verbs_vcrun2005_script.js.html @@ -0,0 +1,84 @@ + + + + + JSDoc: Source: Engines/Wine/Verbs/vcrun2005/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Verbs/vcrun2005/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+include(["engines", "wine", "plugins", "override_dll"]);
+include(["utils", "functions", "net", "resource"]);
+include(["engines", "wine", "verbs", "luna"]);
+
+/**
+* Verb to install vcrun2005
+* @returns {Wine} Wine object
+*/
+Wine.prototype.vcrun2005 = function () {
+    var setupFile = new Resource()
+        .wizard(this._wizard)
+        .url("http://download.microsoft.com/download/8/B/4/8B42259F-5D70-43F4-AC2E-4B208FD8D66A/vcredist_x86.EXE")
+        .checksum("b8fab0bb7f62a24ddfe77b19cd9a1451abd7b847")
+        .name("vcredist_x86.EXE")
+        .get();
+
+    this.run(setupFile, "/q")
+        .wait(tr("Please wait while {0} is installed ...", "Microsoft Visual C++ 2005 Redistributable (x86)"));
+
+    var dlls = [
+        "atl80",
+        "msvcm80",
+        "msvcp80",
+        "msvcr80",
+        "vcomp"
+    ];
+    this.overrideDLL()
+        .set("native, builtin", dlls)
+        .do();
+
+    return this;
+};
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Verbs_vcrun2008_script.js.html b/docs/jsdoc/Engines_Wine_Verbs_vcrun2008_script.js.html new file mode 100644 index 0000000000..3884182e52 --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Verbs_vcrun2008_script.js.html @@ -0,0 +1,96 @@ + + + + + JSDoc: Source: Engines/Wine/Verbs/vcrun2008/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Verbs/vcrun2008/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+include(["engines", "wine", "plugins", "override_dll"]);
+include(["utils", "functions", "net", "resource"]);
+include(["engines", "wine", "verbs", "luna"]);
+
+/**
+* Verb to install vcrun2008
+* @returns {Wine} Wine object
+*/
+Wine.prototype.vcrun2008 = function () {
+    var setupFile32 = new Resource()
+        .wizard(this._wizard)
+        .url("http://download.microsoft.com/download/5/D/8/5D8C65CB-C849-4025-8E95-C3966CAFD8AE/vcredist_x86.exe")
+        .checksum("470640aa4bb7db8e69196b5edb0010933569e98d")
+        .name("vcredist_x86.exe")
+        .get();
+
+    this.run(setupFile32, "/q")
+        .wait(tr("Please wait while {0} is installed ...", "Microsoft Visual C++ 2008 Redistributable (x86)"));
+
+    if (this.architecture() == "amd64") {
+        var setupFile64 = new Resource()
+            .wizard(this._wizard)
+            .url("https://download.microsoft.com/download/5/D/8/5D8C65CB-C849-4025-8E95-C3966CAFD8AE/vcredist_x64.exe")
+            .checksum("a7c83077b8a28d409e36316d2d7321fa0ccdb7e8")
+            .name("vcredist_x64.exe")
+            .get();
+
+        this.run(setupFile64, "/q")
+            .wait(tr("Please wait while {0} is installed ...", "Microsoft Visual C++ 2008 Redistributable (x64)"));
+    }
+
+    var dlls = [
+        "atl90",
+        "msvcm90",
+        "msvcp90",
+        "msvcr90",
+        "vcomp90",
+    ];
+    this.overrideDLL()
+        .set("native, builtin", dlls)
+        .do();
+
+    return this;
+};
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Verbs_vcrun2010_script.js.html b/docs/jsdoc/Engines_Wine_Verbs_vcrun2010_script.js.html new file mode 100644 index 0000000000..af668e90b8 --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Verbs_vcrun2010_script.js.html @@ -0,0 +1,95 @@ + + + + + JSDoc: Source: Engines/Wine/Verbs/vcrun2010/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Verbs/vcrun2010/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+include(["engines", "wine", "plugins", "override_dll"]);
+include(["utils", "functions", "net", "resource"]);
+include(["engines", "wine", "verbs", "luna"]);
+
+/**
+* Verb to install vcrun2010
+* @returns {Wine} Wine object
+*/
+Wine.prototype.vcrun2010 = function () {
+    var setupFile32 = new Resource()
+        .wizard(this._wizard)
+        .url("http://download.microsoft.com/download/5/B/C/5BC5DBB3-652D-4DCE-B14A-475AB85EEF6E/vcredist_x86.exe")
+        .checksum("372d9c1670343d3fb252209ba210d4dc4d67d358")
+        .name("vcredist_x86.exe")
+        .get();
+
+    this.run(setupFile32, "/q")
+        .wait(tr("Please wait while {0} is installed ...", "Microsoft Visual C++ 2010 Redistributable (x86)"));
+
+    if (this.architecture() == "amd64") {
+        var setupFile64 = new Resource()
+            .wizard(this._wizard)
+            .url("http://download.microsoft.com/download/A/8/0/A80747C3-41BD-45DF-B505-E9710D2744E0/vcredist_x64.exe")
+            .checksum("027d0c2749ec5eb21b031f46aee14c905206f482")
+            .name("vcredist_x64.exe")
+            .get();
+
+        this.run(setupFile64, "/q")
+            .wait(tr("Please wait while {0} is installed ...", "Microsoft Visual C++ 2010 Redistributable (x64)"));
+    }
+
+    var dlls = [
+        "atl100",
+        "msvcp100",
+        "msvcr100",
+        "vcomp100",
+    ];
+    this.overrideDLL()
+        .set("native, builtin", dlls)
+        .do();
+
+    return this;
+};
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Verbs_vcrun2012_script.js.html b/docs/jsdoc/Engines_Wine_Verbs_vcrun2012_script.js.html new file mode 100644 index 0000000000..dad1c668ad --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Verbs_vcrun2012_script.js.html @@ -0,0 +1,95 @@ + + + + + JSDoc: Source: Engines/Wine/Verbs/vcrun2012/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Verbs/vcrun2012/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+include(["engines", "wine", "plugins", "override_dll"]);
+include(["utils", "functions", "net", "resource"]);
+include(["engines", "wine", "verbs", "luna"]);
+
+/**
+* Verb to install vcrun2012
+* @returns {Wine} Wine object
+*/
+Wine.prototype.vcrun2012 = function () {
+    var setupFile32 = new Resource()
+        .wizard(this._wizard)
+        .url("http://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x86.exe")
+        .checksum("96b377a27ac5445328cbaae210fc4f0aaa750d3f")
+        .name("vcredist_x86.exe")
+        .get();
+
+    this.run(setupFile32, "/q")
+        .wait(tr("Please wait while {0} is installed ...", "Microsoft Visual C++ 2012 Redistributable (x86)"));
+
+    if (this.architecture() == "amd64") {
+        var setupFile64 = new Resource()
+            .wizard(this._wizard)
+            .url("http://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x64.exe")
+            .checksum("1a5d93dddbc431ab27b1da711cd3370891542797")
+            .name("vcredist_x64")
+            .get();
+
+        this.run(setupFile64, "/q")
+            .wait(tr("Please wait while {0} is installed ...", "Microsoft Visual C++ 2012 Redistributable (x64)"));
+    }
+
+    var dlls = [
+        "atl110",
+        "msvcp110",
+        "msvcr110",
+        "vcomp110"
+    ];
+    this.overrideDLL()
+        .set("native, builtin", dlls)
+        .do();
+
+    return this;
+};
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Verbs_vcrun2013_script.js.html b/docs/jsdoc/Engines_Wine_Verbs_vcrun2013_script.js.html new file mode 100644 index 0000000000..78a65150ba --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Verbs_vcrun2013_script.js.html @@ -0,0 +1,89 @@ + + + + + JSDoc: Source: Engines/Wine/Verbs/vcrun2013/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Verbs/vcrun2013/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+include(["engines", "wine", "plugins", "override_dll"]);
+include(["utils", "functions", "net", "resource"]);
+include(["engines", "wine", "verbs", "luna"]);
+
+/**
+* Verb to install vcrun2013
+* @returns {Wine} Wine object
+*/
+Wine.prototype.vcrun2013 = function () {
+    var setupFile32 = new Resource()
+        .wizard(this._wizard)
+        .url("http://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3737CD5CD6E3/vcredist_x86.exe")
+        .checksum("df7f0a73bfa077e483e51bfb97f5e2eceedfb6a3")
+        .name("vcredist_x86.exe")
+        .get();
+
+    this.run(setupFile32, "/q")
+        .wait(tr("Please wait while {0} is installed ...", "Microsoft Visual C++ 2013 Redistributable (x86)"));
+
+    if (this.architecture() == "amd64") {
+        var setupFile64 = new Resource()
+            .wizard(this._wizard)
+            .url("http://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3737CD5CD6E3/vcredist_x64.exe")
+            .checksum("8bf41ba9eef02d30635a10433817dbb6886da5a2")
+            .name("vcredist_x64.exe")
+            .get();
+
+        this.run(setupFile64, "/q")
+            .wait(tr("Please wait while {0} is installed ...", "Microsoft Visual C++ 2013 Redistributable (x64)"));
+    }
+
+    this.overrideDLL()
+        .set("native, builtin", ["atl120", "msvcp120", "msvcr120", "vcomp120"])
+        .do();
+
+    return this;
+};
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Verbs_vcrun2015_script.js.html b/docs/jsdoc/Engines_Wine_Verbs_vcrun2015_script.js.html new file mode 100644 index 0000000000..133360ca35 --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Verbs_vcrun2015_script.js.html @@ -0,0 +1,105 @@ + + + + + JSDoc: Source: Engines/Wine/Verbs/vcrun2015/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Verbs/vcrun2015/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+include(["engines", "wine", "plugins", "override_dll"]);
+include(["utils", "functions", "net", "resource"]);
+include(["engines", "wine", "verbs", "luna"]);
+
+/**
+* Verb to install vcrun2015
+* @returns {Wine} Wine object
+*/
+Wine.prototype.vcrun2015 = function () {
+    var setupFile32 = new Resource()
+        .wizard(this._wizard)
+        .url("https://download.microsoft.com/download/9/3/F/93FCF1E7-E6A4-478B-96E7-D4B285925B00/vc_redist.x86.exe")
+        .checksum("bfb74e498c44d3a103ca3aa2831763fb417134d1")
+        .name("vc_redist.x86.exe")
+        .get();
+
+    this.run(setupFile32, "/q")
+        .wait(tr("Please wait while {0} is installed ...", "Microsoft Visual C++ 2015 Redistributable (x86)"));
+
+    if (this.architecture() == "amd64") {
+        var setupFile64 = new Resource()
+            .wizard(this._wizard)
+            .url("https://download.microsoft.com/download/9/3/F/93FCF1E7-E6A4-478B-96E7-D4B285925B00/vc_redist.x64.exe")
+            .checksum("3155cb0f146b927fcc30647c1a904cd162548c8c")
+            .name("vc_redist.x64.exe")
+            .get();
+
+        this.run(setupFile64, "/q")
+            .wait(tr("Please wait while {0} is installed ...", "Microsoft Visual C++ 2015 Redistributable (x64)"));
+    }
+
+    var dlls = [
+        "api-ms-win-crt-conio-l1-1-0",
+        "api-ms-win-crt-heap-l1-1-0",
+        "api-ms-win-crt-locale-l1-1-0",
+        "api-ms-win-crt-math-l1-1-0",
+        "api-ms-win-crt-runtime-l1-1-0",
+        "api-ms-win-crt-stdio-l1-1-0",
+        "api-ms-win-crt-time-l1-1-0",
+        "atl140",
+        "concrt140",
+        "msvcp140",
+        "msvcr140",
+        "ucrtbase",
+        "vcomp140",
+        "vcruntime140"
+    ];
+    this.overrideDLL()
+        .set("native, builtin", dlls)
+        .do();
+
+    return this;
+};
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Verbs_vcrun2017_script.js.html b/docs/jsdoc/Engines_Wine_Verbs_vcrun2017_script.js.html new file mode 100644 index 0000000000..e792e73d91 --- /dev/null +++ b/docs/jsdoc/Engines_Wine_Verbs_vcrun2017_script.js.html @@ -0,0 +1,105 @@ + + + + + JSDoc: Source: Engines/Wine/Verbs/vcrun2017/script.js + + + + + + + + + + +
+ +

Source: Engines/Wine/Verbs/vcrun2017/script.js

+ + + + + + +
+
+
include(["engines", "wine", "engine", "object"]);
+include(["engines", "wine", "plugins", "override_dll"]);
+include(["utils", "functions", "net", "resource"]);
+include(["engines", "wine", "verbs", "luna"]);
+
+/**
+* Verb to install vcrun2017
+* @returns {Wine} Wine object
+*/
+Wine.prototype.vcrun2017 = function () {
+    var setupFile32 = new Resource()
+        .wizard(this._wizard)
+        .url("https://download.visualstudio.microsoft.com/download/pr/11100229/78c1e864d806e36f6035d80a0e80399e/VC_redist.x86.exe")
+        .checksum("370583c380c26064885289037380af7d8d5f4e81")
+        .name("vc_redist.x86.exe")
+        .get();
+
+    this.run(setupFile32, "/q")
+        .wait(tr("Please wait while {0} is installed ...", "Microsoft Visual C++ 2017 Redistributable (x86)"));
+
+    if (this.architecture() == "amd64") {
+        var setupFile64 = new Resource()
+            .wizard(this._wizard)
+            .url("https://download.visualstudio.microsoft.com/download/pr/11100230/15ccb3f02745c7b206ad10373cbca89b/VC_redist.x64.exe")
+            .checksum("bdb645ebaf3c91eceb1a143be6793ca57e6435c3")
+            .name("vc_redist.x64.exe")
+            .get();
+
+        this.run(setupFile64, "/q")
+            .wait(tr("Please wait while {0} is installed ...", "Microsoft Visual C++ 2017 Redistributable (x64)"));
+    }
+
+    var dlls = [
+        "api-ms-win-crt-conio-l1-1-0",
+        "api-ms-win-crt-heap-l1-1-0",
+        "api-ms-win-crt-locale-l1-1-0",
+        "api-ms-win-crt-math-l1-1-0",
+        "api-ms-win-crt-runtime-l1-1-0",
+        "api-ms-win-crt-stdio-l1-1-0",
+        "api-ms-win-crt-time-l1-1-0",
+        "atl140",
+        "concrt140",
+        "msvcp140",
+        "msvcr140",
+        "ucrtbase",
+        "vcomp140",
+        "vcruntime140"
+    ];
+    this.overrideDLL()
+        .set("native, builtin", dlls)
+        .do();
+
+    return this;
+};
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Engines_Wine_Verbs_xact_script.js.html b/docs/jsdoc/Engines_Wine_Verbs_xact_script.js.html index cab3304f6e..0456a60f70 100644 --- a/docs/jsdoc/Engines_Wine_Verbs_xact_script.js.html +++ b/docs/jsdoc/Engines_Wine_Verbs_xact_script.js.html @@ -27,37 +27,37 @@

Source: Engines/Wine/Verbs/xact/script.js

include(["engines", "wine", "engine", "object"]);
+include(["engines", "wine", "plugins", "regsvr32"]);
 include(["utils", "functions", "net", "resource"]);
-include(["Utils", "Functions", "filesystem", "files"]);
+include(["utils", "functions", "filesystem", "files"]);
 
 /**
-* Inspired from d3dx9 verb, winetricks xact
-* -> https://github.com/Winetricks/winetricks/blob/63bc6dbe612d017a0cb6bf6e4cde265162d75bca/src/winetricks#L9643
-* @returns {Wine}
+* Verb to install xact
+* @returns {Wine} Wine object
 */
 Wine.prototype.xact = function () {
     var that = this;
 
-    var extractFiles = function(progressBar, filesToExtract, destination, pattern, directory) {
+    var extractFiles = function (progressBar, filesToExtract, destination, pattern, directory) {
         var numberOfExtractedFiles = 0;
-        filesToExtract.forEach(function(cabFile) {
+        filesToExtract.forEach(function (cabFile) {
             print(tr("Extracting {0} ...", cabFile));
             progressBar.setText(tr("Extracting {0} ...", "Xact"));
             progressBar.setProgressPercentage(numberOfExtractedFiles * 100 / filesToExtract.length);
 
             new CabExtract()
-                .archive(that.prefixDirectory + "/drive_c/"+ directory + cabFile)
+                .archive(that.prefixDirectory() + "/drive_c/"+ directory + cabFile)
                 .to(destination)
                 .extract(["-L", "-F", pattern]);
 
             numberOfExtractedFiles++;
         });
     };
-    
-    //This function executes regsvr32 on the dlls present in dllToRegsvr 
-    var regsvr32Xact = function(progressBar, dllToRegsvr) {
+
+    //This function executes regsvr32 on the dlls present in dllToRegsvr
+    var regsvr32Xact = function (progressBar, dllToRegsvr) {
         var numberOfExtractedFiles = 0;
-        dllToRegsvr.forEach(function(dll) {
+        dllToRegsvr.forEach(function (dll) {
             print(tr("Registering {0} ...", dll));
             progressBar.setText(tr("Registering {0} ...", "Xact"));
             progressBar.setProgressPercentage(numberOfExtractedFiles * 100 / filesToExtract.length);
@@ -84,7 +84,7 @@ 

Source: Engines/Wine/Verbs/xact/script.js

//---------------------------------------------------------Extract xactengine*.dll-------------------------------------------- new CabExtract() .archive(setupFile) - .to(this.prefixDirectory + "/drive_c/xact_x86/") + .to(this.prefixDirectory() + "/drive_c/xact_x86/") .extract(["-L", "-F", "*_xact_*x86*"]); filesToExtract = [ @@ -94,30 +94,30 @@

Source: Engines/Wine/Verbs/xact/script.js

"fev2010_xact_x86.cab", "jun2006_xact_x86.cab", "jun2007_xact_x86.cab", "jun2008_xact_x86.cab", "jun2010_xact_x86.cab", "mar2008_xact_x86.cab", "mar2009_xact_x86.cab", "nov2007_xact_x86.cab", "nov2008_xact_x86.cab", - "oct2006_xact_x86.cab", + "oct2006_xact_x86.cab", ]; extractFiles(progressBar, filesToExtract, that.system32directory(), "xactengine*.dll", "xact_x86/"); - - + + //---------------------------------------------------------Extract X3Daudio*.dll---------------------------------------------- new CabExtract() .archive(setupFile) - .to(this.prefixDirectory + "/drive_c/x3daudio_x86/") + .to(this.prefixDirectory() + "/drive_c/x3daudio_x86/") .extract(["-L", "-F", "*_x3daudio_*x86*"]); - + filesToExtract = [ "feb2010_x3daudio_x86.cab", "jun2008_x3daudio_x86.cab", "mar2008_x3daudio_x86.cab", "mar2009_x3daudio_x86.cab", "nov2007_x3daudio_x86.cab", "nov2008_x3daudio_x86.cab" ]; extractFiles(progressBar, filesToExtract, that.system32directory(), "X3Daudio*.dll", "x3daudio_x86/"); - - + + //---------------------------------------------------------Extract XAudio*.dll and XAPOFX*.dll--------------------------------- new CabExtract() .archive(setupFile) - .to(this.prefixDirectory + "/drive_c/xaudio_x86/") + .to(this.prefixDirectory() + "/drive_c/xaudio_x86/") .extract(["-L", "-F", "*_xaudio_*x86*"]); - + filesToExtract = [ "aug2008_xaudio_x86.cab", "aug2009_xaudio_x86.cab", "feb2010_xaudio_x86.cab", "jun2008_xaudio_x86.cab", "jun2010_xaudio_x86.cab", "mar2008_xaudio_x86.cab", @@ -125,33 +125,33 @@

Source: Engines/Wine/Verbs/xact/script.js

]; extractFiles(progressBar, filesToExtract, that.system32directory(), "XAudio*.dll", "xaudio_x86/"); extractFiles(progressBar, filesToExtract, that.system32directory(), "XAPOFX*.dll", "xaudio_x86/"); - + var xactToRegserv = [ "xactengine2_1.dll", "xactengine2_2.dll", "xactengine2_3.dll", "xactengine2_4.dll", "xactengine2_5.dll", "xactengine2_7.dll", "xactengine2_8.dll", "xactengine2_9.dll", "xactengine2_10.dll", "xactengine3_0.dll", "xactengine3_1.dll", "xactengine3_2.dll", "xactengine3_3.dll", "xactengine3_4.dll", "xactengine3_5.dll", "xactengine3_7.dll" ]; - + var xaudioToRegserv = [ "xaudio2_0.dll", "xaudio2_1.dll", "xaudio2_2.dll", "xaudio2_3.dll", "xaudio2_4.dll", "xaudio2_5.dll", "xaudio2_6.dll", "xaudio2_7.dll", "xaudio2_9.dll" ]; - + regsvr32Xact(progressBar, xactToRegserv); regsvr32Xact(progressBar, xaudioToRegserv); - - remove(this.prefixDirectory + "/drive_c/xact_x86/"); - remove(this.prefixDirectory + "/drive_c/x3daudio_x86/"); - remove(this.prefixDirectory + "/drive_c/xaudio_x86/"); - - + + remove(this.prefixDirectory() + "/drive_c/xact_x86/"); + remove(this.prefixDirectory() + "/drive_c/x3daudio_x86/"); + remove(this.prefixDirectory() + "/drive_c/xaudio_x86/"); + + if (this.architecture() == "amd64") { //---------------------------------------------------------Extract xactengine*.dll (x64)-------------------------------------------- new CabExtract() .archive(setupFile) - .to(this.prefixDirectory + "/drive_c/xact_x64/") + .to(this.prefixDirectory() + "/drive_c/xact_x64/") .extract(["-L", "-F", "*_xact_*x64*"]); filesToExtract = [ @@ -161,30 +161,30 @@

Source: Engines/Wine/Verbs/xact/script.js

"fev2010_xact_x64.cab", "jun2006_xact_x64.cab", "jun2007_xact_x64.cab", "jun2008_xact_x64.cab", "jun2010_xact_x64.cab", "mar2008_xact_x64.cab", "mar2009_xact_x64.cab", "nov2007_xact_x64.cab", "nov2008_xact_x64.cab", - "oct2006_xact_x64.cab", + "oct2006_xact_x64.cab", ]; extractFiles(progressBar, filesToExtract, that.system64directory(), "xactengine*.dll", "xact_x64/"); - - + + //---------------------------------------------------------Extract X3Daudio*.dll (x64)---------------------------------------------- new CabExtract() .archive(setupFile) - .to(this.prefixDirectory + "/drive_c/x3daudio_x64/") + .to(this.prefixDirectory() + "/drive_c/x3daudio_x64/") .extract(["-L", "-F", "*_x3daudio_*x64*"]); - + filesToExtract = [ "feb2010_x3daudio_x64.cab", "jun2008_x3daudio_x64.cab", "mar2008_x3daudio_x64.cab", "mar2009_x3daudio_x64.cab", "nov2007_x3daudio_x64.cab", "nov2008_x3daudio_x64.cab" ]; extractFiles(progressBar, filesToExtract, that.system64directory(), "X3Daudio*.dll", "x3daudio_x64/"); - - + + //---------------------------------------------------------Extract XAudio*.dll and XAPOFX*.dll (x64)--------------------------------- new CabExtract() .archive(setupFile) - .to(this.prefixDirectory + "/drive_c/xaudio_x64/") + .to(this.prefixDirectory() + "/drive_c/xaudio_x64/") .extract(["-L", "-F", "*_xaudio_*64*"]); - + filesToExtract = [ "aug2008_xaudio_x64.cab", "aug2009_xaudio_x64.cab", "feb2010_xaudio_x64.cab", "jun2008_xaudio_x64.cab", "jun2010_xaudio_x64.cab", "mar2008_xaudio_x64.cab", @@ -192,13 +192,13 @@

Source: Engines/Wine/Verbs/xact/script.js

]; extractFiles(progressBar, filesToExtract, that.system64directory(), "XAudio*.dll", "xaudio_x64/"); extractFiles(progressBar, filesToExtract, that.system64directory(), "XAPOFX*.dll", "xaudio_x64/"); - - remove(this.prefixDirectory + "/drive_c/xact_x64/"); - remove(this.prefixDirectory + "/drive_c/x3daudio_x64/"); - remove(this.prefixDirectory + "/drive_c/xaudio_x64/"); - + + remove(this.prefixDirectory() + "/drive_c/xact_x64/"); + remove(this.prefixDirectory() + "/drive_c/x3daudio_x64/"); + remove(this.prefixDirectory() + "/drive_c/xaudio_x64/"); + } - + return this; }; @@ -212,7 +212,7 @@

Source: Engines/Wine/Verbs/xact/script.js


diff --git a/docs/jsdoc/Extractor.html b/docs/jsdoc/Extractor.html new file mode 100644 index 0000000000..4ebbc3da41 --- /dev/null +++ b/docs/jsdoc/Extractor.html @@ -0,0 +1,904 @@ + + + + + JSDoc: Class: Extractor + + + + + + + + + + +
+ +

Class: Extractor

+ + + + + + +
+ +
+ +

Extractor()

+ + +
+ +
+
+ + + + + + +

new Extractor()

+ + + + + + +
+ Extractor prototype +
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + +

Methods

+ + + + + + + +

archive(archive) → {Extractor}

+ + + + + + +
+ sets archive +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
archive + + +string + + + + archive which shall be extracted
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ Extractor object +
+ + + +
+
+ Type +
+
+ +Extractor + + +
+
+ + + + + + + + + + + + + +

extract() → {void}

+ + + + + + +
+ extracts archive +
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +void + + +
+
+ + + + + + + + + + + + + +

message(progressMessage) → {Extractor}

+ + + + + + +
+ sets progress message text +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
progressMessage + + +string + + + + progress message
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ Extractor object +
+ + + +
+
+ Type +
+
+ +Extractor + + +
+
+ + + + + + + + + + + + + +

to(destination) → {Extractor}

+ + + + + + +
+ sets destination +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
destination + + +string + + + + place where the archive shall be extracted
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ Extractor object +
+ + + +
+
+ Type +
+
+ +Extractor + + +
+
+ + + + + + + + + + + + + +

wizard(wizard) → {Extractor}

+ + + + + + +
+ sets wizard +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
wizard + + +SetupWizard + + + + setup wizard
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ Extractor object +
+ + + +
+
+ Type +
+
+ +Extractor + + +
+
+ + + + + + + + + + + + + +
+ +
+ + + + +
+ + + +
+ + + + + + + \ No newline at end of file diff --git a/docs/jsdoc/Resource.html b/docs/jsdoc/Resource.html new file mode 100644 index 0000000000..99201c15a2 --- /dev/null +++ b/docs/jsdoc/Resource.html @@ -0,0 +1,1222 @@ + + + + + JSDoc: Class: Resource + + + + + + + + + + +
+ +

Class: Resource

+ + + + + + +
+ +
+ +

Resource()

+ + +
+ +
+
+ + + + + + +

new Resource()

+ + + + + + +
+ Resource prototype +
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + +

Methods

+ + + + + + + +

algorithm(algorithm) → {Resource}

+ + + + + + +
+ sets algorithm +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
algorithm + + +string + + + + algorithm to verify the checksum (e.g. "SHA")
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ Resource object +
+ + + +
+
+ Type +
+
+ +Resource + + +
+
+ + + + + + + + + + + + + +

checksum(checksum) → {Resource}

+ + + + + + +
+ sets checksum which shall be used to verify the resource +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
checksum + + +string + + + + checksum
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ Resource object +
+ + + +
+
+ Type +
+
+ +Resource + + +
+
+ + + + + + + + + + + + + +

directory(directory) → {Resource}

+ + + + + + +
+ sets directory inside the resource directory where the Resource is stored +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
directory + + +string + + + + directory path
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ Resource object +
+ + + +
+
+ Type +
+
+ +Resource + + +
+
+ + + + + + + + + + + + + +

get() → {Resource}

+ + + + + + +
+ returns the Resource +
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ downloaded Resource object +
+ + + +
+
+ Type +
+
+ +Resource + + +
+
+ + + + + + + + + + + + + +

name(name) → {Resource}

+ + + + + + +
+ sets name +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
name + + +string + + + + name of the resource
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ Resource object +
+ + + +
+
+ Type +
+
+ +Resource + + +
+
+ + + + + + + + + + + + + +

url(url) → {Resource}

+ + + + + + +
+ sets URL +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
url + + +string + + + + URL
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ Resource object +
+ + + +
+
+ Type +
+
+ +Resource + + +
+
+ + + + + + + + + + + + + +

wizard(wizard) → {Resource}

+ + + + + + +
+ sets wizard +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
wizard + + +SetupWizard + + + + setup wizard
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ Resource object +
+ + + +
+
+ Type +
+
+ +Resource + + +
+
+ + + + + + + + + + + + + +
+ +
+ + + + +
+ + + +
+ + + + + + + \ No newline at end of file diff --git a/docs/jsdoc/ShortcutReader.html b/docs/jsdoc/ShortcutReader.html new file mode 100644 index 0000000000..1a922ee879 --- /dev/null +++ b/docs/jsdoc/ShortcutReader.html @@ -0,0 +1,794 @@ + + + + + JSDoc: Class: ShortcutReader + + + + + + + + + + +
+ +

Class: ShortcutReader

+ + + + + + +
+ +
+ +

ShortcutReader()

+ + +
+ +
+
+ + + + + + +

new ShortcutReader()

+ + + + + + +
+ ShortcutReader prototype +
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + +

Methods

+ + + + + + + +

container() → {string}

+ + + + + + +
+ returns container of shortcut +
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ container +
+ + + +
+
+ Type +
+
+ +string + + +
+
+ + + + + + + + + + + + + +

of(shortcut) → {void}

+ + + + + + +
+ sets shortcut +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
shortcut + + +string + + + + shortcut
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +void + + +
+
+ + + + + + + + + + + + + +

run(userArguments) → {void}

+ + + + + + +
+ runs shortcut +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
userArguments + + +array + + + + arguments
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +void + + +
+
+ + + + + + + + + + + + + +

stop() → {void}

+ + + + + + +
+ stops running shortcut +
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +void + + +
+
+ + + + + + + + + + + + + +

uninstall() → {void}

+ + + + + + +
+ uninstalls shortcut +
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +void + + +
+
+ + + + + + + + + + + + + +
+ +
+ + + + +
+ + + +
+ + + + + + + \ No newline at end of file diff --git a/docs/jsdoc/Utils_Functions_Apps_Resources_script.js.html b/docs/jsdoc/Utils_Functions_Apps_Resources_script.js.html new file mode 100644 index 0000000000..9300c4fc5c --- /dev/null +++ b/docs/jsdoc/Utils_Functions_Apps_Resources_script.js.html @@ -0,0 +1,86 @@ + + + + + JSDoc: Source: Utils/Functions/Apps/Resources/script.js + + + + + + + + + + +
+ +

Source: Utils/Functions/Apps/Resources/script.js

+ + + + + + +
+
+
/**
+* AppResource prototype
+* @constructor
+*/
+function AppResource() {
+    this._appsManager = Bean("repositoryManager");
+}
+
+/**
+* sets application
+* @param {string} application application of the resource
+* @returns {AppResource} AppResource object
+*/
+AppResource.prototype.application = function (application) {
+    this._application = application;
+    return this;
+}
+
+/**
+* returns resource
+* @param {string} resourceName name of the resource
+* @returns {Resource} found resource
+*/
+AppResource.prototype.get = function (resourceName) {
+    var application = this._appsManager.getApplication(this._application);
+    var foundResource = null;
+    if (application != null && application.resources != null) {
+        application.resources.forEach(function (resource) {
+            if (resource.name == resourceName) {
+                foundResource = resource.content;
+            }
+        });
+    }
+
+    return foundResource;
+}
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Utils_Functions_Filesystem_Extract_script.js.html b/docs/jsdoc/Utils_Functions_Filesystem_Extract_script.js.html new file mode 100644 index 0000000000..cf8e0e3397 --- /dev/null +++ b/docs/jsdoc/Utils_Functions_Filesystem_Extract_script.js.html @@ -0,0 +1,193 @@ + + + + + JSDoc: Source: Utils/Functions/Filesystem/Extract/script.js + + + + + + + + + + +
+ +

Source: Utils/Functions/Filesystem/Extract/script.js

+ + + + + + +
+
+
include(["utils", "functions", "filesystem", "files"]);
+
+/**
+* CabExtract prototype
+* @constructor
+*/
+function CabExtract() {
+}
+
+/**
+* sets wizard
+* @param {SetupWizard} wizard setup wizard
+* @returns {CabExtract} CabExtract object
+*/
+CabExtract.prototype.wizard = function (wizard) {
+    this._wizard = wizard;
+    return this;
+}
+
+/**
+* sets archive
+* @param {string} archive archive which shall be extracted
+* @returns {CabExtract} CabExtract object
+*/
+CabExtract.prototype.archive = function (archive) {
+    this._archive = archive;
+    return this;
+}
+
+/**
+* sets progress message text
+* @param {string} progressMessage progress message
+* @returns {CabExtract} CabExtract object
+*/
+CabExtract.prototype.message = function (progressMessage) {
+    this._progressMessage = progressMessage;
+    return this;
+}
+
+/**
+* sets destination
+* @param {string} destination place where the archive shall be extracted
+* @returns {CabExtract} CabExtract object
+*/
+CabExtract.prototype.to = function (destination) {
+    this._destination = destination;
+    return this;
+}
+
+/**
+* extracts archive
+* @param {string} args arguments for the extraction
+* @returns {void}
+*/
+CabExtract.prototype.extract = function (args) {
+    if (!this._progressMessage) {
+        this._progressMessage = tr("Please wait while {0} is extracted ...", this._archive);
+    }
+
+    if (this._wizard) {
+        var progressBar = this._wizard.progressBar(this._progressMessage);
+    }
+
+    var processArguments;
+    if (args) {
+        processArguments = ["cabextract"].concat(args).concat([this._archive]);
+    } else {
+        processArguments = ["cabextract", this._archive];
+    }
+
+    print("Extracting to: " + this._destination);
+    mkdir(this._destination);
+    var processBuilder = new java.lang.ProcessBuilder(Java.to(processArguments, "java.lang.String[]"));
+    processBuilder.directory(new java.io.File(this._destination));
+    processBuilder.inheritIO();
+    processBuilder.start().waitFor();
+}
+
+/**
+* Extractor prototype
+* @constructor
+*/
+function Extractor() {
+    this._extractor = Bean("extractor");
+}
+
+/**
+* sets wizard
+* @param {SetupWizard} wizard setup wizard
+* @returns {Extractor} Extractor object
+*/
+Extractor.prototype.wizard = function (wizard) {
+    this._wizard = wizard;
+    return this;
+}
+
+/**
+* sets archive
+* @param {string} archive archive which shall be extracted
+* @returns {Extractor} Extractor object
+*/
+Extractor.prototype.archive = function (archive) {
+    this._archive = archive;
+    return this;
+}
+
+/**
+* sets progress message text
+* @param {string} progressMessage progress message
+* @returns {Extractor} Extractor object
+*/
+Extractor.prototype.message = function (progressMessage) {
+    this._progressMessage = progressMessage;
+    return this;
+}
+
+/**
+* sets destination
+* @param {string} destination place where the archive shall be extracted
+* @returns {Extractor} Extractor object
+*/
+Extractor.prototype.to = function (destination) {
+    this._destination = destination;
+    return this;
+}
+
+/**
+* extracts archive
+* @returns {void}
+*/
+Extractor.prototype.extract = function () {
+    if (!this._progressMessage) {
+        this._progressMessage = tr("Please wait while {0} is extracted ...", this._archive);
+    }
+
+    var progressBar = this._wizard.progressBar(this._progressMessage);
+
+    mkdir(this._destination);
+    this._extractor.uncompress(this._archive, this._destination, function (progress) {
+        progressBar.accept(progress);
+    });
+}
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Utils_Functions_Filesystem_Files_script.js.html b/docs/jsdoc/Utils_Functions_Filesystem_Files_script.js.html new file mode 100644 index 0000000000..3c46a496eb --- /dev/null +++ b/docs/jsdoc/Utils_Functions_Filesystem_Files_script.js.html @@ -0,0 +1,212 @@ + + + + + JSDoc: Source: Utils/Functions/Filesystem/Files/script.js + + + + + + + + + + +
+ +

Source: Utils/Functions/Filesystem/Files/script.js

+ + + + + + +
+
+
var fileAnalyser = Bean("fileAnalyser");
+var fileUtilities = Bean("fileUtilities");
+
+/**
+* creates directory
+* @param {string} directoryPath directory path
+* @returns {void}
+*/
+function mkdir(directoryPath) { // eslint-disable-line no-unused-vars
+    fileUtilities.mkdir(new java.io.File(directoryPath))
+}
+
+/**
+* check if file exists
+* @param {string} filePath file path
+* @returns {boolean} true if file exists
+*/
+function fileExists(filePath) { // eslint-disable-line no-unused-vars
+    return new java.io.File(filePath).exists();
+}
+
+/**
+* returns file content
+* @param {string} filePath file path
+* @returns {string} content
+*/
+function cat(filePath) { // eslint-disable-line no-unused-vars
+    return Bean("fileUtilities").getFileContent(new java.io.File(filePath));
+}
+
+/**
+* copies file
+* @param {string} source source
+* @param {string} target target
+* @returns {void}
+*/
+function cp(source, target) { // eslint-disable-line no-unused-vars
+    return Bean("fileUtilities").copy(new java.io.File(source), new java.io.File(target));
+}
+
+/**
+* returns file size
+* @param {string} filePath file path
+* @returns {number} file size
+*/
+function getFileSize(filePath) { // eslint-disable-line no-unused-vars
+    return Bean("fileUtilities").getSize(new java.io.File(filePath));
+}
+
+/**
+* returns file name
+* @param {string} filePath file path
+* @returns {string} file name
+*/
+function fileName(filePath) { // eslint-disable-line no-unused-vars
+    return new java.io.File(filePath).getName();
+}
+
+/**
+* creates link
+* @param {string} target target
+* @param {string} destination destination
+* @returns {void}
+*/
+function lns(target, destination) { // eslint-disable-line no-unused-vars
+    return Bean("fileUtilities").createSymbolicLink(new java.io.File(destination), new java.io.File(target));
+}
+
+/**
+* removes file
+* @param {string} filePath file path
+* @returns {void}
+*/
+function remove(filePath) { // eslint-disable-line no-unused-vars
+    return Bean("fileUtilities").remove(new java.io.File(filePath));
+}
+
+/**
+* creates empty file
+* @param {string} filePath file path
+* @returns {void}
+*/
+function touch(filePath) { // eslint-disable-line no-unused-vars
+    if (!fileExists(filePath)) {
+        Bean("fileUtilities").writeToFile(new java.io.File(filePath), "");
+    }
+}
+
+/**
+* writes content into file
+* @param {string} filePath file path
+* @param {string} content content which shall be written
+* @returns {void}
+*/
+function writeToFile(filePath, content) { // eslint-disable-line no-unused-vars
+    Bean("fileUtilities").writeToFile(new java.io.File(filePath), content);
+}
+
+/**
+* creates temporary file
+* @param {string} extension file extension
+* @returns {string} file path of created temporary file
+*/
+function createTempFile(extension) { // eslint-disable-line no-unused-vars
+    var tmpFile = Bean("fileUtilities").createTmpFile(extension);
+    return tmpFile.getAbsolutePath();
+}
+
+/**
+* Checksum prototype
+* @constructor
+*/
+function Checksum() {
+    this._method = "SHA";
+    this._checksumCalculator = Bean("checksumCalculator");
+}
+
+/**
+* sets wizard
+* @param {SetupWizard} wizard setup wizard
+* @returns {Checksum} Checksum object
+*/
+Checksum.prototype.wizard = function (wizard) {
+    this._wizard = wizard;
+    return this;
+}
+
+/**
+* sets checksum algorithm
+* @param {string} algorithm algorithm (e.g. "SHA")
+* @returns {Checksum} Checksum object
+*/
+Checksum.prototype.method = function (algorithm) {
+    this._method = algorithm;
+    return this;
+}
+
+/**
+* sets file for which the checksum shall be computed
+* @param {string} file file for which the checksum shall be computed
+* @returns {Checksum} Checksum object
+*/
+Checksum.prototype.of = function (file) {
+    this._file = file;
+    return this;
+}
+
+/**
+* returns calculated checksum
+* @returns {string} calculated checksum
+*/
+Checksum.prototype.get = function () {
+    if (this._wizard) {
+        var progressBar = this._wizard.progressBar(tr("Checking file consistency ..."));
+    }
+
+    return this._checksumCalculator.calculate(this._file, this._method, function (progressEntity) {
+        if (progressBar) {
+            progressBar.accept(progressEntity);
+        }
+    });
+}
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Utils_Functions_Net_Download_script.js.html b/docs/jsdoc/Utils_Functions_Net_Download_script.js.html new file mode 100644 index 0000000000..6024688d64 --- /dev/null +++ b/docs/jsdoc/Utils_Functions_Net_Download_script.js.html @@ -0,0 +1,194 @@ + + + + + JSDoc: Source: Utils/Functions/Net/Download/script.js + + + + + + + + + + +
+ +

Source: Utils/Functions/Net/Download/script.js

+ + + + + + +
+
+
include(["utils", "functions", "filesystem", "files"]);
+
+/**
+* Downloader prototype
+* @constructor
+*/
+function Downloader() {
+    this._downloader = Bean("downloader");
+    this._algorithm = "SHA";
+}
+
+/**
+* fetches the file name from an URL
+* @param {string} url URL
+* @returns {string} file name
+*/
+Downloader.prototype._fetchFileNameFromUrl = function (url) {
+    return url.substring(url.lastIndexOf('/') + 1);
+}
+
+/**
+* sets wizard
+* @param {SetupWizard} wizard setup wizard
+* @returns {Downloader} Downloader object
+*/
+Downloader.prototype.wizard = function (wizard) {
+    this._wizard = wizard;
+    return this;
+}
+
+/**
+* sets URL which shall be used for the download
+* @param {string} url URL
+* @returns {Downloader} Downloader object
+*/
+Downloader.prototype.url = function (url) {
+    this._url = url;
+    return this;
+}
+
+/**
+* sets algorithm which shall be used to verify the checksum
+* @param {string} algorithm checksum algorithm (e.g. "SHA")
+* @returns {Downloader} Downloader object
+*/
+Downloader.prototype.algorithm = function (algorithm) {
+    this._algorithm = algorithm;
+    return this;
+}
+
+/**
+* sets checksum
+* @param {string} checksum checksum which shall be used to verify the download
+* @returns {Downloader} Downloader object
+*/
+Downloader.prototype.checksum = function (checksum) {
+    this._checksum = checksum;
+    return this;
+}
+
+/**
+* sets message text
+* @param {string} message download message
+* @returns {Downloader} Downloader object
+*/
+Downloader.prototype.message = function (message) {
+    this._message = message;
+    return this;
+}
+
+/**
+* sets destination
+* @param {string} localFile destination of the download
+* @returns {Downloader} Downloader object
+*/
+Downloader.prototype.to = function (localFile) {
+    this._localFile = localFile;
+    return this;
+}
+
+/**
+* specifies if the download shall be executed only if a newer version is available
+* @param {boolean} onlyIfUpdateAvailable true the download shall be executed only if a newer version is available
+* @returns {Downloader} Downloader object
+*/
+Downloader.prototype.onlyIfUpdateAvailable = function (onlyIfUpdateAvailable) {
+    this._onlyIfUpdateAvailable = onlyIfUpdateAvailable;
+    return this;
+}
+
+/**
+* returns downloaded file
+* @returns {String} content of downloaded file
+*/
+Downloader.prototype.get = function () {
+    if (!this._message) {
+        this._message = tr("Please wait while {0} is downloaded ...", this._fetchFileNameFromUrl(this._url));
+    }
+
+    if (this._wizard) {
+        var progressBar = this._wizard.progressBar(this._message);
+    }
+
+    if (this._onlyIfUpdateAvailable) {
+        if (!this._downloader.isUpdateAvailable(this._localFile, this._url)) {
+            print(this._localFile + " already up-to-date.");
+            return;
+        }
+    }
+
+    if (this._localFile) {
+        this._downloader.get(this._url, this._localFile, function (progressEntity) {
+            if (progressBar) {
+                progressBar.accept(progressEntity);
+            }
+        });
+
+        if (this._checksum) {
+            var fileChecksum = new Checksum()
+                .wizard(this._wizard)
+                .of(this._localFile)
+                .method(this._algorithm)
+                .get();
+
+            if (fileChecksum != this._checksum) {
+                var checksumErrorMessage = tr("Error while calculating checksum for \"{0}\". \n\nExpected = {1}\nActual = {2}",
+                    this._localFile,
+                    this._checksum,
+                    fileChecksum);
+
+                this._wizard.message(checksumErrorMessage);
+
+                throw checksumErrorMessage;
+            }
+        }
+    } else {
+        return this._downloader.get(this._url, function (progressEntity) {
+            if (progressBar) {
+                progressBar.accept(progressEntity);
+            }
+        });
+    }
+}
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/jsdoc/Utils_Functions_Net_Resource_script.js.html b/docs/jsdoc/Utils_Functions_Net_Resource_script.js.html index 0dcd33491e..3ffecaca7f 100644 --- a/docs/jsdoc/Utils_Functions_Net_Resource_script.js.html +++ b/docs/jsdoc/Utils_Functions_Net_Resource_script.js.html @@ -27,84 +27,115 @@

Source: Utils/Functions/Net/Resource/script.js

include(["utils", "functions", "net", "download"]);
-include(["Utils", "Functions", "filesystem", "files"]);
+include(["utils", "functions", "filesystem", "files"]);
 
-/* exported Resource */
-var Resource = function () {
-    var that = this;
+/**
+* Resource prototype
+* @constructor
+*/
+function Resource() {
     this._algorithm = "SHA";
     this._resourcesPath = Bean("propertyReader").getProperty("application.user.resources");
     this._directory = "";
+}
+
+/**
+* sets wizard
+* @param {SetupWizard} wizard setup wizard
+* @returns {Resource} Resource object
+*/
+Resource.prototype.wizard = function (wizard) {
+    this._wizard = wizard;
+    return this;
+}
+
+/**
+* sets algorithm
+* @param {string} algorithm algorithm to verify the checksum (e.g. "SHA")
+* @returns {Resource} Resource object
+*/
+Resource.prototype.algorithm = function (algorithm) {
+    this._algorithm = algorithm;
+    return this;
+}
+
+/**
+* sets name
+* @param {string} name name of the resource
+* @returns {Resource} Resource object
+*/
+Resource.prototype.name = function (name) {
+    this._name = name;
+    return this;
+}
+
+/**
+* sets checksum which shall be used to verify the resource
+* @param {string} checksum checksum
+* @returns {Resource} Resource object
+*/
+Resource.prototype.checksum = function (checksum) {
+    this._checksum = checksum;
+    return this;
+}
+
+/**
+* sets URL
+* @param {string} url URL
+* @returns {Resource} Resource object
+*/
+Resource.prototype.url = function (url) {
+    this._url = url;
+    return this;
+}
+
+/**
+* sets directory inside the resource directory where the Resource is stored
+* @param {string} directory directory path
+* @returns {Resource} Resource object
+*/
+Resource.prototype.directory = function (directory) {
+    this._directory = directory;
+    return this;
+}
+
+/**
+* returns the Resource
+* @returns {Resource} downloaded Resource object
+*/
+Resource.prototype.get = function () {
+    if (!this._message) {
+        this._message = tr("Please wait while {0} is downloaded ...", this._name);
+    }
 
-    that.wizard = function(wizard) {
-        that._wizard = wizard;
-        return that;
-    };
-
-    that.algorithm = function(algorithm) {
-        that._algorithm = algorithm;
-        return that;
-    };
-
-    that.name = function (name) {
-        that._name = name;
-        return that;
-    };
-
-    that.checksum = function (checksum) {
-        that._checksum = checksum;
-        return that;
-    };
-
-    that.url = function(url) {
-        that._url = url;
-        return that;
-    };
-
-    /**
-     * directory inside the resource directory where the Resource is stored
-     * @param {string} directory
-     * @returns {Resource}
-     */
-    that.directory = function(directory) {
-        that._directory = directory;
-        return that;
-    };
-
-    that.get = function () {
-        if (!that._message) {
-            that._message = tr("Please wait while {0} is downloaded ...", that._name);
-        }
-
-        var resourcesPath = that._resourcesPath + "/" + that._directory;
-        mkdir(resourcesPath);
-
-        var resourcePath = resourcesPath + "/" + that._name;
-
-        if (fileExists(resourcePath)) {
-            var fileChecksum = new Checksum()
-                .wizard(that._wizard)
-                .of(resourcePath)
-                .method(that._algorithm)
-                .get();
+    var resourcesPath = this._resourcesPath + "/" + this._directory;
+    mkdir(resourcesPath);
 
-            if(fileChecksum == that._checksum) {
-                return resourcePath;
-            }
-        }
+    var resourcePath = resourcesPath + "/" + this._name;
 
-        new Downloader()
-            .url(that._url)
-            .wizard(that._wizard)
-            .message(that._message)
-            .checksum(that._checksum)
-            .algorithm(that._algorithm)
-            .to(resourcePath)
+    if (fileExists(resourcePath)) {
+        var fileChecksum = new Checksum()
+            .wizard(this._wizard)
+            .of(resourcePath)
+            .method(this._algorithm)
             .get();
 
-        return resourcePath;
+        if (fileChecksum == this._checksum) {
+            return resourcePath;
+        }
     }
-};
+
+    new Downloader()
+        .url(this._url)
+        .wizard(this._wizard)
+        .message(this._message)
+        .checksum(this._checksum)
+        .algorithm(this._algorithm)
+        .to(resourcePath)
+        .get();
+
+    return resourcePath;
+}
 
@@ -115,7 +146,7 @@

Source: Utils/Functions/Net/Resource/script.js


diff --git a/docs/jsdoc/Wine.html b/docs/jsdoc/Wine.html index 228c88f25b..08aff08699 100644 --- a/docs/jsdoc/Wine.html +++ b/docs/jsdoc/Wine.html @@ -93,7 +93,7 @@

new WineSource:
@@ -147,7 +147,7 @@

Methods

-

architecture(architectureopt) → {string|Wine}

+

availableDistributions(architectureopt) → {Array.<string>}

@@ -179,6 +179,8 @@
Parameters:
+ Default + Description @@ -214,6 +216,12 @@
Parameters:
+ + + current architecture + + + @@ -256,7 +264,7 @@
Parameters:
Source:
@@ -290,10 +298,7 @@
Returns:
-string -| - -Wine +Array.<string>
@@ -311,7 +316,7 @@
Returns:
-

availableDistributions(architectureopt) → {Array.<string>}

+

availableVersions(distribution nameopt) → {Array.<string>}

@@ -355,7 +360,7 @@
Parameters:
- architecture + distribution name @@ -382,7 +387,7 @@
Parameters:
- current architecture + current distribution @@ -428,7 +433,7 @@
Parameters:
Source:
@@ -480,13 +485,18 @@
Returns:
-

availableVersions(distribution nameopt) → {Array.<string>}

+

binPath(subCategoryopt, versionopt) → {string}

+
+ returns the path to the engine binary directory +if no parameters are given, the Wine version of the current prefix is used +
+ @@ -512,8 +522,6 @@
Parameters:
- Default - Description @@ -524,7 +532,7 @@
Parameters:
- distribution name + subCategory @@ -549,14 +557,41 @@
Parameters:
- + + Wine sub-category + + + + + + + version + + + + - current distribution +string + + + + + + + + + <optional>
+ + + + - + + + Wine version @@ -597,7 +632,7 @@
Parameters:
Source:
@@ -623,6 +658,10 @@
Parameters:
Returns:
+
+ path to "wine" binary +
+
@@ -631,7 +670,7 @@
Returns:
-Array.<string> +string
@@ -649,7 +688,7 @@
Returns:
-

binPath() → {String}

+

corefonts() → {Wine}

@@ -657,7 +696,7 @@

binPath - returns the path to the engine binary directory + Verb to install corefonts @@ -701,7 +740,7 @@

binPathSource:
@@ -727,6 +766,10 @@

binPathReturns:

+
+ Wine object +
+
@@ -735,7 +778,7 @@
Returns:
-String +Wine
@@ -805,7 +848,7 @@

createSource:
@@ -839,80 +882,23 @@

createdebug(debugopt) → {string|Wine}

- - - - - - - - - - - - - - -
Parameters:
+

crypt32() → {Wine}

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
debug - - -string +
+ Verb to install crypt32 +
- -
- - <optional>
- - - -
@@ -948,7 +934,7 @@
Parameters:
Source:
@@ -974,6 +960,10 @@
Parameters:
Returns:
+
+ Wine object +
+
@@ -982,9 +972,6 @@
Returns:
-string -| - Wine @@ -1003,7 +990,7 @@
Returns:
-

delete(category, subCategory, version, userData)

+

d3dx9() → {Wine}

@@ -1011,7 +998,7 @@

delete - delete + Verb to install D3DX9 @@ -1022,149 +1009,139 @@

deleteParameters:

- - - - - - - - - - - - - - +
-
- - - - - - + - + - + - - + - - - - + - + - + +
Source:
+
+ - + - - + + - - - - - - - - - - - - - - - - +
Returns:
- + +
+ Wine object +
- - - - -
NameTypeDescription
category - - -string + + - -
subCategory - - -string + + - -
version - - -string - -
userData - - -json - -
+
+
+ Type +
+
+ +Wine +
+
+ -
- - - + + - +

d3dx10() → {Wine}

- - - +
+ Verb to install D3DX10 +
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + @@ -1173,7 +1150,7 @@
Parameters:
Source:
@@ -1196,6 +1173,28 @@
Parameters:
+
Returns:
+ + +
+ Wine object +
+ + + +
+
+ Type +
+
+ +Wine + + +
+
+ + @@ -1308,7 +1307,7 @@
Parameters:
Source:
@@ -1334,6 +1333,10 @@
Parameters:
Returns:
+
+ Wine object +
+
@@ -1360,13 +1363,16 @@
Returns:
-

distribution(distributionopt) → {string|Wine}

+

dotnet40() → {Wine}

+
+ Verb to install .NET 4.0 +
@@ -1375,65 +1381,113 @@

distribut -

Parameters:
+ + + + + +
+ - - - - - - + - + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + +
Returns:
- - +
+ Wine object +
+ + +
+
+ Type +
+
+Wine -
- - - + + + - - - - - + - - - - - - - -
NameTypeAttributesDescription
distribution - - -string - - - - <optional>
- - + + + +

dotnet45() → {Wine}

+ + + + + + +
+ Verb to install .NET 4.5 +
+ + + - -
@@ -1469,7 +1523,7 @@
Parameters:
Source:
@@ -1495,6 +1549,10 @@
Parameters:
Returns:
+
+ Wine object +
+
@@ -1503,9 +1561,6 @@
Returns:
-string -| - Wine @@ -1524,7 +1579,7 @@
Returns:
-

dotnet45() → {Wine}

+

dotnet452() → {Wine}

@@ -1532,8 +1587,7 @@

dotnet45 - Inspired from dotnet40 verb, winetricks dotnet45 and POL4 POL_install_dotnet45 --> https://github.com/Winetricks/winetricks/blob/63bc6dbe612d017a0cb6bf6e4cde265162d75bca/src/winetricks#L6886 + Verb to install .NET 4.5.2 @@ -1577,7 +1631,7 @@

dotnet45Source:
@@ -1603,6 +1657,10 @@

dotnet45Returns:

+
+ Wine object +
+
@@ -1629,7 +1687,7 @@
Returns:
-

dotnet452() → {Wine}

+

DXVK() → {Wine}

@@ -1637,8 +1695,7 @@

dotnet452 - Inspired from dotnet40 verb, winetricks dotnet452 and POL4 POL_install_dotnet45 --> https://github.com/Winetricks/winetricks/blob/63bc6dbe612d017a0cb6bf6e4cde265162d75bca/src/winetricks#L6938 + Setup DXVK-> https://github.com/doitsujin/dxvk/ @@ -1682,7 +1739,7 @@

dotnet452Source:
@@ -1708,6 +1765,10 @@

dotnet452Returns:

+
+ Wine object +
+
@@ -1786,7 +1847,7 @@

enableCSMT<
Source:
@@ -1812,6 +1873,10 @@

enableCSMT<

Returns:
+
+ Wine object +
+
@@ -1886,7 +1951,7 @@

fontDire
Source:
@@ -1942,13 +2007,17 @@

Returns:
-

getAvailableVersions()

+

kill() → {Wine}

+
+ kill wine server +
+ @@ -1990,7 +2059,7 @@

g
Source:
@@ -2016,11 +2085,19 @@

g

Returns:
-
- available Wine versions -
+
+
+ Type +
+
+ +Wine + + +
+
@@ -2034,7 +2111,7 @@
Returns:
-

install(category, subCategory, version, userData)

+

luna() → {Wine}

@@ -2042,7 +2119,7 @@

install - install + Verb to install luna @@ -2053,117 +2130,168 @@

installParameters:

- - - - - - - - - - +
-
- - + - - - - - + - + - + - + - - + - - - - + + + + + +
Source:
+
+ + + + + + + + + + - - - - - + + + + + +
Returns:
+ + +
+ Wine object +
+ + + +
+
+ Type +
+
+ +Wine + + +
+
- - - - - + - + - - + +

managed(managedopt) → {boolean|Wine}

+ + + + + + +
+ gets/sets managed state +
+ + + + + + + + + +
Parameters:
+ + +
NameTypeDescription
category - - -string + + - -
subCategory - - -string - -
version - - -string - -
+ + + + + + + + + + + + + + + + + + - + + + - + @@ -2204,7 +2332,7 @@
Parameters:
Source:
@@ -2227,6 +2355,31 @@
Parameters:
+
Returns:
+ + +
+ get: if is managed, set: Wine object +
+ + + +
+
+ Type +
+
+ +boolean +| + +Wine + + +
+
+ + @@ -2238,7 +2391,7 @@
Parameters:
-

installed() → {boolean}

+

mfc42() → {Wine}

@@ -2246,7 +2399,7 @@

installed - checks if the Wine version is installed + Verb to install mfc42.dll and mfc42u.dll @@ -2290,7 +2443,7 @@

installedSource:
@@ -2316,6 +2469,10 @@

installedReturns:

+
+ Wine object +
+
@@ -2324,7 +2481,7 @@
Returns:
-boolean +Wine
@@ -2342,7 +2499,7 @@
Returns:
-

kill() → {Wine}

+

msls31() → {Wine}

@@ -2350,7 +2507,7 @@

kill - kill wine server + Verb to install msls31.dll @@ -2394,7 +2551,7 @@

killSource:
@@ -2420,6 +2577,10 @@

kill + Wine object + +
@@ -2446,80 +2607,23 @@
Returns:
-

managed(managedopt) → {boolean|Wine}

- - - - - - - - - - - - - - -
Parameters:
+

mspatcha() → {Wine}

-

NameTypeAttributesDescription
userDatamanaged -json +boolean + + <optional>
+ + + + + +
true if it shall be managed
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
managed - - -boolean +
+ Verb to install mspatcha +
- -
- - <optional>
- - - -
@@ -2555,7 +2659,7 @@
Parameters:
Source:
@@ -2581,6 +2685,10 @@
Parameters:
Returns:
+
+ Wine object +
+
@@ -2589,9 +2697,6 @@
Returns:
-boolean -| - Wine @@ -2610,7 +2715,7 @@
Returns:
-

nativeApplication(file extension (pdf, txt, rtf)opt) → {string|Wine}

+

nativeApplication(extensionopt) → {string|Wine}

@@ -2656,7 +2761,7 @@
Parameters:
- file extension (pdf, txt, rtf) + extension @@ -2682,7 +2787,7 @@
Parameters:
- + file extension (pdf, txt, rtf) @@ -2723,7 +2828,7 @@
Parameters:
Source:
@@ -2749,6 +2854,10 @@
Parameters:
Returns:
+
+ get: native application, set: Wine object +
+
@@ -2778,13 +2887,16 @@
Returns:
-

prefix(prefixopt) → {string|Wine}

+

physx() → {Wine}

+
+ Verb to install Nvidia PhysX +
@@ -2793,34 +2905,238 @@

prefixParameters:

- - - - - - - - - - - - - - - +
-
- - - + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + +
+ Wine object +
+ + + +
+
+ Type +
+
+ +Wine + + +
+
+ + + + + + + + + + + + + +

prefix(prefixopt, distributionopt, architectureopt, versionopt) → {string|Wine}

+ + + + + + + + + + + + + + +
Parameters:
+ + +
NameTypeAttributesDescription
prefix
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + + + + + + + + + + + + + + + + + @@ -3246,7 +4898,7 @@
Parameters:
Source:
@@ -3272,6 +4924,10 @@
Parameters:
Returns:
+
+ Wine object +
+
@@ -3298,7 +4954,7 @@
Returns:
-

regsvr32() → {Wine}

+

setVirtualDesktop(width, height) → {Wine}

@@ -3306,7 +4962,7 @@

regsvr32 - runs "regsvr32" + sets Virtual Desktop with window resolution @@ -3317,6 +4973,78 @@

regsvr32Parameters:

+ + +

NameTypeAttributesDescription
prefix + + +string + + + + + + <optional>
+ + + + + +
distribution + + +string + + + + + + <optional>
+ + + + + +
architecture + + +string + + + + + + <optional>
+ + + + + +
version @@ -2887,7 +3203,7 @@
Parameters:
Source:
@@ -2942,12 +3258,1267 @@
Returns:
-

programFiles() → {string}

+

prefixDirectory() → {string}

+ + + + + + +
+ returns prefix directory +
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +string + + +
+
+ + + + + + + + + + + + + +

programFiles() → {string}

+ + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ name of "Program Files" +
+ + + +
+
+ Type +
+
+ +string + + +
+
+ + + + + + + + + + + + + +

quartz() → {Wine}

+ + + + + + +
+ Verb to install quartz +
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ Wine object +
+ + + +
+
+ Type +
+
+ +Wine + + +
+
+ + + + + + + + + + + + + +

quicktime76() → {Wine}

+ + + + + + +
+ Verb to install QuickTime 7.6 +
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ Wine object +
+ + + +
+
+ Type +
+
+ +Wine + + +
+
+ + + + + + + + + + + + + +

regedit() → {Wine}

+ + + + + + +
+ Regedit support +
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ Wine object +
+ + + +
+
+ Type +
+
+ +Wine + + +
+
+ + + + + + + + + + + + + +

regsvr32() → {Wine}

+ + + + + + +
+ runs "regsvr32" +
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ Wine object +
+ + + +
+
+ Type +
+
+ +Wine + + +
+
+ + + + + + + + + + + + + +

run(executable, argsopt, workingDirectoryopt, captureOutputopt, waitopt, userDataopt) → {String}

+ + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDefaultDescription
executable + + + + + + + + + +
args + + +array + + + + + + <optional>
+ + + + + +
+ + [] + +
workingDirectory + + +string + + + + + + <optional>
+ + + + + +
+ + working container + +
captureOutput + + +boolean + + + + + + <optional>
+ + + + + +
+ + false + +
wait + + +boolean + + + + + + <optional>
+ + + + + +
+ + false + +
userData + + +map + + + + + + <optional>
+ + + + + +
+ + empty + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ output +
+ + + +
+
+ Type +
+
+ +String + + +
+
+ + + + + + + + + + + + + +

runInsidePrefix(executable, args)

+ + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
executable + +
args + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +

sandbox() → {Wine}

+ + + + + + +
+ Verb to install a sandbox +
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ Wine object +
+ + + +
+
+ Type +
+
+ +Wine + + +
+
+ + + + + + + + + + + + + +

secur32() → {Wine}

+ + + + + + +
+ Verb to install secur32 +
@@ -2990,7 +4561,7 @@

programFi
Source:
@@ -3017,7 +4588,7 @@

Returns:
- name of "Program Files" + Wine object
@@ -3028,7 +4599,7 @@
Returns:
-string +Wine
@@ -3046,7 +4617,7 @@
Returns:
-

quartz() → {Wine}

+

setSoundDriver(driver) → {Wine}

@@ -3054,7 +4625,7 @@

quartz - Inspired from winetricks quartz -> https://github.com/Winetricks/winetricks/blob/63bc6dbe612d017a0cb6bf6e4cde265162d75bca/src/winetricks#L8523 + sets sound driver @@ -3065,6 +4636,55 @@

quartzParameters:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
driver + + +string + + + + (alsa, pulse)
+ + @@ -3098,7 +4718,7 @@

quartzSource:
@@ -3124,6 +4744,10 @@

quartzReturns:

+
+ Wine object +
+
@@ -3150,7 +4774,7 @@
Returns:
-

regedit(args) → {Wine}

+

setVersionGL(major, minor) → {Wine}

@@ -3158,7 +4782,7 @@

regedit - Regedit support + sets OpenGL max core version @@ -3194,18 +4818,46 @@
Parameters:

argsmajor + +number + + + major version
minor + + +number + + + + minor version
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
width + + +number + + + + width of virtual desktop (in px)
height + + +number + + + + height of virtual desktop (in px)
+ + @@ -3350,7 +5078,7 @@

regsvr32Source:
@@ -3376,6 +5104,10 @@

regsvr32Returns:

+
+ Wine object +
+
@@ -3402,13 +5134,17 @@
Returns:
-

run(executable, argsopt, captureOutputopt) → {Wine}

+

sp3extract(fileToExtract) → {Wine}

+
+ Verb to install Windows XP Service Pack 3 +
+ @@ -3427,127 +5163,38 @@
Parameters:
Name - Type - - - Attributes - - - - Default - - - Description - - - - - - - - - executable - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - args - - - - - -array - - - - - - - - - <optional>
- - - - - - - - - - - - [] - - - + Type - - + + + + + Description + + + - captureOutput + fileToExtract -boolean +string - - - <optional>
- - - - - - - - - - false - - - - + path to file which shall be extracted @@ -3588,7 +5235,7 @@
Parameters:
Source:
@@ -3614,6 +5261,10 @@
Parameters:
Returns:
+
+ Wine object +
+
@@ -3640,7 +5291,7 @@
Returns:
-

runInsidePrefix(executable, args)

+

system32directory() → {string}

@@ -3655,66 +5306,108 @@

runIns -

Parameters:
+ + + + +
+ - - - - - - + - + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + +
Returns:
+
+ system32 directory +
+ + +
+
+ Type +
+
+string -
- - - + + + - - - - - - + + - - + +

system64directory() → {string}

+ + + + + + - - - - - - - - - - - -
NameTypeDescription
executable - -
args - -
@@ -3750,7 +5443,7 @@
Parameters:
Source:
@@ -3773,6 +5466,28 @@
Parameters:
+
Returns:
+ + +
+ system64 directory +
+ + + +
+
+ Type +
+
+ +string + + +
+
+ + @@ -3784,7 +5499,7 @@
Parameters:
-

secur32() → {Wine}

+

tahoma() → {Wine}

@@ -3792,7 +5507,7 @@

secur32 - Inspired from winetricks secur32 -> https://github.com/Winetricks/winetricks/blob/63bc6dbe612d017a0cb6bf6e4cde265162d75bca/src/winetricks#L8744 + Verb to install the Tahoma font @@ -3836,7 +5551,7 @@

secur32Source:
@@ -3862,6 +5577,10 @@

secur32Returns:

+
+ Wine object +
+
@@ -3888,7 +5607,7 @@
Returns:
-

setSoundDriver(driver) → {Wine}

+

uninstall(name) → {Wine}

@@ -3896,7 +5615,7 @@

setSoun
- sets sound driver + uninstall application
@@ -3932,18 +5651,23 @@

Parameters:
- driver + name + +string + + + - (alsa, pulse) + of the application which shall be uninstalled @@ -3984,7 +5708,7 @@
Parameters:
Source:
@@ -4036,7 +5760,7 @@
Returns:
-

setVersionGL(major, minor) → {Wine}

+

uplay() → {Wine}

@@ -4044,87 +5768,15 @@

setVersio
- sets OpenGL max core version -
- - - - - - - - - -

Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
major - - -number - - - -
minor - - -number + Verb to install Uplay + + - -
@@ -4160,7 +5812,7 @@
Parameters:
Source:
@@ -4186,6 +5838,10 @@
Parameters:
Returns:
+
+ Wine object +
+
@@ -4212,7 +5868,7 @@
Returns:
-

setVirtualDesktop(width, height) → {Wine}

+

UseGLSL(mode) → {Wine}

@@ -4220,7 +5876,7 @@

setV
- sets Virtual Desktop with window resolution + force the Use of GLSL
@@ -4256,36 +5912,13 @@

Parameters:
- width - - - - - -number - - - - - - - - - - - - - - - - - height + mode -number +string @@ -4295,7 +5928,7 @@
Parameters:
- + (enabled or disabled) @@ -4336,7 +5969,7 @@
Parameters:
Source:
@@ -4362,6 +5995,10 @@
Parameters:
Returns:
+
+ Wine object +
+
@@ -4388,13 +6025,17 @@
Returns:
-

system32directory() → {string}

+

vcrun2003() → {Wine}

+
+ Verb to install vcrun2003 +
+ @@ -4436,7 +6077,7 @@

syst
Source:
@@ -4463,7 +6104,7 @@

Returns:
- system32 directory + Wine object
@@ -4474,7 +6115,7 @@
Returns:
-string +Wine
@@ -4492,13 +6133,17 @@
Returns:
-

system64directory() → {string}

+

vcrun2005() → {Wine}

+
+ Verb to install vcrun2005 +
+ @@ -4540,7 +6185,7 @@

syst
Source:
@@ -4567,7 +6212,7 @@

Returns:
- system64 directory + Wine object
@@ -4578,7 +6223,7 @@
Returns:
-string +Wine
@@ -4596,7 +6241,7 @@
Returns:
-

uninstall(name) → {Wine}

+

vcrun2008() → {Wine}

@@ -4604,7 +6249,7 @@

uninstall - uninstall application + Verb to install vcrun2008 @@ -4615,55 +6260,6 @@

uninstallParameters:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
name - - -string - - - - of the application which shall be uninstalled
- - @@ -4697,7 +6293,7 @@
Parameters:
Source:
@@ -4723,6 +6319,10 @@
Parameters:
Returns:
+
+ Wine object +
+
@@ -4749,7 +6349,7 @@
Returns:
-

UseGLSL(mode) → {Wine}

+

vcrun2010() → {Wine}

@@ -4757,7 +6357,7 @@

UseGLSL - force the Use of GLSL + Verb to install vcrun2010 @@ -4768,55 +6368,6 @@

UseGLSLParameters:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
mode - - -string - - - - (enabled or disabled)
- - @@ -4850,7 +6401,7 @@
Parameters:
Source:
@@ -4876,6 +6427,10 @@
Parameters:
Returns:
+
+ Wine object +
+
@@ -4902,13 +6457,16 @@
Returns:
-

version(versionopt) → {string|Wine}

+

vcrun2012() → {Wine}

+
+ Verb to install vcrun2012 +
@@ -4917,73 +6475,113 @@

versionParameters:

+ + + + + +
+ - - - + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + +
Returns:
+ - +
+ Wine object +
+ + + +
+
+ Type +
+
+Wine + + +
+
+ + + + + - - - + - - - + - - - + +

vcrun2013() → {Wine}

+ - - - - - - - - - - - - - - - - -
NameTypeAttributesDefaultDescription
version - - -string +
+ Verb to install vcrun2013 +
- -
- - <optional>
- - - -
- - LATEST_STABLE_VERSION - -
@@ -5019,7 +6617,7 @@
Parameters:
Source:
@@ -5045,6 +6643,10 @@
Parameters:
Returns:
+
+ Wine object +
+
@@ -5053,9 +6655,6 @@
Returns:
-string -| - Wine @@ -5074,88 +6673,23 @@
Returns:
-

wait(wait messageopt) → {Wine}

- - - - - - - - - - - - - - -
Parameters:
+

vcrun2015() → {Wine}

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDefaultDescription
wait message - - -string +
+ Verb to install vcrun2015 +
- -
- - <optional>
- - - -
- - "Please wait ..." - -
@@ -5191,7 +6725,7 @@
Parameters:
Source:
@@ -5217,6 +6751,10 @@
Parameters:
Returns:
+
+ Wine object +
+
@@ -5243,7 +6781,7 @@
Returns:
-

windowsVersion(version (win7, vista, win2003, winxp, win2k, winnt, winme, win98, win95, win31)opt) → {string|Wine}

+

vcrun2017() → {Wine}

@@ -5251,7 +6789,7 @@

windows
- default windows version + Verb to install vcrun2017
@@ -5262,67 +6800,6 @@

windows -

Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
version (win7, vista, win2003, winxp, win2k, winnt, winme, win98, win95, win31) - - -string - - - - - - <optional>
- - - - - -
- - @@ -5356,7 +6833,7 @@
Parameters:
Source:
@@ -5382,6 +6859,10 @@
Parameters:
Returns:
+
+ Wine object +
+
@@ -5390,9 +6871,6 @@
Returns:
-string -| - Wine @@ -5411,13 +6889,17 @@
Returns:
-

winepath(pathopt) → {String}

+

windowsVersion(version, servicePackopt) → {string|Wine}

+
+ default windows version +
+ @@ -5453,13 +6935,44 @@
Parameters:
- path + version -String +string + + + + + + + + + + + + + + + + + + (win7, vista, win2003, winxp, win2k, winnt, winme, win98, win95, win31) + + + + + + + servicePack + + + + + +string @@ -5479,7 +6992,7 @@
Parameters:
- + e.g. sp3 @@ -5520,7 +7033,7 @@
Parameters:
Source:
@@ -5546,6 +7059,10 @@
Parameters:
Returns:
+
+ get: Windows version, set: Wine object +
+
@@ -5554,7 +7071,10 @@
Returns:
-String +string +| + +Wine
@@ -5572,7 +7092,7 @@
Returns:
-

wizard(wizardopt) → {SetupWizard|Wine}

+

winepath(pathopt) → {String}

@@ -5614,13 +7134,13 @@
Parameters:
- wizard + path -SetupWizard +String @@ -5681,7 +7201,7 @@
Parameters:
Source:
@@ -5715,10 +7235,7 @@
Returns:
-SetupWizard -| - -Wine +String
@@ -5736,7 +7253,7 @@
Returns:
-

workingDirectory(directoryopt) → {string|Wine}

+

wizard(wizardopt) → {SetupWizard|Wine}

@@ -5778,13 +7295,13 @@
Parameters:
- directory + wizard -string +SetupWizard @@ -5845,7 +7362,7 @@
Parameters:
Source:
@@ -5879,7 +7396,7 @@
Returns:
-string +SetupWizard | Wine @@ -5908,8 +7425,7 @@

xact - Inspired from d3dx9 verb, winetricks xact --> https://github.com/Winetricks/winetricks/blob/63bc6dbe612d017a0cb6bf6e4cde265162d75bca/src/winetricks#L9643 + Verb to install xact @@ -5979,6 +7495,10 @@

xact + Wine object + +
@@ -6015,7 +7535,7 @@
Returns:

diff --git a/docs/jsdoc/WineShortcut.html b/docs/jsdoc/WineShortcut.html new file mode 100644 index 0000000000..ca24edf5e9 --- /dev/null +++ b/docs/jsdoc/WineShortcut.html @@ -0,0 +1,1537 @@ + + + + + JSDoc: Class: WineShortcut + + + + + + + + + + +
+ +

Class: WineShortcut

+ + + + + + +
+ +
+ +

WineShortcut()

+ + +
+ +
+
+ + + + + + +

new WineShortcut()

+ + + + + + +
+ WineShortcut prototype +
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + +

Methods

+ + + + + + + +

arguments(args) → {WineShortcut}

+ + + + + + +
+ sets shortcut arguments +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
args + + +array + + + + shortcut arguments
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ WineShortcut object +
+ + + +
+
+ Type +
+
+ +WineShortcut + + +
+
+ + + + + + + + + + + + + +

category(category) → {WineShortcut}

+ + + + + + +
+ sets shortcut category +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
category + + +string + + + + shortcut category
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ WineShortcut object +
+ + + +
+
+ Type +
+
+ +WineShortcut + + +
+
+ + + + + + + + + + + + + +

create() → {void}

+ + + + + + +
+ creates shortcut +
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +void + + +
+
+ + + + + + + + + + + + + +

description(description) → {WineShortcut}

+ + + + + + +
+ sets shortcut description +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
description + + +string + + + + shortcut description
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ WineShortcut object +
+ + + +
+
+ Type +
+
+ +WineShortcut + + +
+
+ + + + + + + + + + + + + +

miniature(miniature) → {WineShortcut}

+ + + + + + +
+ sets the miniature for the shortcut +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
miniature + + +Array.<string> +| + +URI + + + + array which specifies the application of which the miniature shall be used +or +URI of the miniature
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ WineShortcut object +
+ + + +
+
+ Type +
+
+ +WineShortcut + + +
+
+ + + + + + + + + + + + + +

name(name) → {WineShortcut}

+ + + + + + +
+ sets shortcut name +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
name + + +string + + + + shortcut name
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ WineShortcut object +
+ + + +
+
+ Type +
+
+ +WineShortcut + + +
+
+ + + + + + + + + + + + + +

prefix(prefix) → {WineShortcut}

+ + + + + + +
+ sets shortcut prefix +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
prefix + + +string + + + + shortcut prefix
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ WineShortcut object +
+ + + +
+
+ Type +
+
+ +WineShortcut + + +
+
+ + + + + + + + + + + + + + + + + + + + +
+ sets executable which shall be used +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
search + + +string + + + + executable name
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ WineShortcut object +
+ + + +
+
+ Type +
+
+ +WineShortcut + + +
+
+ + + + + + + + + + + + + +

type(type) → {WineShortcut}

+ + + + + + +
+ sets shortcut type +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
type + + +string + + + + shortcut type
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ WineShortcut object +
+ + + +
+
+ Type +
+
+ +WineShortcut + + +
+
+ + + + + + + + + + + + + +
+ +
+ + + + +
+ + + +
+ + + + + + + \ No newline at end of file diff --git a/docs/jsdoc/global.html b/docs/jsdoc/global.html new file mode 100644 index 0000000000..f94d6d2921 --- /dev/null +++ b/docs/jsdoc/global.html @@ -0,0 +1,3083 @@ + + + + + JSDoc: Global + + + + + + + + + + +
+ +

Global

+ + + + + + +
+ +
+ +

+ + +
+ +
+
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + + + + +

Members

+ + + +

engineImplementation

+ + + + +
+ Wine engine +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

settingImplementation

+ + + + +
+ setting to configure strict draw ordering +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

settingImplementation

+ + + + +
+ setting to set the video memory size +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

settingImplementation

+ + + + +
+ setting to set always offscreen +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

settingImplementation

+ + + + +
+ setting to enable/disable GLSL +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

settingImplementation

+ + + + +
+ setting to set the DirectDraw renderer +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

settingImplementation

+ + + + +
+ setting to configure multisampling +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

settingImplementation

+ + + + +
+ setting to set the offscreen rendering mode +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

settingImplementation

+ + + + +
+ setting to set the render target lock mode +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

settingImplementation

+ + + + +
+ setting to configure mouse warp override +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

toolImplementation

+ + + + +
+ tool to open a terminal in a Wine prefix +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

toolImplementation

+ + + + +
+ tool to open the Wine registry editor +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

toolImplementation

+ + + + +
+ tool to repair a Wine prefix +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

toolImplementation

+ + + + +
+ tool to reboot Wine +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

toolImplementation

+ + + + +
+ tool to uninstall Wine +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

toolImplementation

+ + + + +
+ tool to kill running Wine processes +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

toolImplementation

+ + + + +
+ tool to configure Wine +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

toolImplementation

+ + + + +
+ tool to open a Wine console +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

toolImplementation

+ + + + +
+ tool to open the Wine task manager +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + +

Methods

+ + + + + + + +

cat(filePath) → {string}

+ + + + + + +
+ returns file content +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
filePath + + +string + + + + file path
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ content +
+ + + +
+
+ Type +
+
+ +string + + +
+
+ + + + + + + + + + + + + +

cp(source, target) → {void}

+ + + + + + +
+ copies file +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
source + + +string + + + + source
target + + +string + + + + target
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +void + + +
+
+ + + + + + + + + + + + + +

createTempFile(extension) → {string}

+ + + + + + +
+ creates temporary file +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
extension + + +string + + + + file extension
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ file path of created temporary file +
+ + + +
+
+ Type +
+
+ +string + + +
+
+ + + + + + + + + + + + + +

fileExists(filePath) → {boolean}

+ + + + + + +
+ check if file exists +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
filePath + + +string + + + + file path
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ true if file exists +
+ + + +
+
+ Type +
+
+ +boolean + + +
+
+ + + + + + + + + + + + + +

fileName(filePath) → {string}

+ + + + + + +
+ returns file name +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
filePath + + +string + + + + file path
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ file name +
+ + + +
+
+ Type +
+
+ +string + + +
+
+ + + + + + + + + + + + + +

getFileSize(filePath) → {number}

+ + + + + + +
+ returns file size +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
filePath + + +string + + + + file path
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ file size +
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + + + + +

lns(target, destination) → {void}

+ + + + + + +
+ creates link +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
target + + +string + + + + target
destination + + +string + + + + destination
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +void + + +
+
+ + + + + + + + + + + + + +

mkdir(directoryPath) → {void}

+ + + + + + +
+ creates directory +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
directoryPath + + +string + + + + directory path
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +void + + +
+
+ + + + + + + + + + + + + +

remove(filePath) → {void}

+ + + + + + +
+ removes file +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
filePath + + +string + + + + file path
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +void + + +
+
+ + + + + + + + + + + + + +

touch(filePath) → {void}

+ + + + + + +
+ creates empty file +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
filePath + + +string + + + + file path
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +void + + +
+
+ + + + + + + + + + + + + +

writeToFile(filePath, content) → {void}

+ + + + + + +
+ writes content into file +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
filePath + + +string + + + + file path
content + + +string + + + + content which shall be written
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +void + + +
+
+ + + + + + + + + + + + + +
+ +
+ + + + +
+ + + +
+ + + + + + + \ No newline at end of file diff --git a/docs/jsdoc/index.html b/docs/jsdoc/index.html index 7c3d3c5ff5..50311d4a97 100644 --- a/docs/jsdoc/index.html +++ b/docs/jsdoc/index.html @@ -50,7 +50,7 @@


From 180681453fa782465369c176c5f4e43d7ae61f8f Mon Sep 17 00:00:00 2001 From: plata Date: Wed, 9 May 2018 18:10:04 +0200 Subject: [PATCH 10/11] Describe how Travis CI secure must be created (#619) --- .travis.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index 836ab4e34e..18fd6e363a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -44,4 +44,9 @@ matrix: env: global: + # to create secure for travis-ci.com + # 1. create personal access token with public_repo permissions + # 2. clone this repo (not a fork) + # 3. run in the clone: travis encrypt GH_TOKEN="" --pro (GH_TOKEN is the variable which is used e.g. in push_jsdoc.sh) + # 4. set output below - secure: "HZ7wbZdwnp3iUJwfL42HnH8fnTcVz/9y9HKFy2MXw38ZtZMoXMB1a3duM0a+UFY59biFVb2PgvqEzl5e8i1fygCN2gYtyWNvvMsNTD0Iq9eOo6nzSkWjWoWIn1TMUEjDS4xZdJLHkmnp7E4h4xc4CNt3HZA5rRbiko8wXCLeWh0UM3YXjs/b14tDlZRy29Sn4LuMSdGWi8lqqTF+4rAAFJ7aQOZDJfse/lZr2FTxRtOdsxPSizU3wJ/Hk/uQvOtp6CizC0c53r49ODqDuFeHj0AOeAR9DpM0B7MojZiFKW2h74vMMcCBKdeyX3K7iLn55Z65p/9bwWCPWwAbwy4Vrbi4OMKc4WdD0RE5h0OOXCdw7xuCA1nPg5+xk5l/0TAXjmb/luklyFbNBXyGKjF5CeEaUhrn9LFmOuyoqYoVf4BD2TA32kqMGxVchf8bnTeM25slI/wi5Sgjpj6GXuxay9bUt13QPQLcT3sNp1Jftvm4gZPdY9TR9m+nPK7nhIZjFWeHJu2nIzcfJdqMTcmLV+iKqZSSL2CJqCUbPEIVwtIj3ZytFrWTX88H97K/9UMDPQ+YbyT1I9XwkXY2PT66F5WE1UVMW/3SKw/jZON8AjYKD4mTd24kRMNfNhXGsg3L+NS8dsDXz1cfSZpLGxe4rvguZInoziJGLN27jGwyN0I=" From 191b6918c811520de32dd09bdf9686bc9f47e56f Mon Sep 17 00:00:00 2001 From: Zemogiter Date: Fri, 11 May 2018 16:05:15 +0200 Subject: [PATCH 11/11] Fix SteamScript (#622) fixes #620 --- Engines/Wine/QuickScript/Steam Script/script.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Engines/Wine/QuickScript/Steam Script/script.js b/Engines/Wine/QuickScript/Steam Script/script.js index 9ccfdc5030..ec983cbc0d 100644 --- a/Engines/Wine/QuickScript/Steam Script/script.js +++ b/Engines/Wine/QuickScript/Steam Script/script.js @@ -96,10 +96,7 @@ SteamScript.prototype.go = function () { var wine = new Wine() .wizard(setupWizard) - .architecture(this._wineArchitecture) - .distribution(this._wineDistribution) - .version(this._wineVersion) - .prefix(this._name) + .prefix(this._name, this._wineDistribution, this._wineArchitecture, this._wineVersion) .luna() .run(tempFile) .wait(tr("Please follow the steps of the Steam setup.\n\nUncheck \"Run Steam\" or close Steam completely after the setup so that the installation of \"{0}\" can continue.", this._name));