Browse Source

Use stoll() on Windows to convert module patch storage name to int64_t.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
f665e52811
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/patch.cpp

+ 3
- 3
src/patch.cpp View File

@@ -217,13 +217,13 @@ void Manager::cleanAutosave() {
if (system::isDirectory(modulesDir)) {
for (const std::string& entry : system::getEntries(modulesDir)) {
try {
int64_t moduleId = std::stol(system::getFilename(entry));
int64_t moduleId = std::stoll(system::getFilename(entry));
// Ignore modules that exist in the rack
if (APP->engine->getModule(moduleId))
continue;
}
catch (std::invalid_argument& e) {
}
catch (std::invalid_argument& e) {}
catch (std::out_of_range& e) {}
// Remove the entry.
system::removeRecursively(entry);
}


Loading…
Cancel
Save