diff --git a/.vscode/settings.json b/.vscode/settings.json index c773663c..08ab08b7 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -62,6 +62,7 @@ "MODNAME", "modsdirectoryoverride", "modtiny", + "nohub", "nomp", "nonmh", "norecord", diff --git a/modAssist_main.js b/modAssist_main.js index 34e23ceb..83be58cd 100644 --- a/modAssist_main.js +++ b/modAssist_main.js @@ -112,6 +112,7 @@ const settingsSchema = { game_settings : { type : 'string', default : path.join(pathBestGuess, 'gameSettings.xml') }, game_path : { type : 'string', default : foundGame }, cache_version : { type : 'string', default : '0.0.0' }, + game_args : { type : 'string', default : '' }, } const Store = require('electron-store') @@ -608,7 +609,7 @@ ipcMain.on('toMain_startFarmSim', () => { if ( mcStore.get('game_path') !== '' ) { const cp = require('child_process') const progPath = mcStore.get('game_path') - const child = cp.spawn(progPath, { detached : true, stdio : ['ignore', 'ignore', 'ignore'] }) + const child = cp.spawn(progPath, mcStore.get('game_args').split(' '), { detached : true, stdio : ['ignore', 'ignore', 'ignore'] }) child.unref() } else { const dialogOpts = { @@ -711,7 +712,7 @@ function openSaveGame(zipMode = false) { if ( !result.canceled ) { try { const thisSavegame = new saveFileChecker(result.filePaths[0], !zipMode, log) - windows.save.webContents.send('fromMain_saveInfo', modList, thisSavegame) + windows.save.webContents.send('fromMain_saveInfo', modList, thisSavegame, modHubList) } catch (e) { log.log.danger(`Load failed: ${e}`, 'savegame') } diff --git a/package.json b/package.json index dba14526..e2a2b29b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fsg-mod-assistant", - "version": "0.10.1", + "version": "0.10.2", "description": "FSG Farm Sim Mod Assistant", "main": "modAssist_main.js", "homepage": "https://github.com/FSGModding/FSG_Mod_Assistant#readme", diff --git a/renderer/prefs.html b/renderer/prefs.html index e599877b..dca3a128 100644 --- a/renderer/prefs.html +++ b/renderer/prefs.html @@ -32,13 +32,22 @@