Browse Source

Merge branch 'v1' of github.com:VCVRack/Rack into v1

tags/v1.1.2
Andrew Belt 5 years ago
parent
commit
c6b91fa7dc
2 changed files with 3 additions and 2 deletions
  1. +2
    -1
      src/patch.cpp
  2. +1
    -1
      src/plugin.cpp

+ 2
- 1
src/patch.cpp View File

@@ -138,8 +138,9 @@ void PatchManager::saveAsDialog() {
std::free(pathC); std::free(pathC);
}); });


// Append .vcv extension if no extension was given.
std::string pathStr = pathC; std::string pathStr = pathC;
if (string::filenameExtension(pathStr).empty()) {
if (string::filenameExtension(string::filename(pathStr)) == "") {
pathStr += ".vcv"; pathStr += ".vcv";
} }




+ 1
- 1
src/plugin.cpp View File

@@ -247,7 +247,7 @@ static void extractPackages(std::string path) {
std::string message; std::string message;


for (std::string packagePath : system::getEntries(path)) { for (std::string packagePath : system::getEntries(path)) {
if (string::filenameExtension(packagePath) != "zip")
if (string::filenameExtension(string::filename(packagePath)) != "zip")
continue; continue;
INFO("Extracting package %s", packagePath.c_str()); INFO("Extracting package %s", packagePath.c_str());
// Extract package // Extract package


Loading…
Cancel
Save