mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
Paths fix
This commit is contained in:
parent
eed251843b
commit
868ec6ee2e
1 changed files with 2 additions and 2 deletions
|
|
@ -19,7 +19,7 @@ path EnginePaths::getResources() const {
|
|||
}
|
||||
|
||||
path EnginePaths::getScreenshotFile(string ext) {
|
||||
path folder = SCREENSHOTS_FOLDER;
|
||||
path folder = userfiles/path(SCREENSHOTS_FOLDER);
|
||||
if (!fs::is_directory(folder)) {
|
||||
fs::create_directory(folder);
|
||||
}
|
||||
|
|
@ -42,7 +42,7 @@ path EnginePaths::getScreenshotFile(string ext) {
|
|||
}
|
||||
|
||||
path EnginePaths::getWorldsFolder() {
|
||||
return path("worlds");
|
||||
return userfiles/path("worlds");
|
||||
}
|
||||
|
||||
bool EnginePaths::isWorldNameUsed(string name) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue