From 2a85591af76ee9501d2034cdca75b91c1fa0f2d9 Mon Sep 17 00:00:00 2001
From: "J.T. Sage" <jtsage+datebox@gmail.com>
Date: Fri, 28 Oct 2022 11:47:06 -0400
Subject: [PATCH] Add facility for cache invalidation, bump to 0.10.0

---
 README.md         | 1 +
 modAssist_main.js | 6 ++++++
 package.json      | 2 +-
 3 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 831984f8..4437c44c 100644
--- a/README.md
+++ b/README.md
@@ -195,6 +195,7 @@ In this display, you can compare a collection to a savegame.  Both savegame fold
 - __In-Active__ : This mod is not loaded in the savegame
 - __Active__ : This mod is loaded in the savegame
 - __Used__ : This mod is used in the savegame (someone owns something from it)
+- __Unused__ : This mod is NOT used in the savegame (nobody owns anything from it)
 - __Script__ : This mod contains only scripts, so it is assumed it is in use in the savegame
 - __Missing__ : This mod is active or used in the savegame, but you do not have the file in your collection
 - __DLC__ : This mod is paid DLC content from Giants
diff --git a/modAssist_main.js b/modAssist_main.js
index 297eed3b..c6847138 100644
--- a/modAssist_main.js
+++ b/modAssist_main.js
@@ -110,6 +110,7 @@ const settingsSchema = {
 	force_lang        : { type : 'string', default : '' },
 	game_settings     : { type : 'string', default : path.join(pathBestGuess, 'gameSettings.xml') },
 	game_path         : { type : 'string', default : foundGame },
+	cache_version     : { type : 'string', default : '0.0.0' },
 }
 
 const Store   = require('electron-store')
@@ -169,6 +170,11 @@ let overrideFolder  = null
 let overrideIndex   = '999'
 let overrideActive  = null
 
+/** Upgrade Cache Version Here */
+
+mcStore.set('cache_version', mcDetail.version)
+
+/** END: Upgrade Cache Version Here */
 
 
 /*  _    _  ____  _  _  ____   _____  _    _  ___ 
diff --git a/package.json b/package.json
index a1b3f1c1..01fea2a9 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "fsg-mod-assistant",
-  "version": "0.9.100",
+  "version": "0.10.0",
   "description": "FSG Farm Sim Mod Assistant",
   "main": "modAssist_main.js",
   "homepage": "https://github.com/FSGModding/FSG_Mod_Assistant#readme",