mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 23:11:49 +00:00
ContentPack::findPack fix
This commit is contained in:
parent
f2a5ece845
commit
8162def157
1 changed files with 4 additions and 0 deletions
|
|
@ -141,6 +141,10 @@ fs::path ContentPack::findPack(const EnginePaths* paths, fs::path worldDir, std:
|
||||||
if (fs::is_directory(folder)) {
|
if (fs::is_directory(folder)) {
|
||||||
return 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);
|
folder = paths->getResources() / fs::path("content") / fs::path(name);
|
||||||
if (fs::is_directory(folder)) {
|
if (fs::is_directory(folder)) {
|
||||||
return folder;
|
return folder;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue