src/file.cpp

changeset 513
29eb671b34f6
parent 510
ee90c55dfeef
child 518
623c01862eb8
equal deleted inserted replaced
512:adab82ab13a5 513:29eb671b34f6
197 } 197 }
198 198
199 // ============================================================================= 199 // =============================================================================
200 // ----------------------------------------------------------------------------- 200 // -----------------------------------------------------------------------------
201 File* openLDrawFile (str relpath, bool subdirs) 201 File* openLDrawFile (str relpath, bool subdirs)
202 { print ("%1: Try to open %2\n", __func__, relpath); 202 { log ("%1: Try to open %2\n", __func__, 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 print ("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 // =============================================================================
1145 } 1145 }
1146 1146
1147 // ============================================================================= 1147 // =============================================================================
1148 // ----------------------------------------------------------------------------- 1148 // -----------------------------------------------------------------------------
1149 void loadLogoedStuds() 1149 void loadLogoedStuds()
1150 { print ("Loading logoed studs...\n"); 1150 { log ("Loading logoed studs...\n");
1151 1151
1152 delete g_logoedStud; 1152 delete g_logoedStud;
1153 delete g_logoedStud2; 1153 delete g_logoedStud2;
1154 1154
1155 g_logoedStud = openDATFile ("stud-logo.dat", true); 1155 g_logoedStud = openDATFile ("stud-logo.dat", true);

mercurial