src/file.cpp

changeset 527
47c068f2e7e3
parent 522
afa691788bdb
child 534
3ed2ebcbc84f
equal deleted inserted replaced
526:b29b6fc45ba9 527:47c068f2e7e3
197 } 197 }
198 198
199 // ============================================================================= 199 // =============================================================================
200 // ----------------------------------------------------------------------------- 200 // -----------------------------------------------------------------------------
201 File* openLDrawFile (str relpath, bool subdirs) 201 File* openLDrawFile (str relpath, bool subdirs)
202 { log ("%1: Try to open %2\n", __func__, relpath); 202 { log ("Opening %1...\n", relpath);
203 File* f = new File; 203 File* f = new File;
204 str fullPath; 204 str fullPath;
205 205
206 // LDraw models use Windows-style path separators. If we're not on Windows, 206 // LDraw models use Windows-style path separators. If we're not on Windows,
207 // replace the path separator now before opening any files. 207 // replace the path separator now before opening any files.
239 } 239 }
240 } 240 }
241 } 241 }
242 242
243 // Did not find the file. 243 // Did not find the file.
244 log ("could not find %1\n", relpath); 244 log ("Could not find %1.\n", relpath);
245 delete f; 245 delete f;
246 return null; 246 return null;
247 } 247 }
248 248
249 // ============================================================================= 249 // =============================================================================

mercurial