84 // Finds an OpenFile by name or null if not open |
84 // Finds an OpenFile by name or null if not open |
85 OpenFile* findLoadedFile (str name); |
85 OpenFile* findLoadedFile (str name); |
86 |
86 |
87 // Opens the given file and parses the LDraw code within. Returns a pointer |
87 // Opens the given file and parses the LDraw code within. Returns a pointer |
88 // to the opened file or null on error. |
88 // to the opened file or null on error. |
89 OpenFile* openDATFile (str path, bool search); |
89 OpenFile* openDATFile (str path, bool search, bool mainfile); |
90 |
90 |
91 // Opens the given file and returns a pointer to it, potentially looking in /parts and /p |
91 // Opens the given file and returns a pointer to it, potentially looking in /parts and /p |
92 FILE* openLDrawFile (str path, bool bSubDirectories); |
92 FILE* openLDrawFile (str path, bool bSubDirectories); |
93 |
93 |
94 // Close all open files, whether user-opened or subfile caches. |
94 // Close all open files, whether user-opened or subfile caches. |