Skip to content

Commit

Permalink
removed obsolete presetsData
Browse files Browse the repository at this point in the history
  • Loading branch information
cbartondock committed May 25, 2024
1 parent a4be362 commit caa1ff3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
1 change: 0 additions & 1 deletion files/presetsData.json

This file was deleted.

5 changes: 0 additions & 5 deletions scripts/version-files.js

This file was deleted.

1 change: 0 additions & 1 deletion src/paths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
8 changes: 7 additions & 1 deletion src/renderer/modifiers/config-presets.modifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ let versionUp = (version: number) => { return version + 1 };

export const configPreset: ValidatorModifier<UserConfiguration> = {
controlProperty: 'presetVersion',
latestVersion: 10,
latestVersion: 11,
fields: {
undefined: {
'presetVersion': { method: ()=>0 },
Expand Down Expand Up @@ -187,6 +187,12 @@ export const configPreset: ValidatorModifier<UserConfiguration> = {
steamCDN: {}
}
}}
},
10: {
'presetVersion': { method: versionUp },
'imageProviders': { method: (oldValue) => {
return ['sgdb']
}}
}
}
};

0 comments on commit caa1ff3

Please sign in to comment.