Skip to content

Commit

Permalink
Potential fix for launch game bug
Browse files Browse the repository at this point in the history
  • Loading branch information
FLSoz committed Mar 25, 2022
1 parent 4046cc0 commit a5f3600
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 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.3.3",
"version": "1.3.4",
"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.3.3",
"version": "1.3.4",
"main": "./dist/main/main.js",
"author": {
"name": "FLSoz",
Expand Down
8 changes: 4 additions & 4 deletions src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const isDevelopment = process.env.NODE_ENV === 'development' || process.env.DEBU

export default class AppUpdater {
constructor() {
log.transports.file.level = isDevelopment ? 'debug' : 'warn';
log.transports.file.level = isDevelopment ? 'debug' : 'info';
autoUpdater.logger = log;
autoUpdater.checkForUpdatesAndNotify();
}
Expand Down Expand Up @@ -711,11 +711,11 @@ interface ProcessDetails {
ipcMain.on('game-running', async (event) => {
let running = false;
await psList().then((processes: ProcessDetails[]) => {
const matches = processes.filter((process) => /[Tt]erra[Tt]ech(?!.*mod.*manager)/.test(process.name));
const matches = processes.filter((process) => /[Tt]erra[Tt]ech(?!.*mod)/.test(process.name));
running = matches.length > 0;
if (running) {
log.info('Detected TT is running. Currently running processes:');
log.info(matches);
log.warn('Detected TT is running. Currently running processes:');
log.warn(matches);
}
event.reply('game-running', running);
return running;
Expand Down

0 comments on commit a5f3600

Please sign in to comment.