ContentPack::findPack fix

This commit is contained in:
MihailRis 2024-02-19 02:17:42 +03:00
parent f2a5ece845
commit 8162def157

View File

@ -141,6 +141,10 @@ fs::path ContentPack::findPack(const EnginePaths* paths, fs::path worldDir, std:
if (fs::is_directory(folder)) {
return folder;
}
folder = paths->getUserfiles() / fs::path("content") / fs::path(name);
if (fs::is_directory(folder)) {
return folder;
}
folder = paths->getResources() / fs::path("content") / fs::path(name);
if (fs::is_directory(folder)) {
return folder;