Made material resource file editable from engine

This commit is contained in:
antopilo
2022-06-29 18:05:59 -04:00
parent 407ff89df7
commit 162966eeb0
24 changed files with 571 additions and 194 deletions

View File

@@ -93,9 +93,11 @@ namespace Nuake
return false;
}
bool FileSystem::FileExists(const std::string path)
bool FileSystem::FileExists(const std::string path, bool absolute)
{
std::ifstream f(path.c_str());
std::string fullPath = absolute ? path : FileSystem::Root + path;
std::ifstream f(fullPath.c_str());
return f.good();
}