Sat, 16 Mar 2013 17:50:13 +0200
So much for that pointer class, caused more problems than it solved. For instance splitting a second quad after a first one had been split would trigger a peculiar crash...
0 | 1 | #ifndef __IO_H__ |
2 | #define __IO_H__ | |
3 | ||
4 | #include "common.h" | |
5 | #include "ldtypes.h" | |
6 | #include "str.h" | |
7 | ||
7
098e3c4949c6
Set window title dynamically based on filename
Santeri Piippo <crimsondusk64@gmail.com>
parents:
4
diff
changeset
|
8 | class OpenFile { |
098e3c4949c6
Set window title dynamically based on filename
Santeri Piippo <crimsondusk64@gmail.com>
parents:
4
diff
changeset
|
9 | public: |
098e3c4949c6
Set window title dynamically based on filename
Santeri Piippo <crimsondusk64@gmail.com>
parents:
4
diff
changeset
|
10 | str zFileName, zTitle; |
22
335e430a6b4f
So much for that pointer class, caused more problems than it solved. For instance splitting a second quad after a first one had been split would trigger a peculiar crash...
Santeri Piippo <crimsondusk64@gmail.com>
parents:
19
diff
changeset
|
11 | vector<LDObject*> objects; |
7
098e3c4949c6
Set window title dynamically based on filename
Santeri Piippo <crimsondusk64@gmail.com>
parents:
4
diff
changeset
|
12 | }; |
098e3c4949c6
Set window title dynamically based on filename
Santeri Piippo <crimsondusk64@gmail.com>
parents:
4
diff
changeset
|
13 | |
0 | 14 | // PROTOTYPES |
15 | OpenFile* IO_FindLoadedFile (str name); | |
4
758302636564
improve opening, don't auto-load 55966.dat (:P)
Santeri Piippo <crimsondusk64@gmail.com>
parents:
0
diff
changeset
|
16 | OpenFile* IO_OpenLDrawFile (str path); |
0 | 17 | LDObject* ParseLine (str zLine); |
18 | ||
19 | extern vector<OpenFile*> g_LoadedFiles; | |
20 | ||
21 | #endif |