新增windows支持
This commit is contained in:
1 parent
6837ecada9
commit
bd0771747d
5 files changed
+156
-20
No files matched your search
@@ -17,6 +17,10 @@ std::vector<fs::path> SpineVersionAvailability::defaultCacheRoots() const {
|
||||
roots.emplace_back(fs::path(roaming) / "Spine/updates");
|
||||
if (const char* local = std::getenv("LOCALAPPDATA"))
|
||||
roots.emplace_back(fs::path(local) / "Spine/updates");
|
||||
// Spine Launcher also keeps its update cache directly under the user's
|
||||
// profile directory (e.g. C:\Users\<name>\Spine\updates).
|
||||
if (const char* userProfile = std::getenv("USERPROFILE"))
|
||||
roots.emplace_back(fs::path(userProfile) / "Spine/updates");
|
||||
#endif
|
||||
return roots;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user