Route every extension bank-directory lookup through one bankRootOf seam

The pure bankRootFor(rppPath, unsavedRoot) and the shell bankRootOf(ReaProject*) replace eleven hand-rolled .rpp-parent derivations. No unsaved root is supplied yet, so behaviour and refusals are unchanged. Save-As relocation now reads the stored lastBankRoot_.
This commit is contained in:
2026-09-25 14:53:48 -04:00
parent c3e7556261
commit 43994e0d9d
27 changed files with 212 additions and 192 deletions
+6
View File
@@ -106,6 +106,12 @@ std::string projectDirOfRpp(const std::string& rppPath) {
return normalizeSlashes(dir);
}
std::string bankRootFor(const std::string& rppPath, const std::string& unsavedRoot) {
const std::string projectDir = projectDirOfRpp(rppPath);
if (!projectDir.empty()) return projectDir;
return normalizeSlashes(unsavedRoot);
}
BankRelocation deriveRelocationPlan(const std::string& oldProjectDir,
const std::string& newProjectDir) {
BankRelocation r;