mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-05 10:59:47 -05:00
Feature/path normalization (#1674)
* Path normalization (making sure there are fewer cases of '"..."' * Using more std::filesystem::path instead of std::string * Update Ghoul
This commit is contained in:
@@ -332,7 +332,10 @@ int createSingleColorImage(lua_State* L) {
|
||||
|
||||
const glm::dvec3 color = colorDict.value<glm::dvec3>(key);
|
||||
|
||||
std::string fileName = FileSys.cacheManager()->cachedFilename(name + ".ppm", "");
|
||||
std::filesystem::path fileName = FileSys.cacheManager()->cachedFilename(
|
||||
name + ".ppm",
|
||||
""
|
||||
);
|
||||
const bool hasCachedFile = std::filesystem::is_regular_file(fileName);
|
||||
if (hasCachedFile) {
|
||||
LDEBUGC("OpenSpaceEngine", fmt::format("Cached file '{}' used", fileName));
|
||||
|
||||
Reference in New Issue
Block a user