Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
themitosan committed Aug 8, 2024
1 parent 7ce2ba3 commit 8d86472
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
12 changes: 4 additions & 8 deletions App/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,11 @@ const APP = {
hookTimeout = 3000;
}

// Update chdir and check if wine fix is available before running game
// Update chdir and run game
process.chdir(settingsData[settingsData.currentGame].gamePath);
if (APP.options.enableWineFix === !0 && cGame !== 'biocv'){
APP.childProcess.exec(`WINEDLLOVERRIDES="ddraw.dll=n,b" wine wineconsole ${gPath}`);
} else {
APP.spawnProcess = APP.childProcess.spawn(gPath, execArgs, {
detached: !0
});
}
APP.spawnProcess = APP.childProcess.spawn(gPath, execArgs, {
detached: !0
});

// Seek game process
setTimeout(function(){
Expand Down
1 change: 0 additions & 1 deletion App/js/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ temp_OPTIONS = {
enableTabletMode: !1,
isMenuRightClosed: !1,
enableBgObjectiveAnimation: !0,
enableWineFix: nw.App.argv.indexOf('-wineFix') !== -1,
bioRandObjectives: {
reset: !1,
current: null,
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ You can find a list with all available shortcuts on `help.txt`.
- If everything is okay, binaries will be available on `build/r3_auto_map_gen/`.

## Other OS?
- Basic support for other os is being developed to work with wine (currently WIP).
You can run this app using [wine](https://www.winehq.org/) compat layer.
In order to read current game, make sure to run it under the same prefix.
Some few things will be fixed later _(Run game and Cam Hint are broken)_.

## External plugins on this project
- [memoryjs](https://github.com/rob--/memoryjs) from [Rob--](https://github.com/rob--/)
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
},
"scripts": {
"dev": "nw -dev",
"dev-wineFix": "nw -dev -wineFix",
"build-sdk": "node compiler/build-sdk.js",
"build-normal": "node compiler/build-normal.js"
},
Expand Down

0 comments on commit 8d86472

Please # to comment.