/FallingSandpaper/jni/saveload.h

http://thelements.googlecode.com/ · C Header · 37 lines · 18 code · 5 blank · 14 comment · 0 complexity · 1ef050f82b7b727c2f363ed747729e33 MD5 · raw file

  1. /*
  2. * saveload.h
  3. * --------------------------
  4. * Declares the function definitions for saver
  5. * and loader, the two functions which save and
  6. * load an element setup. Also defines macros
  7. * for file locations, and includes needed headers.
  8. */
  9. #ifndef SAVELOAD_H_INCLUDED
  10. #define SAVELOAD_H_INCLUDED
  11. //Define the file locations so that they can be easily changed
  12. #define SAVE_FILE "/sdcard/elementworks/save.txt"
  13. #define QUICK_SAVE_FILE "/sdcard/elementworks/quicksave.txt"
  14. #define DEMO_SAVE_FILE "/sdcard/elementworks/save2.txt"
  15. #define CUSTOM_ELEMENT_FILE "/sdcard/elementworks/customele.txt"
  16. //Include the FILE type
  17. #include <stdio.h>
  18. //Include the global variables
  19. #include "app.h"
  20. //Include the global macros
  21. #include "macros.h"
  22. //Include points functions
  23. #include "points.h"
  24. //Include the initializer function
  25. #include "setup.h"
  26. int saver(int type);
  27. int loader(int type);
  28. void removeQuicksave(void);
  29. int loadDemoFile(void);
  30. int loadCustomFile(void);
  31. int saveCustomFile(void);
  32. #endif