-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update dpf patches to apply cleanly again
Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
- Loading branch information
1 parent
cf284a2
commit 1d010ae
Showing
2 changed files
with
15 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,15 @@ | ||
diff --git a/distrho/src/DistrhoPluginLV2export.cpp b/distrho/src/DistrhoPluginLV2export.cpp | ||
index c074109..1bce6b0 100644 | ||
index ba3cb196..4a238eb9 100644 | ||
--- a/distrho/src/DistrhoPluginLV2export.cpp | ||
+++ b/distrho/src/DistrhoPluginLV2export.cpp | ||
@@ -746,16 +746,11 @@ void lv2_generate_ttl(const char* const basename) | ||
{ | ||
const uint32_t version(plugin.getVersion()); | ||
@@ -1183,8 +1183,8 @@ void lv2_generate_ttl(const char* const basename) | ||
const uint32_t microVersion = (version & 0x0000FF) >> 0; | ||
|
||
- const uint32_t majorVersion = (version & 0xFF0000) >> 16; | ||
- const uint32_t microVersion = (version & 0x00FF00) >> 8; | ||
- /* */ uint32_t minorVersion = (version & 0x0000FF) >> 0; | ||
+ const uint32_t minorVersion = (version & 0x00FF00) >> 8; | ||
+ const uint32_t microVersion = (version & 0x0000FF) >> 0; | ||
|
||
- // NOTE: LV2 ignores 'major' version and says 0 for minor is pre-release/unstable. | ||
// NOTE: LV2 ignores 'major' version and says 0 for minor is pre-release/unstable. | ||
- if (majorVersion > 0) | ||
- minorVersion += 2; | ||
- | ||
- pluginString += " lv2:microVersion " + String(microVersion) + " ;\n"; | ||
- pluginString += " lv2:minorVersion " + String(minorVersion) + " .\n"; | ||
+ pluginString += " lv2:minorVersion " + String(minorVersion) + " ;\n"; | ||
+ pluginString += " lv2:microVersion " + String(microVersion) + " .\n"; | ||
} | ||
+ if (majorVersion > 0 && minorVersion == 0) | ||
+ minorVersion = 2; | ||
|
||
pluginFile << pluginString << std::endl; | ||
pluginString += " lv2:microVersion " + String(microVersion) + " ;\n"; | ||
pluginString += " lv2:minorVersion " + String(minorVersion) + " .\n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters