mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-12 22:50:13 -06:00
Feature/filesystem cleanup (#1587)
* Adapting to the changes in Ghoul * First step of moving filesystem functions to std * Remove persistence flag from cachemanager
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
#include <ghoul/logging/logmanager.h>
|
||||
#include <ghoul/lua/lua_helper.h>
|
||||
#include <ghoul/misc/profiling.h>
|
||||
#include <filesystem>
|
||||
#include <fstream>
|
||||
|
||||
#include "scriptengine_lua.inl"
|
||||
@@ -211,7 +212,7 @@ bool ScriptEngine::runScriptFile(const std::string& filename) {
|
||||
LWARNING("Filename was empty");
|
||||
return false;
|
||||
}
|
||||
if (!FileSys.fileExists(filename)) {
|
||||
if (!std::filesystem::is_regular_file(filename)) {
|
||||
LERROR(fmt::format("Script with name '{}' did not exist", filename));
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user