Skip to content

Commit

Permalink
Rework collection cleanName, redo debug flags to be safer, bump to 0.…
Browse files Browse the repository at this point in the history
…9.100
  • Loading branch information
jtsage committed Oct 27, 2022
1 parent 954bb96 commit 568332d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions modAssist_main.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,10 @@ const { ma_logger } = require('./lib/ma-logger.js')
const mcDetail = require('./package.json')
const log = new ma_logger('modAssist', app, 'assist.log', gotTheLock)

let devDebug = false
let skipCache = false
const devDebug = !(app.isPackaged)
const skipCache = false && !(app.isPackaged)
let updaterInterval = null

if ( app.isPackaged ) { devDebug = false; skipCache = false }

log.log.info(`ModAssist Logger: ${mcDetail.version}`)

if ( process.platform === 'win32' && app.isPackaged && gotTheLock ) {
Expand Down Expand Up @@ -958,7 +956,8 @@ function processModFolders_post(newFolder = false) {
mcStore.set('modFolders', Array.from(modFolders))

modFolders.forEach((folder) => {
const cleanName = folder.replaceAll('\\', '-').replaceAll(':', '').replaceAll(' ', '_')
const cleanName = `col_${crypto.createHash('md5').update(folder).digest('hex')}`
//const cleanName = folder.replaceAll('\\', '-').replaceAll(':', '').replace(/[^\w-]/gi, '_')
const shortName = path.basename(folder)
const localStore = maCache.store

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fsg-mod-assistant",
"version": "0.9.99",
"version": "0.9.100",
"description": "FSG Farm Sim Mod Assistant",
"main": "modAssist_main.js",
"homepage": "https://github.com/FSGModding/FSG_Mod_Assistant#readme",
Expand Down

0 comments on commit 568332d

Please sign in to comment.