mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-03-13 08:58:54 -05:00
Fix crash if screenshot folder already existed
This commit is contained in:
@@ -321,7 +321,10 @@ void mainInitFunc() {
|
||||
strftime(mbstr, sizeof(mbstr), "%Y-%m-%d-%H-%M", nowTime);
|
||||
screenshotPath += "/" + std::string(mbstr);
|
||||
|
||||
FileSys.createDirectory(absPath(screenshotPath));
|
||||
std::string p = absPath(screenshotPath);
|
||||
if (!FileSys.directoryExists(p)) {
|
||||
FileSys.createDirectory(p);
|
||||
}
|
||||
}
|
||||
|
||||
for (size_t i = 0; i < nWindows; ++i) {
|
||||
|
||||
Reference in New Issue
Block a user