mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix content control (#538)
* update ContentControl * feat: more debug logging * fix engine paths
This commit is contained in:
parent
af3c315c04
commit
215ae02fa9
7 changed files with 30 additions and 18 deletions
|
|
@ -149,8 +149,12 @@ void EnginePaths::setProjectFolder(std::filesystem::path folder) {
|
|||
}
|
||||
|
||||
void EnginePaths::setCurrentWorldFolder(io::path folder) {
|
||||
if (folder.empty()) {
|
||||
io::remove_device("world");
|
||||
} else {
|
||||
io::create_subdevice("world", "user", folder);
|
||||
}
|
||||
this->currentWorldFolder = std::move(folder);
|
||||
io::create_subdevice("world", "user", currentWorldFolder);
|
||||
}
|
||||
|
||||
std::string EnginePaths::mount(const io::path& file) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue