From: <hik...@us...> - 2009-03-17 02:19:27
|
Revision: 3273 http://supertuxkart.svn.sourceforge.net/supertuxkart/?rev=3273&view=rev Author: hikerstk Date: 2009-03-17 02:19:11 +0000 (Tue, 17 Mar 2009) Log Message: ----------- Bugfix: detecing '.' as data root didn't work anymore. Modified Paths: -------------- main/branches/irrlicht/src/io/file_manager.cpp Modified: main/branches/irrlicht/src/io/file_manager.cpp =================================================================== --- main/branches/irrlicht/src/io/file_manager.cpp 2009-03-17 00:25:04 UTC (rev 3272) +++ main/branches/irrlicht/src/io/file_manager.cpp 2009-03-17 02:19:11 UTC (rev 3273) @@ -116,7 +116,7 @@ // else if(m_file_system->existFile("/Developer/games/supertuxkart/data/stk_config.data")) // m_root_dir = "/Developer/games/supertuxkart" ; // FIXME - existFile() fails to detect the file, even though it exists, on my computer - else if(m_file_system->existFile("/data/stk_config.data")) + else if(m_file_system->existFile("data/stk_config.data")) m_root_dir = "." ; else if(m_file_system->existFile("../data/stk_config.data")) m_root_dir = ".." ; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |