Ejemplo n.º 1
0
static NodeSmartReference MapResource_load (const MapFormat& format, const std::string& path, const std::string& name)
{
    NodeSmartReference root(NewMapRoot(name));
    std::string fullpath = path + name;

    if (g_path_is_absolute(fullpath.c_str())) {
        MapResource_loadFile(format, root, fullpath);
    } else {
        globalErrorStream() << "ERROR: map path is not fully qualified: " << fullpath << "\n";
    }

    return root;
}
Ejemplo n.º 2
0
NodeSmartReference MapResource_load(const MapFormat& format, const char* path, const char* name)
{
  NodeSmartReference root(NewMapRoot(name));

  StringOutputStream fullpath(256);
  fullpath << path << name;

  if(path_is_absolute(fullpath.c_str()))
  {
    MapResource_loadFile(format, root, fullpath.c_str());
  }
  else
  {
    globalErrorStream() << "map path is not fully qualified: " << makeQuoted(fullpath.c_str()) << "\n";
  }

  return root;
}