Skip to content

Commit

Permalink
General: Rename "Select game executable" to "App Setup" and small cle…
Browse files Browse the repository at this point in the history
…anup
  • Loading branch information
themitosan committed May 19, 2023
1 parent 32a6822 commit c76995c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 37 deletions.
4 changes: 2 additions & 2 deletions App/index.htm
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
<input type="button" title="Global Shortcut: Ctrl+F10" value="[F10] Reload Map" onclick="APP.options.loadLatestFile();" class="BTN_OPTIONS" id="BTN_MAP_RELOAD" disabled="disabled">
<br><br>

<!-- Get game path -->
<input type="button" value="Select game executable" onclick="APP.options.getGamePath();" class="BTN_OPTIONS" id="BTN_SELECT_EXE"><br>
<!-- Run config -->
<input type="button" value="App Setup" onclick="APP.options.getGamePath();" class="BTN_OPTIONS" id="BTN_SELECT_EXE"><br>

<div class="DIV_CHECKBOX">
<input type="checkbox" id="CHECKBOX_isBioRand">
Expand Down
9 changes: 6 additions & 3 deletions App/js/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -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){

Expand All @@ -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,
Expand Down
33 changes: 1 addition & 32 deletions App/package.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
{"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."}}
3 changes: 3 additions & 0 deletions compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c76995c

Please sign in to comment.