Skip to content

Commit

Permalink
Fix still asking for local dir on app start
Browse files Browse the repository at this point in the history
  • Loading branch information
FLSoz committed Apr 14, 2022
1 parent 72c5b3f commit ddcada6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "terratech-steam-mod-loader",
"productName": "ttsm",
"description": "Mod loader for TerraTech that handles Steam Workshop mod configurations",
"version": "1.5.2",
"version": "1.5.3",
"scripts": {
"build": "concurrently \"npm run build:main\" \"npm run build:renderer\"",
"build:main": "cross-env NODE_ENV=production TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.main.prod.ts",
Expand Down
2 changes: 1 addition & 1 deletion release/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "terratech-steam-mod-loader",
"productName": "ttsm",
"description": "Mod loader for TerraTech that handles Steam Workshop mod configurations",
"version": "1.5.2",
"version": "1.5.3",
"main": "./dist/main/main.js",
"author": {
"name": "FLSoz",
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/loading/ConfigLoading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ async function validateAppConfig(config: AppConfig): Promise<{ [field: string]:
const fields: ('gameExec' | 'localDir')[] = ['gameExec', 'localDir'];
const paths = ['Steam executable', 'TerraTech Steam Workshop directory', 'TerraTech Local Mods directory'];
let failed = false;
await Promise.allSettled([api.pathExists(config.gameExec), !config.localDir ? false : api.pathExists]).then((results) => {
await Promise.allSettled([api.pathExists(config.gameExec), config.localDir ? api.pathExists(config.localDir) : true]).then((results) => {
results.forEach((result, index) => {
if (result.status !== 'fulfilled') {
errors[fields[index]] = `Unexpected error checking ${fields[index]} path (${paths[index]})`;
Expand Down

0 comments on commit ddcada6

Please sign in to comment.