Mon, 18 Mar 2013 03:38:51 +0200
begin work on subfile caching
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 | ||
23
69a91c1ff583
begin work on subfile caching
Santeri Piippo <crimsondusk64@gmail.com>
parents:
22
diff
changeset
|
19 | extern vector<str> g_zaFileLoadPaths; |
0 | 20 | extern vector<OpenFile*> g_LoadedFiles; |
21 | ||
22 | #endif |