Skip to content

Commit

Permalink
Add back vwv ability to read local pf:/// urls
Browse files Browse the repository at this point in the history
The users will get a nasty fault however when they try to use a pf url
that is not local. There is no easy way to test if the hostname is
local or not. They are probably some other libraries which might help
solve that.
  • Loading branch information
Zack Moratto committed Apr 5, 2011
1 parent 00f51d9 commit 4cf597e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/vw/gui/TileGenerator.cc
Expand Up @@ -101,6 +101,9 @@ boost::shared_ptr<TileGenerator> TileGenerator::create(std::string filename_) {
return boost::shared_ptr<TileGenerator>( new TestPatternTileGenerator(256) );
else
return boost::shared_ptr<TileGenerator>( new ImageTileGenerator(u.path()) );
} else if (u.scheme() == "pf" && fs::extension(u.path()) == ".plate") {
std::cout << "Loading: " << u.path() << "\n";
return boost::shared_ptr<TileGenerator>( new PlatefileTileGenerator(u.string()) );
} else {
std::cerr << "Could not open " << u << ":\n\t" << "No handler for url scheme " << u.scheme() << std::endl;
}
Expand Down

0 comments on commit 4cf597e

Please sign in to comment.