Hello everyone,<br>
<br>
Attached is a patch I made that implements loading and saving demos into
 xml format (and zlib compressed counterpart). Saving and loading is 
accessible from the developer menu (Shift-Backspace) and using &quot;L&quot; to 
load and &quot;D&quot; to save.<br>
<br>
This is my first piece of non-book-exercise type code in C++, so it&#39;s 
bound to be a little less efficient than it should be. The most 
particular thing that I think should be changed is overloading 
&quot;&gt;&gt;&quot; to load values to the ButtonState enum instead of using a 
function, but because I&#39;m not established in C++, that means I might 
waste tens of minutes recompiling because every declaration is in DSQ.h 
(a gripe I have about it).<br>
<br>
A few to-dos for the demo system:<br>
- Make a UI so that it&#39;s not cluttering up the developer menu<br>
- Fix a minor glitch that freezes input when there are no frames recorded (should not happen, but does anyway)<br>
- Add entity states to demo file so that we&#39;re not shooting at 
non-existent enemies or trying to open a song egg that&#39;s already opened.<br>
<br>
That&#39;s all I can think of at the moment. Have fun with the patch.<br>
<br>
--GMMan<br>
<br>
P. S. Mercurial decided to swap out entire files instead of doing a simple diff, so the attached patch is gzipped.<br>
<br>
------------------------------------------<br>
<br>
Description for the patch:<br>
<br>
Implemented demo loading and saving.<br>
<br>
Features can be accessed through the developer menu at Shift-Backspace. 
&quot;L&quot; is for loading and &quot;D&quot; is for saving. If you want to be able to use 
the developer menu globally, make sure to undefine AQUARIA_FULL and 
AQUARIA_DEMO.<br>
<br>
Patch by GMMan (Yukai Li) &lt;<a href="mailto:yukaili.geek@gmail.com">yukaili.geek@gmail.com</a>&gt;<br>