Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
ffb9d4d
Add files via upload
Zemogiter Mar 25, 2018
82b3f6d
Update script.js
Zemogiter Mar 25, 2018
4281903
Update script.js
Zemogiter Mar 25, 2018
cfb92a5
added registry fix
Zemogiter Mar 26, 2018
338ed96
Delete fix.reg
Zemogiter Mar 26, 2018
160136f
added registry fix inside the folder
Zemogiter Mar 26, 2018
1337ffd
Update script.js
Zemogiter Mar 26, 2018
36b9c08
Update script.js
Zemogiter Mar 26, 2018
e107a0b
Merge pull request #2 from PhoenicisOrg/master
Zemogiter Mar 27, 2018
abade9c
Update script.js
Zemogiter Mar 28, 2018
bedbead
Update application.json
Zemogiter Mar 28, 2018
f43ff72
Delete fix.reg
Zemogiter Mar 28, 2018
1952245
Update script.json
Zemogiter Mar 28, 2018
8cb6f80
Update script.js
Zemogiter Sep 5, 2018
f16c440
Update script.json
Zemogiter Sep 5, 2018
a4d665e
Update application.json
Zemogiter Sep 5, 2018
c9dcb1c
Update script.json
Zemogiter Sep 5, 2018
374d39e
Update application.json
Zemogiter Sep 6, 2018
d00a336
Update script.js
Zemogiter Sep 6, 2018
3e50649
Update script.js
Zemogiter Sep 7, 2018
46c4986
Update script.js
Zemogiter Sep 8, 2018
da0fec1
Update script.js
Zemogiter Sep 8, 2018
d64efd4
Update script.js
Zemogiter Sep 8, 2018
9d96de9
Update script.js
Zemogiter Sep 9, 2018
98bd47a
Update script.js
Zemogiter Sep 9, 2018
3bcbae7
Update script.js
Zemogiter Sep 9, 2018
5d800a1
Update script.js
Zemogiter Sep 9, 2018
c01277f
Update script.js
Zemogiter Sep 11, 2018
0b79b42
Update script.js
Zemogiter Sep 12, 2018
9d9d3e9
Update script.js
Zemogiter Sep 22, 2018
a84443b
Update script.js
Zemogiter Sep 22, 2018
fdefeb4
Update application.json
Zemogiter Sep 22, 2018
caaeee9
Update script.js
Zemogiter Dec 12, 2018
c122ccd
Update script.js
Zemogiter Dec 18, 2018
f2b659f
Update script.js
Zemogiter Dec 19, 2018
0018f2b
Update script.js
Zemogiter Dec 19, 2018
24c6ae9
Update script.js
Zemogiter Dec 21, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update script.js
Reworked the script. Added a few messages for the end user and verbs. Removed the regsrv32 line.
  • Loading branch information
Zemogiter authored Dec 19, 2018
commit f2b659f91e558b8e20e8c2411c1da265e62b1d74
23 changes: 12 additions & 11 deletions Applications/Games/Lego Rock Raiders/Local/script.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
include(["engines", "wine", "quick_script", "local_installer_script"]);
include(["utils", "functions", "net", "download"]);
include(["utils", "functions", "net", "resource"]);
include(["utils", "functions", "filesystem", "extract"]);
include(["utils", "functions", "filesystem", "files"]);
include(["engines", "wine", "plugins", "regsvr32"]);
include(["engines", "wine", "plugins", "virtual_desktop"]);
include(["engines", "wine", "verbs", "amstream"]);
include(["engines", "wine", "verbs", "quartz"]);
include(["engines", "wine", "verbs", "devenum"]);
include(["engines", "wine", "verbs", "d3drm"]);

var installerImplementation = {
run: function() {
Expand All @@ -17,8 +18,13 @@ var installerImplementation = {
.wineVersion("3.0.3")
.wineDistribution("upstream")
.preInstall(function (wine /*, wizard*/){
var screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
wine.setVirtualDesktop(screenSize.width, screenSize.height);
wine.amstream();
wine.quartz();
wine.devenum();
wine.d3drm();
var registrySettings = new AppResource().application([TYPE_ID, CATEGORY_ID, APPLICATION_ID]).get("fix.reg");
wine.regedit().patch(registrySettings);
wizard.message(tr("When the game ask to install DirectX Media click yes. Click no when it ask for DirectX 6."));
})
.postInstall(function (wine,wizard){
wizard.message(tr("This game needs a copy protection patch to work. It may be illegal in your country to patch copy protection. You must patch the game yourself."));
Expand All @@ -35,14 +41,9 @@ var installerImplementation = {
.archive(wine.prefixDirectory() + "/drive_c/RockRaidersCodec_490085.zip")
.to(wine.prefixDirectory() + "/drive_c/RockRaidersCodec/")
.extract(["-F", "iv5setup.exe"]);
wizard.message(tr("When installing Indeo codecs you must choose custom installation type. Then uncheck ownload DirectShow filter and Indeo 5 Netscape Browser Extension or else the installer will crash."));
wine.run(wine.prefixDirectory() + "/drive_c/RockRaidersCodec/iv5setup.exe");
wine.wait();
new Extractor()
.wizard(wizard)
.archive(wine.prefixDirectory() + "/drive_c/RockRaidersCodec_490085.zip")
.to(wine.prefixDirectory() + "/drive_c/windows/system32/")
.extract(["-F", "ir50_32.dll"]);
wine.regsvr32().install("ir50_32.dll");
})
.go();
}
Expand Down