Functions | |
| static void | fixWinNetworkPath (std::string &path) |
| static void osg::Path::fixWinNetworkPath | ( | std::string & | path | ) | [inline, static] |
Definition at line 367 of file OSGFileSystem.inl.
00368 { 00369 #ifdef WIN32 00370 // HACK but on windows network paths like \\Server\bla doesn't work, 00371 // but //Server/bla works ... 00372 00373 if((path.length() > 2 ) && 00374 (path[0] == '\\') && 00375 (path[1] == '\\') ) 00376 { 00377 for(Int32 i = 0; i < path.length(); ++i) 00378 { 00379 if(path[i] == '\\') 00380 { 00381 path[i] = '/'; 00382 } 00383 } 00384 } 00385 #endif 00386 }
1.5.5