diff options
| author | crueter <crueter@eden-emu.dev> | 2026-02-25 03:38:13 +0100 |
|---|---|---|
| committer | crueter <crueter@eden-emu.dev> | 2026-02-25 03:38:13 +0100 |
| commit | 00e2128fab729e3f6ff2726ea779da65f77b5818 (patch) | |
| tree | 6e3ad81957ddd80d4417e115d69ba354d9079bd3 /src/core/file_sys/patch_manager.cpp | |
| parent | f25582833aa5d9cc8e540c217cf301eab9e607e7 (diff) | |
[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>
Diffstat (limited to 'src/core/file_sys/patch_manager.cpp')
| -rw-r--r-- | src/core/file_sys/patch_manager.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/file_sys/patch_manager.cpp b/src/core/file_sys/patch_manager.cpp index 44aafb6b34..82944ceceb 100644 --- a/src/core/file_sys/patch_manager.cpp +++ b/src/core/file_sys/patch_manager.cpp @@ -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()}); } } |
