From c76995cf9a9170df3b2459227203edf540f9267c Mon Sep 17 00:00:00 2001 From: temmieheartz Date: Fri, 19 May 2023 05:58:41 -0300 Subject: [PATCH] General: Rename "Select game executable" to "App Setup" and small cleanup --- App/index.htm | 4 ++-- App/js/options.js | 9 ++++++--- App/package.json | 33 +-------------------------------- compile.js | 3 +++ 4 files changed, 12 insertions(+), 37 deletions(-) diff --git a/App/index.htm b/App/index.htm index 29fe456..fd73c4f 100644 --- a/App/index.htm +++ b/App/index.htm @@ -40,8 +40,8 @@

- -
+ +
diff --git a/App/js/options.js b/App/js/options.js index f7f17df..ab455a5 100644 --- a/App/js/options.js +++ b/App/js/options.js @@ -242,12 +242,15 @@ temp_OPTIONS = { }, - // Get game path + // Get game path / data getGamePath: function(){ // Check if game is running if (APP.gameHook.gameActive === !1){ + // Main popup + window.alert('INFO: After closing this message, select your main game executable.'); + // Select game executable APP.filemanager.selectFile('.exe', function(path){ @@ -260,8 +263,8 @@ temp_OPTIONS = { APP.options.settingsData.gamePath = pData.dir; // Set ram pos. - APP.options.settingsData.memoryData.stage = window.prompt('Please insert ram pos. for "Stage":\n[Example: "0x00A673C6" (without quotes) for Classic REbirth 1.1.0 SourceNext patch]'); - APP.options.settingsData.memoryData.room = window.prompt('Please insert ram pos. for "Room":\n[Example: "0x00A673C8" (without quotes) for Classic REbirth 1.1.0 SourceNext patch]'); + APP.options.settingsData.memoryData.stage = window.prompt('Please insert ram pos. for "Stage":\n\n[Example: "0x00A673C6" (without quotes) for Classic REbirth 1.1.0 SourceNext patch]'); + APP.options.settingsData.memoryData.room = window.prompt('Please insert ram pos. for "Room":\n\n[Example: "0x00A673C8" (without quotes) for Classic REbirth 1.1.0 SourceNext patch]'); // Check input var s = APP.options.settingsData.memoryData.stage, diff --git a/App/package.json b/App/package.json index c02d88d..d6686a6 100644 --- a/App/package.json +++ b/App/package.json @@ -1,32 +1 @@ -{ - "hash": "", - "version": "1.0.0", - "main": "index.htm", - "author": "TemmieHeartz", - "license": "GPL-2.0-only", - "name": "R3 Auto Map Gen", - "description": "This app creates a pseudo map on the go for Resident Evil 3 classic.", - "window": { - "frame": true, - "width": 1418, - "height": 736, - "toolbar": false, - "min_width": 1418, - "min_height": 736, - "fullscreen": false, - "position": "center", - "theme-color": "#200", - "icon": "img/icon.png", - "title": "R3 Auto Map Gen." - }, - "scripts": { - "dev": "nw -dev", - "build": "node comp-main.js" - }, - "dependencies": { - "nw": "^0.76.1-sdk" - }, - "devDependencies": { - "nw-builder": "^3.5.7" - } -} \ No newline at end of file +{"hash":"","version":"1.0.0","main":"index.htm","author":"TemmieHeartz","license":"GPL-2.0-only","name":"R3 Auto Map Gen","description":"This app creates a pseudo map on the go for Resident Evil 3 classic.","window":{"frame":true,"width":1418,"height":736,"toolbar":false,"min_width":1418,"min_height":736,"fullscreen":false,"position":"center","theme-color":"#200","icon":"img/icon.png","title":"R3 Auto Map Gen."}} \ No newline at end of file diff --git a/compile.js b/compile.js index 97fafea..81fb227 100644 --- a/compile.js +++ b/compile.js @@ -34,7 +34,10 @@ module.exports = { if (buildHash.length !== 0){ packageJson.hash = buildHash.slice(0, 6); } + packageJson.scripts = void 0; packageJson.main = 'index.htm'; + packageJson.dependencies = void 0; + packageJson.devDependencies = void 0; packageJson.window.icon = 'img/icon.png'; // Update package.json and remove inc file