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. |
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); |