Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

Keep OpenEmu's and Dolphin's saved games unselected

Țugui Dragoșd3974a793560
diff --git a/Packages/PeelCore/Sources/PeelCore/Leftovers/KeptOnlyHere.swift b/Packages/PeelCore/Sources/PeelCore/Leftovers/KeptOnlyHere.swift
index 16ea0a90..d1bd5a22 100644
--- a/Packages/PeelCore/Sources/PeelCore/Leftovers/KeptOnlyHere.swift
+++ b/Packages/PeelCore/Sources/PeelCore/Leftovers/KeptOnlyHere.swift
@@ -92,6 +92,13 @@ enum KeptOnlyHere {
// Steam Support's "Steam Cloud": cloud files are kept here by default, and with Steam Cloud off a game's saves
// are kept only here.
("Library/Application Support/Steam", "userdata", .holdsWorkMadeWithTheApp),
+ // OpenEmu's "User Guide: Transfer Save Files": each core's in-game saves are in its folder.
+ ("Library/Application Support/OpenEmu", nil, .holdsWorkMadeWithTheApp),
+ // Dolphin's `Source/Core/Common/CommonPaths.h`: memory cards in `GC`, the Wii's storage in `Wii`, and the save
+ // states.
+ ("Library/Application Support/Dolphin", "GC", .holdsWorkMadeWithTheApp),
+ ("Library/Application Support/Dolphin", "Wii", .holdsWorkMadeWithTheApp),
+ ("Library/Application Support/Dolphin", "StateSaves", .holdsWorkMadeWithTheApp),
// Mojang's "Manually Uninstall Minecraft: Java Edition": the saved worlds and screenshots are in this folder,
// and Minecraft support can't recover deleted files.
("Library/Application Support/minecraft", "saves", .holdsWorkMadeWithTheApp),
diff --git a/Packages/PeelCore/Tests/PeelCoreTests/KeptOnlyHereTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/KeptOnlyHereTests.swift
index 5c61813e..03274f1e 100644
--- a/Packages/PeelCore/Tests/PeelCoreTests/KeptOnlyHereTests.swift
+++ b/Packages/PeelCore/Tests/PeelCoreTests/KeptOnlyHereTests.swift
@@ -89,6 +89,11 @@ struct KeptOnlyHereTests {
.holdsWorkMadeWithTheApp),
("Library/Containers/com.Microsoft.Powerpoint/Data/Library/Preferences/AutoRecovery", .holdsWorkMadeWithTheApp),
("Library/Containers/com.microsoft.Excel/Data/Library/Application Support/Microsoft", .holdsWorkMadeWithTheApp),
+ ("Library/Application Support/OpenEmu/BSNES/Battery Saves/Game.srm", .holdsWorkMadeWithTheApp),
+ ("Library/Application Support/Dolphin", .holdsWorkMadeWithTheApp),
+ ("Library/Application Support/Dolphin/GC/USA/Card A", .holdsWorkMadeWithTheApp),
+ ("Library/Application Support/Dolphin/Wii/title", .holdsWorkMadeWithTheApp),
+ ("Library/Application Support/Dolphin/StateSaves/GALE01.s01", .holdsWorkMadeWithTheApp),
("Library/Application Support/Tunnelblick/Configurations/work.tblk", .holdsVPNConnections),
("Library/Application Support/Viscosity", .holdsVPNConnections),
("Library/Application Support/Steam", .holdsWorkMadeWithTheApp),
@@ -152,6 +157,7 @@ struct KeptOnlyHereTests {
@Test func leavesWhatSitsBesideOrAroundThem() {
let free = [
"Library/Application Support", "Library/Group Containers", "Library", "Library/Caches/Signal",
+ "Library/Application Support/Dolphin/Cache", "Library/Application Support/Dolphin/Logs",
"Library/Containers/com.microsoft.Word/Data/Library/Caches",
"Library/Containers/com.microsoft.Excel/Data/Library/Preferences",
"Library/Application Support/AutoBrew/Logs",