Working FGD export

Added trenchbroom path settings
Saving Entity definition file,.
This commit is contained in:
Antoine Pilote
2021-07-01 22:56:43 -04:00
parent 0f010e0e74
commit 14190508cf
20 changed files with 461 additions and 195 deletions

View File

@@ -59,7 +59,19 @@ bool hasEnding(std::string const& fullString, std::string const& ending) {
WrenLoadModuleResult myLoadModule(WrenVM* vm, const char* name) {
WrenLoadModuleResult result = { 0 };
std::string sname = name;
std::string s = "tititoto";
std::string path = "resources/" + std::string(name);
if (s.rfind("Nuake/", 0) == 0)
{
path = "resources/" + std::string(name);
}
else
{
path = FileSystem::Root + name;
}
if(!hasEnding(path, ".wren"))
path += ".wren";