Added back the WIN32 switch
This commit is contained in:
parent
06755812db
commit
15e5212cfc
1 changed files with 4 additions and 0 deletions
|
|
@ -113,6 +113,9 @@ bool sfz::FilePool::checkSample(std::string& filename) const noexcept
|
||||||
if (fs::exists(path, ec))
|
if (fs::exists(path, ec))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
#if WIN32
|
||||||
|
return false;
|
||||||
|
#else
|
||||||
fs::path oldPath = std::move(path);
|
fs::path oldPath = std::move(path);
|
||||||
path = oldPath.root_path();
|
path = oldPath.root_path();
|
||||||
|
|
||||||
|
|
@ -160,6 +163,7 @@ bool sfz::FilePool::checkSample(std::string& filename) const noexcept
|
||||||
DBG("Updating " << filename << " to " << newPath.native());
|
DBG("Updating " << filename << " to " << newPath.native());
|
||||||
filename = newPath.string();
|
filename = newPath.string();
|
||||||
return true;
|
return true;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
absl::optional<sfz::FilePool::FileInformation> sfz::FilePool::getFileInformation(const std::string& filename) noexcept
|
absl::optional<sfz::FilePool::FileInformation> sfz::FilePool::getFileInformation(const std::string& filename) noexcept
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue