diff options
| author | Rémy Raes <contact@remyraes.com> | 2025-09-05 23:11:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-05 23:11:57 +0200 |
| commit | 6f9ad6d7186589dc4bbddb7c31ea6056d3c55caa (patch) | |
| tree | 91ee0c666ccf7af7ff134fb9a227a799631d3f34 /src-vue/src | |
| parent | 2c1e8e6d872bcbb3c42ef8e6eb19ada8e7270b1e (diff) | |
| download | FlightCore-6f9ad6d7186589dc4bbddb7c31ea6056d3c55caa.tar.gz FlightCore-6f9ad6d7186589dc4bbddb7c31ea6056d3c55caa.zip | |
feat: Implement mod versioning (#1051)
* feat: detect old enabledmods.json format
* fix: don't crash with non-existing enabledmods.json file
* feat: new file format can be used to retrieve mod information
* feat: add a mod_version parameter to set_mod_enabled_status function
* feat: rebuild_enabled_mods_json can rebuild manifest using new format
* fix: set_mod_enabled_status tries to retrieve mod version if it wasn't given as input
* refactor: export used manifest version in constants package
* fix: "Version" field is not a mod
* fix: don't set old format based on file content
* feat: put "Version" attribute on top of file
* feat: add manifest_version parameter to rebuild_enabled_mods_json
* fix: disable all versions of a mod with manifest v1
* style: apply rustfmt formatting
* style: apply clippy suggestions
* ci: Re-enable deactivating updater on CI
* ci: Use `sponge` command instead of writing to new file
and then renaming the new file
* ci: Delete `createUpdaterArtifacts` key on build
as CI might not always have access to signing key so we need to disable the updater
* fix(ci): Install `sponge` command
* ci: Revert to saving changes in new file
as `sponge` cannot be easily installed on Windows runners
---------
Co-authored-by: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>
Co-authored-by: GeckoEidechse <gecko.eidechse+git@pm.me>
Diffstat (limited to 'src-vue/src')
| -rw-r--r-- | src-vue/src/components/LocalModCard.vue | 1 | ||||
| -rw-r--r-- | src-vue/src/views/RepairView.vue | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src-vue/src/components/LocalModCard.vue b/src-vue/src/components/LocalModCard.vue index 1ac109af..e2d008ad 100644 --- a/src-vue/src/components/LocalModCard.vue +++ b/src-vue/src/components/LocalModCard.vue @@ -62,6 +62,7 @@ export default defineComponent({ await invoke("set_mod_enabled_status", { gameInstall: this.$store.state.game_install, modName: mod.name, + modVersion: mod.version, // Need to set it to the opposite of current state, // as current state is only updated after command is run isEnabled: !mod.enabled, diff --git a/src-vue/src/views/RepairView.vue b/src-vue/src/views/RepairView.vue index fa658c0e..f91b498f 100644 --- a/src-vue/src/views/RepairView.vue +++ b/src-vue/src/views/RepairView.vue @@ -116,7 +116,7 @@ export default defineComponent({ await persistentStore.save(); }, async disableModsettingsMod() { - await invoke("set_mod_enabled_status", { gameInstall: this.$store.state.game_install, modName: "Mod Settings", isEnabled: false }) + await invoke("set_mod_enabled_status", { gameInstall: this.$store.state.game_install, modName: "Mod Settings", modVersion: "", isEnabled: false }) .then((_message) => { showNotification(this.$t('generic.success'), this.$t('settings.repair.window.disable_modsettings_success')); }) |
