Added back the WIN32 switch

This commit is contained in:
Paul Ferrand 2020-01-26 21:15:20 +01:00 committed by GitHub
parent 06755812db
commit 15e5212cfc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -113,6 +113,9 @@ bool sfz::FilePool::checkSample(std::string& filename) const noexcept
if (fs::exists(path, ec))
return true;
#if WIN32
return false;
#else
fs::path oldPath = std::move(path);
path = oldPath.root_path();
@ -160,6 +163,7 @@ bool sfz::FilePool::checkSample(std::string& filename) const noexcept
DBG("Updating " << filename << " to " << newPath.native());
filename = newPath.string();
return true;
#endif
}
absl::optional<sfz::FilePool::FileInformation> sfz::FilePool::getFileInformation(const std::string& filename) noexcept