mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-22 11:18:22 -05:00
Don't automatically create screenshot folder until the folder is actually needed (closes #1639)
This commit is contained in:
@@ -375,9 +375,7 @@ RenderEngine::RenderEngine()
|
||||
std::filesystem::path newFolder = absPath(
|
||||
"${STARTUP_SCREENSHOT}/" + std::string(date)
|
||||
);
|
||||
if (!std::filesystem::is_directory(newFolder)) {
|
||||
std::filesystem::create_directory(newFolder);
|
||||
}
|
||||
|
||||
FileSys.registerPathToken(
|
||||
"${SCREENSHOTS}",
|
||||
newFolder,
|
||||
|
||||
Reference in New Issue
Block a user