diff --git a/files/presetsData.json b/files/presetsData.json deleted file mode 100644 index 0c0c20115c..0000000000 --- a/files/presetsData.json +++ /dev/null @@ -1 +0,0 @@ -{"version":17} \ No newline at end of file diff --git a/scripts/version-files.js b/scripts/version-files.js deleted file mode 100644 index 1814ccd498..0000000000 --- a/scripts/version-files.js +++ /dev/null @@ -1,5 +0,0 @@ -const fs = require('fs') - -const data = JSON.parse(fs.readFileSync('./files/presetsData.json', { encoding: 'utf8' })) -data.version += 1 -fs.writeFileSync('./files/presetsData.json', JSON.stringify(data), { encoding: 'utf8', flag: 'w' }) diff --git a/src/paths.ts b/src/paths.ts index ae60878d21..81db7a4fd0 100644 --- a/src/paths.ts +++ b/src/paths.ts @@ -23,4 +23,3 @@ export const fuzzyCache: string = path.join(userDataDir, 'fuzzyCache.json'); export const customVariables: string = path.join(userDataDir, 'customVariables.json'); export const userExceptions: string = path.join(userDataDir, 'userExceptions.json'); export const configPresets: string = path.join(userDataDir, 'configPresets.json'); -export const presetsData: string = path.join(userDataDir, 'presetsData.json'); diff --git a/src/renderer/modifiers/config-presets.modifier.ts b/src/renderer/modifiers/config-presets.modifier.ts index ec7b18e577..fbf5be7e32 100644 --- a/src/renderer/modifiers/config-presets.modifier.ts +++ b/src/renderer/modifiers/config-presets.modifier.ts @@ -17,7 +17,7 @@ let versionUp = (version: number) => { return version + 1 }; export const configPreset: ValidatorModifier = { controlProperty: 'presetVersion', - latestVersion: 10, + latestVersion: 11, fields: { undefined: { 'presetVersion': { method: ()=>0 }, @@ -187,6 +187,12 @@ export const configPreset: ValidatorModifier = { steamCDN: {} } }} + }, + 10: { + 'presetVersion': { method: versionUp }, + 'imageProviders': { method: (oldValue) => { + return ['sgdb'] + }} } } };