file.h

changeset 104
6e29bb0e83c5
parent 98
5dcc551f260a
child 117
7eb7a43a511b
equal deleted inserted replaced
103:b0a345196435 104:6e29bb0e83c5
1 /* 1 /*
2 * LDForge: LDraw parts authoring CAD 2 * LDForge: LDraw parts authoring CAD
3 * Copyright (C) 2013 Santeri `arezey` Piippo 3 * Copyright (C) 2013 Santeri Piippo
4 * 4 *
5 * This program is free software: you can redistribute it and/or modify 5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by 6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or 7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version. 8 * (at your option) any later version.
56 void newFile (); 56 void newFile ();
57 57
58 // Opens the given file as the main file. Everything is closed first. 58 // Opens the given file as the main file. Everything is closed first.
59 void openMainFile (str zPath); 59 void openMainFile (str zPath);
60 60
61 // Finds an OpenFile by name or nullptr if not open 61 // Finds an OpenFile by name or null if not open
62 OpenFile* findLoadedFile (str name); 62 OpenFile* findLoadedFile (str name);
63 63
64 // Opens the given file and parses the LDraw code within. Returns a pointer 64 // Opens the given file and parses the LDraw code within. Returns a pointer
65 // to the opened file or nullptr on error. 65 // to the opened file or null on error.
66 OpenFile* openDATFile (str path); 66 OpenFile* openDATFile (str path);
67 67
68 // Opens the given file and returns a pointer to it, potentially looking in /parts and /p 68 // Opens the given file and returns a pointer to it, potentially looking in /parts and /p
69 FILE* openLDrawFile (str path, bool bSubDirectories); 69 FILE* openLDrawFile (str path, bool bSubDirectories);
70 70

mercurial