A few updates to the Project layout + some compatibility stuff lol.
New Project layout i added: ProjectName/ ├─ Assets/ │ ├─ Scenes/ │ ├─ Scripts/ │ │ ├─ Runtime/ │ │ └─ Editor/ │ ├─ Models/ │ ├─ Shaders/ │ └─ Materials/ ├─ Library/ (aka CacheLibrary) │ ├─ CompiledScripts/ │ ├─ InstalledPackages/ │ ├─ ScriptTemp/ │ └─ Temp/ ├─ ProjectUserSettings/ │ ├─ ProjectLayout/ │ ├─ ScriptSettings/ │ └─ UserPrefs/ (optional) ├─ packages.modu ├─ project.modu └─ scripts.modu
This commit is contained in:
@@ -408,6 +408,10 @@ std::string PackageManager::join(const std::vector<std::string>& vals, char deli
|
||||
}
|
||||
|
||||
fs::path PackageManager::packagesFolder() const {
|
||||
fs::path newFolder = projectRoot / "Library" / "InstalledPackages";
|
||||
if (fs::exists(newFolder) || fs::exists(projectRoot / "scripts.modu")) {
|
||||
return newFolder;
|
||||
}
|
||||
return projectRoot / "Packages";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user