forked from PhoenicisOrg/scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from PhoenicisOrg/master
Merge master
- Loading branch information
Showing
103 changed files
with
20,116 additions
and
2,213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"scriptName" : "DirectDraw renderer", | ||
"id" : "directdraw_renderer", | ||
"compatibleOperatingSystems" : [ | ||
"MACOSX", | ||
"LINUX" | ||
], | ||
"testingOperatingSystems" : [], | ||
"free" : true, | ||
"requiresPatch" : false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"scriptName" : "GLSL", | ||
"id" : "glsl", | ||
"compatibleOperatingSystems" : [ | ||
"MACOSX", | ||
"LINUX" | ||
], | ||
"testingOperatingSystems" : [], | ||
"free" : true, | ||
"requiresPatch" : false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"scriptName" : "always offscreen", | ||
"id" : "always_offscreen", | ||
"compatibleOperatingSystems" : [ | ||
"MACOSX", | ||
"LINUX" | ||
], | ||
"testingOperatingSystems" : [], | ||
"free" : true, | ||
"requiresPatch" : false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"name" : "Wine Settings", | ||
"id" : "settings", | ||
"description" : "Settings for Wine." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"scriptName" : "mouse warp override", | ||
"id" : "mouse_warp_override", | ||
"compatibleOperatingSystems" : [ | ||
"MACOSX", | ||
"LINUX" | ||
], | ||
"testingOperatingSystems" : [], | ||
"free" : true, | ||
"requiresPatch" : false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"scriptName" : "multisampling", | ||
"id" : "multisampling", | ||
"compatibleOperatingSystems" : [ | ||
"MACOSX", | ||
"LINUX" | ||
], | ||
"testingOperatingSystems" : [], | ||
"free" : true, | ||
"requiresPatch" : false | ||
} |
Oops, something went wrong.