[desktop] Allow deletion of add-ons from the add-on menu (#3626)

Adds a location param to the Patch struct which can be used to delete
any installed mods at the user's request. You can delete multiple at
once too, or just one by right-clicking

You are not able to delete game updates, DLC, or SDMC mods.

Signed-off-by: crueter <crueter@eden-emu.dev>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3626
Reviewed-by: DraVee <dravee@eden-emu.dev>
Reviewed-by: Maufeat <sahyno1996@gmail.com>
This commit is contained in:
crueter 2026-02-25 03:38:13 +01:00
parent f25582833a
commit 00e2128fab
No known key found for this signature in database
GPG key ID: 425ACD2D4830EBC6
8 changed files with 113 additions and 27 deletions

View file

@ -876,7 +876,8 @@ std::vector<Patch> PatchManager::GetPatches(VirtualFile update_raw) const {
.type = PatchType::Mod,
.program_id = title_id,
.title_id = title_id,
.source = PatchSource::Unknown
.source = PatchSource::Unknown,
.location = f->GetFullPath(),
});
}
@ -923,7 +924,8 @@ std::vector<Patch> PatchManager::GetPatches(VirtualFile update_raw) const {
.type = PatchType::Mod,
.program_id = title_id,
.title_id = title_id,
.source = PatchSource::Unknown});
.source = PatchSource::Unknown,
.location = mod->GetFullPath()});
}
}

View file

@ -46,6 +46,7 @@ struct Patch {
u64 program_id;
u64 title_id;
PatchSource source;
std::string location;
u32 numeric_version{0};
};