1,554
edits
(Moved TODO from repository) |
m (Markup) |
||
Line 11: | Line 11: | ||
This is all bad. Whole game tries to read structures directly without parsing them. | This is all bad. Whole game tries to read structures directly without parsing them. | ||
Problems which it arises: | Problems which it arises: | ||
* sizeof(struct) is bigger than sum of sizes of its elements on most systems due to alignment. This is why it crashes now | |||
* Endianness is not honoured | |||
What we should do here is get rid of both data_openData and data_readData() | What we should do here is get rid of both data_openData and data_readData() | ||
Line 33: | Line 34: | ||
This will let us get rid of file_open() too which is an implementation of | This will let us get rid of file_open() too which is an implementation of | ||
an ugly idea. | an ugly idea. | ||
== Main and long-term goals == | == Main and long-term goals == |