From 8d8647215bb5db51d9fbcac9ce3a5d7847057ea7 Mon Sep 17 00:00:00 2001 From: themitosan Date: Thu, 8 Aug 2024 11:43:52 -0300 Subject: [PATCH] Update --- App/js/main.js | 12 ++++-------- App/js/options.js | 1 - README.md | 4 +++- package.json | 1 - 4 files changed, 7 insertions(+), 11 deletions(-) diff --git a/App/js/main.js b/App/js/main.js index ec34450..a698911 100644 --- a/App/js/main.js +++ b/App/js/main.js @@ -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(){ diff --git a/App/js/options.js b/App/js/options.js index 2daac16..514fb74 100644 --- a/App/js/options.js +++ b/App/js/options.js @@ -19,7 +19,6 @@ temp_OPTIONS = { enableTabletMode: !1, isMenuRightClosed: !1, enableBgObjectiveAnimation: !0, - enableWineFix: nw.App.argv.indexOf('-wineFix') !== -1, bioRandObjectives: { reset: !1, current: null, diff --git a/README.md b/README.md index 6c9bf5f..ccf9675 100644 --- a/README.md +++ b/README.md @@ -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--/) diff --git a/package.json b/package.json index 33cf25d..fee1bf2 100644 --- a/package.json +++ b/package.json @@ -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" },