mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
add compatibility with other files
This commit is contained in:
parent
62125b14b4
commit
91ad9cc64c
9 changed files with 25 additions and 25 deletions
|
|
@ -128,11 +128,11 @@ fs::path ContentPack::findPack(
|
|||
if (fs::is_directory(folder)) {
|
||||
return folder;
|
||||
}
|
||||
folder = paths->getUserfiles() / fs::path("content") / fs::path(name);
|
||||
folder = paths->getUserFilesFolder() / fs::path("content") / fs::path(name);
|
||||
if (fs::is_directory(folder)) {
|
||||
return folder;
|
||||
}
|
||||
return paths->getResources() / fs::path("content") / fs::path(name);
|
||||
return paths->getResourcesFolder() / fs::path("content") / fs::path(name);
|
||||
}
|
||||
|
||||
ContentPackRuntime::ContentPackRuntime(ContentPack info, scriptenv env)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue