Add support for "factorysample:" prefix / Fix "bassloopes" typo (#7236)
## Add support for "factorysample:" prefix Add support to upgrade files with `src` tags that are prefixed with "factorysample:". ## Fix "bassloopes" typo Fix projects that still reference files with the typo "bassloopes" in their name. The upgrade is implemented in its own method because it is unrelated to the BPM renaming even if it is technically very similar in its solution. Introduce the helper method `mapSrcAttributeInElementsWithResources` which replaces the `src` attribute in elements with resources (samples and AFP) if it can be found in a map.
This commit is contained in:
committed by
GitHub
parent
b1ee626633
commit
beedbc18a6
@@ -101,6 +101,8 @@ private:
|
||||
|
||||
void cleanMetaNodes( QDomElement de );
|
||||
|
||||
void mapSrcAttributeInElementsWithResources(const QMap<QString, QString>& map);
|
||||
|
||||
// helper upgrade routines
|
||||
void upgrade_0_2_1_20070501();
|
||||
void upgrade_0_2_1_20070508();
|
||||
@@ -130,6 +132,7 @@ private:
|
||||
void upgrade_loopsRename();
|
||||
void upgrade_noteTypes();
|
||||
void upgrade_fixCMTDelays();
|
||||
void upgrade_fixBassLoopsTypo();
|
||||
|
||||
// List of all upgrade methods
|
||||
static const std::vector<UpgradeMethod> UPGRADE_METHODS;
|
||||
|
||||
Reference in New Issue
Block a user