ModSync icon indicating copy to clipboard operation
ModSync copied to clipboard

Allow intersected sync paths with different parameters

Open hood-ok opened this issue 2 years ago • 1 comments

Example of config.jsonc

{
	"syncPaths": [
		{
			"path": "BepInEx/config/FOVFix.cfg",
			"enabled": true,
			"enforced": false,
			"restartRequired": false
		},
		{
			"path": "BepInEx/config",
			"enabled": true,
			"enforced": true,
			"restartRequired": false
		}
	],
	"commonModExclusions": [
	]
}

The example aims to enforce sync of all files in BepInEx/config except FOVFix.cfg, which is not forced. It should rely on the order in syncPaths: the higher the position - the higher the order.

With this change:

  • It's not required to add all config files manually with an enforced parameter
  • This will allow the update BepInEx/config files without touching files allowed to be modified by skipping the update (enforced files always be downloaded)

hood-ok avatar Sep 02 '24 06:09 hood-ok

Added with v0.9.0

c-orter avatar Oct 28 '24 16:10 c-orter