src/file.h

changeset 213
a4113545242c
parent 189
ac2d3e8dd110
child 220
1f368f0a323b
equal deleted inserted replaced
212:79c5205b807c 213:a4113545242c
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.

mercurial